Bug 403559 - Intermittent loss of caret (or cursor?)
Summary: Intermittent loss of caret (or cursor?)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.8.1   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: 4.3 M7   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
: 235090 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-03-17 03:32 EDT by Preben Ellebye CLA
Modified: 2018-03-06 06:39 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Preben Ellebye CLA 2013-03-17 03:32:00 EDT
Cursor disappears.

This error happens intermittent, but happens every time when doing the following:

First make this class:

package bb.common.widgets;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;

public class test {

	/**
	 * 
	 * @param composite
	 */
	public test(Composite composite) {
		Combo combo = new Combo(composite, SWT.NO);
	}
}

Second move mouse over 'Combo', click in the shown help text and copy something here.

Now intent to paste just after '* @param composite' and observ that the cursor is not there. You have to guess where it is.


-- Configuration Details --
Product: Eclipse 1.5.1.20120828-0743 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.jdt 3.8.1.v20120814-104540-8-8nFqpFNOfwKDRVz-tXOcL5d_83
Comment 1 Dani Megert CLA 2013-03-26 03:24:23 EDT
Looks similar to bug 403744. Can you reproduce it with this build and a new workspace:
http://download.eclipse.org/eclipse/downloads/drops4/S-4.3M6-201303141330/
Comment 2 Dani Megert CLA 2013-03-26 03:25:10 EDT
Is the cursor or the caret, or both, gone?
Comment 3 Markus Keller CLA 2013-03-26 06:50:06 EDT
Bug 403744 is on Linux and should not be mixed with Windows bugs.

This sounds more like bug 235090, but I cannot reproduce this one in I20130319-1000.
Comment 4 Preben Ellebye CLA 2013-03-26 15:13:03 EDT
Yes, same problem. I used eclipse-SDK-4.3M6-win32-x86_64.zip and swt-3.7.2-win32-win32-x86_64.zip and a new workspace.

(In reply to comment #1)
> Looks similar to bug 403744. Can you reproduce it with this build and a new
> workspace:
> http://download.eclipse.org/eclipse/downloads/drops4/S-4.3M6-201303141330/
Comment 5 Preben Ellebye CLA 2013-03-26 15:16:16 EDT
I meant the caret. Nothing happens to the cursor. It is possible to move the invisible caret to different places, but you cannot be sure where it is until you make (and see) some characters.
(In reply to comment #2)
> Is the cursor or the caret, or both, gone?
Comment 6 Preben Ellebye CLA 2013-03-26 15:34:11 EDT
(In reply to comment #3)
> Bug 403744 is on Linux and should not be mixed with Windows bugs.
> 
> This sounds more like bug 235090, but I cannot reproduce this one in
> I20130319-1000.

I have changed the content assist background color to check if the caret just get white, but no, the caret just disappears.
Comment 7 Preben Ellebye CLA 2013-03-27 04:27:34 EDT
(In reply to comment #6)
> (In reply to comment #3)
> > Bug 403744 is on Linux and should not be mixed with Windows bugs.
> > 
> > This sounds more like bug 235090, but I cannot reproduce this one in
> > I20130319-1000.
> 
In Bug 403744 is mentioned bug 336690 which at first look seems to be the same problem. But I cannot reproduce bug 336690 by following "Steps to reproduce". Nothing happens to the caret or the cursor.
Comment 8 Preben Ellebye CLA 2013-03-27 15:01:16 EDT
I can reproduce the bug on a 32 bit Vista Home Premium service pack 2 using eclipse juno build 20120614-1722 and swt-4.2-win32-win32-x86.zip.
Comment 9 Silenio Quarti CLA 2013-03-27 16:00:01 EDT
This is a bug in IE7 which destroys a caret it does not own. We already have a work around for this, but it is failing in this case because the hwndCaret is somehow NULL before the call to UIDeactivate().  I have "improved" the work around.

Fixed

http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=245715fccdac7a440a5a58962ba380e5a11a5d22
Comment 10 Silenio Quarti CLA 2013-03-27 16:30:49 EDT
*** Bug 235090 has been marked as a duplicate of this bug. ***
Comment 11 Dani Megert CLA 2013-07-29 07:19:33 EDT
See bug 336600 for same issue using IE 8 and 9.
Comment 12 masoom sanadi CLA 2018-03-06 06:39:46 EST
thought my solution is related here.
i was troubled with cursor disappearing in another ide.
up-vote my answer on 
https://stackoverflow.com/a/45802863/2173890