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

java.configuration.runtimes option configuration error will not prompt an error #1614

Closed
Faputa opened this issue Sep 15, 2020 · 1 comment · Fixed by #1625
Closed

java.configuration.runtimes option configuration error will not prompt an error #1614

Faputa opened this issue Sep 15, 2020 · 1 comment · Fixed by #1625
Assignees

Comments

@Faputa
Copy link

Faputa commented Sep 15, 2020

I configured java.home as the installation directory of jdk11, and I deliberately set a non-existent path for JavaSE-1.8 in the java.configuration.runtimes option. Then when vscode opens Java8's project, the Java plug-in does not prompt for configuration errors, but used the jdk11 configured by java.home to compile and debug my project! This is a hidden trouble, If users misconfigure the path in the java.configuration.runtimes option, they will be more confused when the error occurs, just like I did before: vscode-java-debug/issues/873

Environment
  • Operating System: Windows 10
  • JDK version: openjdk version "1.8.0_265"
  • Visual Studio Code version: 1.49.0
  • Java extension version: 0.66.0
Current Result

image

Expected Result

When the path configuration of the java.configuration.runtimes option is incorrect, an error is displayed

@jdneo
Copy link
Collaborator

jdneo commented Sep 15, 2020

Thanks for reporting, it's dup with #1481.

I believe @testforstephen is already working on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants