Closed mrglavas closed 2 months ago
I was able to resolve this locally by adding implementation 'com.vladsch.flexmark:flexmark-all:0.64.8'
to build.gradle
. I have a feeling that this (or some subset of flexmark-all
) is a dependency for lsp4j
that we somehow excluded as a transitive dependency. We should probably revisit how we're declaring these dependencies to make them easier to manage.
In our LSP4IJ we embed flexmark https://github.com/redhat-developer/lsp4ij/blob/07be3fdaf449ac04f3734abf5d28fb89ce6ac510/gradle.properties#L21 but I think we should replace flexmark (in several months) with https://github.com/redhat-developer/lsp4ij/issues/236
We seem to be getting flexmark
from IntelliJ:
MicroShed LSP4iJ dependencies:
compileClasspath - Compile classpath for source set 'main'.
+--- org.eclipse.lsp4j:org.eclipse.lsp4j:0.21.0
| \--- org.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc:0.21.0
| \--- com.google.code.gson:gson:[2.9.1,2.11) -> 2.10.1
+--- org.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc:0.21.0 (*)
+--- com.google.code.gson:gson:2.8.9 -> 2.10.1
+--- org.jetbrains:annotations:24.0.0
+--- unzipped.com.jetbrains.plugins:java:ideaIC-IC-231.8109.175-withSources
+--- unzipped.com.jetbrains.plugins:gradle-java:ideaIC-IC-231.8109.175-withSources
+--- unzipped.com.jetbrains.plugins:gradle:ideaIC-IC-231.8109.175-withSources
\--- com.jetbrains:ideaIC:2023.1
I guess JetBrains removed flexmark
in 2024.1.
Resolved by https://github.com/MicroShed/lsp4ij/pull/18.
After upgrading to IntelliJ IDEA 2024.1, documentation is not displayed when hovering over any of the contents of server.xml. A pop-up is shown to the user that documentation is being fetched, but that never completes.
A NoClassDefFoundError is thrown in the background while attempting to produce the documentation. It seems this dependency is missing from the Liberty Tools for IntelliJ plug-in. Perhaps this worked in the past because IntelliJ bundled the
flexmark
code, but perhaps removed it in 2024.1.