-
Notifications
You must be signed in to change notification settings - Fork 442
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
Editor Error Highlighting And Fix Suggestions Not works on v1.29.0 #3579
Comments
Is your project a Maven/Gradle project ? Does the project target Java 21 while having Java preview features enabled in the build configuration ? Any chance you'd be able to share the project ? |
@bgunduz55 Could you try to set the project target to Java 22? |
I think you're facing the same issue as eclipse-jdtls/eclipse.jdt.ls#3131 . In 1.29.0, we added support for Java 22, and the As @snjeza just mentioned, if you change the compiler compliance to |
Yes, it is when using VS Code 1.29.0 |
It has always been the case that preview feature support can only be used against the latest supported Java version (ie. 22) by the extension. https://bugs.eclipse.org/bugs/show_bug.cgi?id=549258#c11 also gives an explanation of this (and that to follow the JEP, one cannot allow I'm guessing this is just a lot more visible now because Java 21 is LTS. While before, people had no issues with updating to the latest release level to continue the 2nd/3rd/.. preview of feature , or consume it after it graduates to a standard feature, now users might wish to stay on the Java 21 LTS. |
When I update the extension 1.29.0 version, editor's error detection, highlight and suggestions not working.
Everything is fine after downgrade the version.
Environment
Additional Informations
I'm using vscode from flatpak. But looks that's not the case.
The text was updated successfully, but these errors were encountered: