You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Expected Result
When the path configuration of the java.configuration.runtimes option is incorrect, an error is displayed
The text was updated successfully, but these errors were encountered:
I configured
java.home
as the installation directory of jdk11, and I deliberately set a non-existent path forJavaSE-1.8
in thejava.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 thepath
in thejava.configuration.runtimes
option, they will be more confused when the error occurs, just like I did before: vscode-java-debug/issues/873Environment
Current Result
Expected Result
When the
path
configuration of thejava.configuration.runtimes
option is incorrect, an error is displayedThe text was updated successfully, but these errors were encountered: