-
Notifications
You must be signed in to change notification settings - Fork 414
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
Projects containing windows symlink directories are not recognized, nothing works #2264
Comments
Might be related: https://openjdk.java.net/jeps/396 |
@AgainPsychoX you may want to take a look at microsoft/vscode-java-debug#1023 (comment) |
Tried installing version |
@AgainPsychoX Could you try to append e.g. change it to the following value.
|
This comment has been minimized.
This comment has been minimized.
Seems to work! Is this official solution? Why isn't it in the codebase in the first place or something? Or will it be addressed somehow else in next versions? |
@AgainPsychoX, thanks for your verification. Yes, it's a bug that we have to fix. The reason is that your workspace contains symbolic links, and VS Code Java extension uses some JDK API Using internal APIs will throw illegal access by default when running on JDK 16 and above. The solution is to avoid using JDK internal APIs, or use On the other hand, Java extension 1.2.0 embeds a minimal JRE 17 runtime to launch Java extension, that's why it fails recently. In short term, we could use the JVM args |
Environment
Windows 10
OpenJDK 64-Bit Server VM Temurin-17.0.1+12 (build 17.0.1+12
1.63.2
Language Support for Java(TM) by Red Hat v1.2.0
Steps To Reproduce
Extension Pack for Java v0.20.0
(including theLanguage Support for Java(TM) by Red Hat v1.2.0
)Current Result
Hardly anything works.
Expected Result
Actually anything.
Additional Informations
Logs: https://gist.github.com/AgainPsychoX/1c8d75f00fd53282fd6fafd7becf633c
Reoccurring thing seems to be:
The text was updated successfully, but these errors were encountered: