-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run As/Debug As context menu in java source editor and package explorer does not show entries #1068
Comments
please have a look in the "Error Log" view if you find a related exception |
@jukzi the error log doesn't show anything in that respect. The terminal from where I started Eclipse shows (after using "Run As"):
|
I don't think this is JDT problem, most likely GTK / SWT issue on HiDPI monitors / Wayland. |
I'm on X11, not Wayland. |
No, please provide these entries that shown for SWT and for GTK from "*** System properties" and "*** System environment variables" sections |
@iloveeclipse I tried both with X11 and Wayland and I also switched to 100% HDPI (so, no scaling); the result is always the same, and so are the logged information in the terminal. These are the entries you asked for:
|
Some updates: the problem appears only the first time you select the Run As/Debug As menu in the context menu: if you get back to Run As/Debug As (without closing the context menu) the entries appear and can be selected. Unfortunately, it happens again if you close the context menu and open it again. When the problem appears, I can quickly spot something like "Loading..." in the small submenu. So, I wonder if this issue is a consequence of this other issue: #1056 |
@mickaelistria @fedejeanne can this issue relate to the changes in run menu? for example eclipse-platform/eclipse.platform#1005 |
One new thing I noted (I'm pretty sure it wasn't there before) is that the context run menu now shows existing launch configurations associated to that file. |
@jukzi yes probably. @fedejeanne I suspect the issue is that the menu doesn't refresh its layout well and remains too small to show the entries. |
But, just for curiosity, am I the only one seeing this problem? By the way, I can see that in all my Linux installations. Not on mac m1, though. |
I noticed it yesterday on Linux as well. I think it's related to async computation of submenus/items which menu ignores when computing its size. |
@fedejeanne pleae fix or revert |
Unpopular opinion: life is much better with blocking operations and without concurrency/asynchronicity... ;) |
Sorry for the ping, but this bug is critical concerning usability... |
@LorenzoBettini Can you please submit a fix or revert PR? |
@mickaelistria I think the original author should do the fix or, better, the revert of the PR. I don't know the internals of JDT; the original author should, and it should be a matter of minutes. For me, it would take ages... |
Please name the PR that causes the issue so that we can revert. |
Sure, but in practice, this is not happening as you can see here. So someone else has to do the work. |
@jukzi you mentioned the change |
that was a guess... did you verify a revert of that helps? |
I've just reported another issue related to this code, see eclipse-platform/eclipse.platform#1202. I would propose to revert the two related commits as they both are part of same feature. |
please do, when you know that they cause this issues. @fedejeanne had enough time to repsond. |
This reverts commit 494483e. See eclipse-platform#1202 See eclipse-jdt/eclipse.jdt.ui#1068
This reverts commit 494483e. See #1202 See eclipse-jdt/eclipse.jdt.ui#1068
@LorenzoBettini : please check next IBuild, I've reverted related commits. |
@iloveeclipse I'm trying to use https://download.eclipse.org/eclipse/updates/4.31-I-builds/ for updating "platform", I guess the hopefully fixed version is org.eclipse.platform_4.31.0.v20240213-2236.jar However, it refuses to update because of the conflict with the EPP package
However, I could update my TP and start a new Eclipse workbench. I see the problem went away in the started workbench! |
Perfect, thanks for confirmation. Closing as duplicate of eclipse-platform/eclipse.platform#1202. |
Hello everyone, I've been looking into it and I couldn't find anything useful on the bug on
I agree (sigh) |
With Eclipse (Linux)
and Eclipse Java Development Tools 3.19.400.v20240104-1800
the Run As/Debug As context menu in java source editor and package explorer does not show entries; at least, not in a usable way, see the screenshot:
On the contrary, the ones in the toolbar and in the "Run" menu work as expected.
The text was updated successfully, but these errors were encountered: