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

Jakarta diagnostics no longer appearing for Liberty Tools v23.0.12 in latest VS Code version (1.86.x) #322

Closed
TrevCraw opened this issue Feb 12, 2024 · 0 comments · Fixed by #323
Labels
bug Something isn't working must-fix

Comments

@TrevCraw
Copy link
Contributor

TrevCraw commented Feb 12, 2024

When VS Code is updated to 1.86.x, dependency extensions for LT VS Code are also updated. When the Language Support for Java extension is updated to v1.27.0, it breaks the diagnostic support from LSP4Jakarta. This is due to LSP4Jakarta using an internal class from the JDT...
https://github.com/eclipse/lsp4jakarta/blob/main/jakarta.jdt/org.eclipse.lsp4jakarta.jdt.core/src/main/java/org/eclipse/lsp4jakarta/jdt/internal/DiagnosticUtils.java#L121-L125
...which was modified in the latest JDT release
eclipse-jdt/eclipse.jdt.core@4556ac2#diff-c8cd805ea463f0b6ca1b6b31a5769d1a25eff919b513631fb3dd48c1d7c962c7

Workaround

An issue has been opened in the LSP4Jakarta repo to remove the usage of the internal JDT class: eclipse/lsp4jakarta#517. In the meantime, users can apply the following workaround to re-enable Jakarta diagnostics:

  • Install v1.26.0 of Language Support for Java(TM) by Red Hat
  • Since the latest versions of the Tools for MicroProfile extension are not compatible with v1.26.0 of Language Support for Java(TM) by Red Hat, users will also need to install the pre-release version v0.11.2024012703 of Tools for MicroProfile to have the latest version available that is compatible with v1.26.0 of Language Support for Java(TM) by Red Hat.

Steps to install another version of an extension:

  1. Navigate to the Extensions tab
  2. Find the extension to update under the Installed section
  3. Select the gear icon
  4. Select Install Another Version... (for Tools for MicroProfile, select Switch to Pre-release Version first)
  5. Select the version you would like to install
@TrevCraw TrevCraw added the bug Something isn't working label Feb 12, 2024
@TrevCraw TrevCraw changed the title Jakarta diagnostics no longer appearing for v23.0.12 in latest VS Code version (1.86.x) Jakarta diagnostics no longer appearing for Liberty Tools v23.0.12 in latest VS Code version (1.86.x) Feb 12, 2024
vaisakhkannan added a commit to vaisakhkannan/liberty-tools-vscode that referenced this issue Mar 25, 2024
vaisakhkannan added a commit that referenced this issue Oct 11, 2024
Pushing changes from branch Issue-#322 to Feature branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working must-fix
Projects
Development

Successfully merging a pull request may close this issue.

1 participant