Closed mrglavas closed 5 months ago
This PR: https://github.com/MicroShed/lsp4ij/pull/15 seems to resolve the issue but needs more testing.
The fix is indeed correct. I have reported this fix in the official LSP4IJ, but it would be very nice if you could contribute to the official LSP4IJ.
Thanks for verifying. I wasn't sure that this was the correct fix or if this would have been applied to the official LSP4iJ since I saw there was another PR already open (as a draft) which refactors this code again.
Thanks for verifying.
You are welcome.
I wasn't sure that this was the correct fix or if this would have been applied to the official LSP4iJ since I saw there was another PR already open (as a draft) which refactors this code again.
I think you mention https://github.com/redhat-developer/lsp4ij/pull/171 which uses a non deprecated API, but I need to find time to finish it.
The LCLS server.xml hover test is passing:
GradleSingleModLSTest > testServerXMLFeatureHover() STANDARD_OUT
INFO: 2024-04-09T17:46:23.542612297: GradleSingleModLSTest.testServerXMLFeatureHover(). Entry
Description: This feature provides
support for the MicroProfile Health
specification.
Enabled by: microProfile-5.0,
microProfile-6.0, microProfile-6.1
Enables: cdi-3.0, jndi-1.0, json-1.0,
mpConfig-3.0
INFO: 2024-04-09T17:46:30.085877781: GradleSingleModLSTest.testServerXMLFeatureHover(). Exit
The build: https://github.com/OpenLiberty/liberty-tools-intellij/actions/runs/8617069262/job/23616171201?pr=716 had some other failures related to hover and diagnostics but I'll open other issues to investigate those ones.
With the branch of LSP4iJ from here: https://github.com/MicroShed/lsp4ij/tree/q0401, getting documentation with hover is failing with the following exception (see below). I believe this is based off a snapshot that Paul took from here: https://github.com/redhat-developer/lsp4ij very recently (April 1st).
Seems it may have been broken by this commit: https://github.com/redhat-developer/lsp4ij/commit/44c528ffddf4a2e99b5d0ce8d1e666accc7669de#diff-3d8fe11c1cd05e4c7f8ea16ae7d057863794ed222b51ec69818b767efb13ca8b
See changes to the generateDoc() method in LSPDocumentationProvider.java.