Bug 552318 - Caret disappears when autocompleting
Summary: Caret disappears when autocompleting
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.13   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2019-10-22 07:34 EDT by Sören Glimm CLA
Modified: 2021-07-15 06:21 EDT (History)
3 users (show)

See Also:


Attachments
events1.txt shows the X events when clicking on a quick fix or autocomplete popup in Eclipse. (521 bytes, text/plain)
2021-05-29 09:13 EDT, Ivica Gunjaca CLA
no flags Details
events2.txt shows the X events when switching from Eclipse to another window and back. (1.06 KB, text/plain)
2021-05-29 09:14 EDT, Ivica Gunjaca CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sören Glimm CLA 2019-10-22 07:34:36 EDT
I'm using

Eclipse IDE for Enterprise Java Developers.
Version: 2019-09 R (4.13.0)
Build id: 20190917-1200

Ubuntu Linux 18.04

i3 window manager (this may be important)

When I use any kind of automatic code manipulation, (e.g. autocompletion, Generate Constructor, Organize imports, Format Code), sometimes the caret disappears. It does not disappear when simply typing.

Sometimes saving the file or closing+reopening the editor window causes the caret to reappear - sometimes I have to restart eclipse.

I tried switching to KDE. Haven't had this problem since - but I'd really like to use Eclipse under i3.
Comment 1 Eric Williams CLA 2019-11-12 09:15:57 EST
If the issue happens only under i3 it sounds like there is very little we can do in the Eclipse side.

Does it happen on GNOME3?
Comment 2 Ivica Gunjaca CLA 2021-05-29 09:13:00 EDT
Created attachment 286476 [details]
events1.txt shows the X events when clicking on a quick fix or autocomplete popup in Eclipse.
Comment 3 Ivica Gunjaca CLA 2021-05-29 09:14:14 EDT
I'm experiencing the same issue, also using i3wm. I did some investigating by tracking the X window events with xev when editing in Eclipse.

What I found is that when you switch between Eclipse and an other window you can see a FocusOut event and when you switch back to Eclipse there is a FocusIn event and everything is fine.

But when you click on an item in the quick fix or autocomplete popup in Eclipse there is a FocusOut event, but a FocusIn event never happens and I guess that because of that eclipse never starts repainting the text caret.

I am not sure if this is a Eclipse or i3wm issue, but I am posting it here in case it is useful information.

I've attached the outputs of xev:
events1.txt shows the X events when clicking on a quick fix or autocomplete popup in Eclipse.
events2.txt shows the X events when switching from Eclipse to another window and back.
Comment 4 Ivica Gunjaca CLA 2021-05-29 09:14:50 EDT
Created attachment 286477 [details]
events2.txt shows the X events when switching from Eclipse to another window and back.