Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 422969 - Cursor position not updated in editor
Summary: Cursor position not updated in editor
Status: CLOSED DUPLICATE of bug 500013
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.3.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-02 10:58 EST by Kenneth Corbin CLA
Modified: 2018-04-16 03:03 EDT (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Corbin CLA 2013-12-02 10:58:51 EST
The cursor display does not update when arrow keys are used to move the cursor in a horizontal direction. The insertion point does move as it should, it is just that the display does not update. Holding down the shift key while moving the cursor to highlight text instantly resorts the cursor display, but it disappears again as soon as I let up on the shift key.

I have the custom cursor enabled by default, changing that setting does not do anything. But toggling the smart insert mode does provide a temporary one time. The first time I do it, the cursor becomes visible but leaves a trail at the top and bottom of the line. Unfortunately, this only works once in one editor. Thereafter it can not be used to fix any of the other editors.

This is probably connected somehow to the problem reported in 
https://github.com/vrapper/vrapper/issues/269
Other than not observing the ghost cursor phenomena, the symptoms are identical.  But that problem was introduced in a fairly recent Eclipse release and fixed in 4.3.1.  My problem happens on every version of Eclipse I have tried from 3.8 to 4.3.1

Presumably there is something strange about my system.  I tried deleting the workspace, .eclispe, and .android directors and making a fresh clean install. Still have the same problem.

I am running OpenSUSE 13.1 using the new fangled KDE4. Tried switching to Gnome, but that doesn't work for some reason. The only other functioning Window Manager is IceWM. And when I bring up that session, the cursor display problem is gone.

In desperation, I tried installing Eclipse 4.4.  It is completely unusable,   Now the display for the editor and package explorer never refreshes.  They always display blank windows, though I can still open edit files by remembering where they were in the Package explorer and navigating blind.

At least I can try to use 4.3.1 by holding the shift key down when I want to move the cursor around with arrow keys :(
Comment 1 Dani Megert CLA 2013-12-02 11:15:17 EST
Do you also see this in the Eclipse Text editor?
Comment 2 Kenneth Corbin CLA 2013-12-02 13:37:31 EST
I was doing my initial testing in a regular non-java text file.

The problem exists in text files, Java files, and ANT Buildfiles, all of which I believe have their own editor.

Curiously, the Cntl-Shift-Ins toggle solution works in all Java source files, but does not work in any other kind of file.  My earlier comment that it only worked once came from the fact that I tried a Java source first, then switched to text files.
Comment 3 Rovanion Luckey CLA 2014-05-11 05:07:07 EDT
I'm having the very same issue with Eclipse 3.8.1 in Ubuntu 14.04 using the Awesome window manager.
Comment 4 Harald Kirsch CLA 2015-03-01 08:47:39 EST
Same here with Ubuntu 14.04, XFCE4 as window manager and version=4.4.2 (luna sr2), as well as 4.4.1. 2 weeks ago I had an install/de-install orgie with all kinds of eclipse versions and none would move the cursor. Then for no good reason one of them worked, I thought I'd hit the jackpot and did not investigate further.

Just now the problem appeared again and I remember having read something about 2 screens and that it worked if eclipse started on the primary. Now listen: I disabled my second screen with XFCE's display settings and immediately got the cursor working. I then enabled the second screen again and it still works.

Pretty dumb workround of course and still it may be just luck. Not sure if this helps anyone.
Comment 5 Harald Kirsch CLA 2015-03-01 12:37:58 EST
Update: the first indication that things don't work anymore is when the cursor is not blinking anymore. This also happens when the computer is woken up from sleep.

An even quicker workaround than completely switching of the seconde display seems to be to request just about any change in the display configuration and then just click "Restore configuration" instead of keeping the changed configuration.

This all looks like eclipse is not really causing the problem, but since I do not have this effect in any other applications, I would not know where else to file a bug report: Xorg, ubuntun, gnome, swt ...?
Comment 6 Martijn van Iersel CLA 2015-05-13 07:44:00 EDT
I'm seeing the same here with both eclipse 4.4.1 and 4.4.2 on Linux Mint 17.1 "Rebecca".

I can confirm that the workaround mentioned by Harald Kirsch, i.e. to change the monitor resolution and then change back again, appears to solve the problem.
Comment 7 James Forester CLA 2015-07-02 16:41:30 EDT
I have the same bug: cursor not blinking, selection problem in the console.

I'm on Ubuntu 14.04 and Eclipse 4.4.1 on a VAIO Z2.

This append after wake up from sleep mode.

The only other affected software is Chrome, that totally freeze after wake up.

I confirm the work around of changing display parameter (change resolution and go back to initial).
Comment 8 Michael Lowman CLA 2015-07-16 16:40:59 EDT
I can also replicate the issue. I'm using Ubuntu 14.04 with Eclipse 4.5 on a Lenovo T420.

After resuming from suspend, the cursor will not blink or update position without a forcing action (like highlighting something) unless I change the display in some way.

Changing the display resolves the issue.
Comment 9 Dávid Lakatos CLA 2017-03-30 11:23:03 EDT
I experience the same problem on Fedora 25 (default Gnome shell windowing) with Eclipse Neon.3.

$ uname -a
Linux dlakatos847-laptop 4.9.14-200.fc25.x86_64 #1 SMP Mon Mar 13 19:26:40 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Comment 10 Ian Pun CLA 2017-03-30 17:00:14 EDT
(In reply to Dávid Lakatos from comment #9)
> I experience the same problem on Fedora 25 (default Gnome shell windowing)
> with Eclipse Neon.3.
> 
> $ uname -a
> Linux dlakatos847-laptop 4.9.14-200.fc25.x86_64 #1 SMP Mon Mar 13 19:26:40
> UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Hi, could you please test this on an integration build of Eclipse? I have fixed a cursor issue that might be fixed here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=500013
Comment 11 Ian Pun CLA 2017-05-31 10:27:27 EDT
Following up, I'm going to assume this is a duplicate of bug 500013. Closing.

*** This bug has been marked as a duplicate of bug 500013 ***
Comment 12 Giuseppe D'Andrea CLA 2018-04-16 03:03:13 EDT
I'm experiencing the same problem with Eclipse Oxygen 4.7.3a on Arch with Xorg