redhat-developer / vscode-java

Java Language Support for Visual Studio Code
Eclipse Public License 2.0
2.05k stars 420 forks source link

inform/detect which operating system a jdk comes from and stop this error #3678

Open sombriks opened 1 week ago

sombriks commented 1 week ago

whenever i open a java project in vscode in a different operating system, this appears:

image

those jdk exists, but in another machine, another operating system.

please make possible detect if jdks belongs to the current operating system so the message does not pops out.

Environment
Steps To Reproduce
  1. sync vscode account and settings across operating systems
  2. configure distinct jvms on each OS
Current Result

The jvm marked as missing exists in another OS

Expected Result

my account works across distinct installations, that setting is platform-dependent, or at least should be

Additional Informations
rgrunber commented 1 week ago

This is because we changed java.configuration.runtimes from machine to machine-overridable in https://github.com/redhat-developer/vscode-java/issues/2001 . @jdneo does https://github.com/redhat-developer/vscode-java/issues/2115 help with this at all ?