eclipse.platform.swt icon indicating copy to clipboard operation
eclipse.platform.swt copied to clipboard

Content Assist wrong positioned on Ubuntu

Open egloffmark opened this issue 2 years ago • 3 comments

Describe the bug Hi There. I am using eclipse 2022-12 (4.26.0 Build id: 20221201-1913) on Ubuntu 22.04 with Java 17 and kernel 6.1.12-060112-generic.

When I call the content assist with CTRL+ SPACE then the window of the content assist get first correctly positioned but then after ~ 1s automatically wrongly re-positioned, somewhere at a weird position, often outside of the Eclipse Main Window. I assume it has something to do when the JavaDoc get in the background loaded and after that displayed next to the content assist.

Example how it looks like after it get automatically re-positioned can be get from the screenshot below

Remark: I tried also with only one 4k monitor, with "nvidia-driver-515 / 525" and "xorg-videau-nouveau" Graphis Drivers same issue is happening

To Reproduce

  1. Use Ubuntu or any Linux distro and install eclipse 2022-12 with Java 17
  2. Start a Java Project with a simple Hello World Main Class
  3. Type and call the Content Assist "System.out."
  4. Content Assist get opened and after a one second wrongly re-positioned

Expected behavior The content Assist window should stay correctly positioned

Screenshots Screenshot from 2023-03-04 16-31-26

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • [ ] All OS
    • [ ] Windows
    • [x] Linux
    • [ ] macOS
  1. Additional OS info (e.g. OS version, Linux Desktop, etc) Ubuntu 22.04 with Java 17 and kernel 6.1.12-060112-generic.

  2. JRE/JDK version Java 17

Version since eclipse 2022-12 (4.26.0 Build id: 20221201-1913)

egloffmark avatar Mar 11 '23 08:03 egloffmark

It seems you reported the same issue here also:

https://github.com/eclipse-platform/eclipse.platform.ui/issues/627

merks avatar Mar 11 '23 08:03 merks

I get this too using a 4k monitor at 200% scaling only on Linux. It also happens with Draw2d Figure tooltip positioning. In the latter case I discovered that Shell#setVisible was the cause. If Shell#setVisible(true) is called after positioning the Shell it can appear in the wrong place. I don't know why this is.

Phillipus avatar Mar 11 '23 08:03 Phillipus

True it happens when the desktop scaling has been set to a different value than 100% (i.e. 200%) any hints or tips what I can do as end-user?

image

egloffmark avatar Mar 09 '24 10:03 egloffmark