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

Missing descriptions on hover for elements and features in server.xml (Windows) #694

Closed
dessina-devasia opened this issue Mar 19, 2024 · 5 comments
Assignees
Labels
bug Something isn't working should-fix
Milestone

Comments

@dessina-devasia
Copy link
Contributor

During the FVT testing of liberty-tools version 24.0.3-SNAPSHOT on a Windows 11 environment, I encountered an issue where the documentation for any elements or feature descriptions within the server.xml file could not be found.

For reference, I've attached a screenshot below showcasing the absence of documentation within the server.xml file.

image

image

@dessina-devasia dessina-devasia added this to New Issues in Open Liberty Developer Experience via automation Mar 19, 2024
@TrevCraw TrevCraw changed the title Missing Documentation for Elements and Feature Descriptions in server.xml Missing descriptions on hover for elements and features in server.xml Mar 19, 2024
@TrevCraw TrevCraw changed the title Missing descriptions on hover for elements and features in server.xml Missing descriptions on hover for elements and features in server.xml (Windows) Mar 19, 2024
@mrglavas mrglavas added the bug Something isn't working label Mar 19, 2024
@mrglavas
Copy link
Contributor

I think this may have been exposed by the performance issue we're investigating with LCLS: #687, but seems the root cause might be in LSP4iJ. I think I found where textDocument/hover is supported: https://github.com/MicroShed/lsp4ij/blob/main/src/main/java/org/microshed/lsp4ij/operations/documentation/LSPTextHoverForFile.java and can see there's a short time-out. I wonder if this could be improved similarly to what was recently done for quick fixes where it actually waits for the response and will work even if the server is slow.

@angelozerr
Copy link

I improved in our lsp4ij the hover and now it should work without timeout.

Since your last update I did a lot of refactoring break some api etc.

I suggest you really to be based on our lsp4ij

@TrevCraw
Copy link
Contributor

PR here should mitigate this issue until we are able to move to a newer version of lsp4ij: MicroShed/lsp4ij#14

@TrevCraw TrevCraw added performance Responsiveness of the Liberty Tools plug-in that would be observably slow to a human user. should-fix and removed performance Responsiveness of the Liberty Tools plug-in that would be observably slow to a human user. labels Mar 27, 2024
@TrevCraw TrevCraw moved this from New Issues to Prioritized in Open Liberty Developer Experience Mar 27, 2024
@TrevCraw
Copy link
Contributor

TrevCraw commented May 6, 2024

Review if LSP4IJ updates from April 1st contain the complete fix for this problem. Test the behaviour to verify the fix.

@TrevCraw TrevCraw modified the milestones: 24.0.7, 24.0.6 May 6, 2024
@mrglavas
Copy link
Contributor

I've confirmed that this issue has been resolved by the upgrade to LSP4iJ 2024/04/01. Hover now displays "Fetching Documentation..." while waiting for the response and then displays the documentation for the feature once the response has been returned and processed. The class LSPTextHoverForFile.java which had been patched to mitigate this issue no longer exists.

image
image

Open Liberty Developer Experience automation moved this from Prioritized to Sprint Closed May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working should-fix
Development

No branches or pull requests

5 participants