Skip to content
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

Popup displayed when hovering over an error marker can not be used to obtain focus and scroll through entire diagnostic text #889

Open
scottkurz opened this issue Jan 2, 2024 · 0 comments

Comments

@scottkurz
Copy link

scottkurz commented Jan 2, 2024

When I hover over an error marker in a Java editor, I get a popup that says "Press 'F2' for focus", and when pressing F2 I get a resizable version of the popup dialog, such that I can read the whole text.

I've noticed, on the other hand, that when I get an XML error, e.g. in pom.xml, (using the m2e lemminx extension) and I hover over it I get a fixed-size dialog such that I can't read the complete error text. E.g., if I type an invalid element name to trigger an XSD validation error, I can't read the full set of allowed elements, for example.

I'd paste a screenshot but I don't know how to do a screen capture without causing the popup to disappear in the meantime.

I'm just guessing this is an lsp4e issue, though I realize it's possible it is rather (or also) an issue w/ Lemminx and/or WWD XML.

The problem here is easily worked around. I can click on the marker in the column to the right-hand-side of the editor window and get a popup I can click on and resize to read the whole text. Here is the workaround (you can see I just typed an invalid <a/> element in a pom.xml:

WORKAROUND SCREENSHOT

image

To reiterate, hovering over the marker on the right-column gives the good dialog. Hovering over the marker inline within the editor source (row 13 col 2 here) gives the bad popup.

ENVIRONMENT

Besides the latest 4.30 the issue seems to exist on a couple other random recent releases I tried

eclipse.buildId=4.30.0.20231201-1200
java.fullversion=17.0.3+7
JRE 17 Windows 11 amd64-64-Bit Compressed References 20220422_155 (JIT enabled, AOT enabled)
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

THOUGHTS

If you knew this workaround, this would be a real minor issue. But if it's an easy change to switch the popup dialog type that'd be a nice small improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant