-
Notifications
You must be signed in to change notification settings - Fork 78
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
Infer Metals Java Home When Path Symlinks to Java Binary #1094
Open
godenji opened this issue
Aug 8, 2022
· 1 comment
· May be fixed by scalameta/metals-languageclient#479
Open
Infer Metals Java Home When Path Symlinks to Java Binary #1094
godenji opened this issue
Aug 8, 2022
· 1 comment
· May be fixed by scalameta/metals-languageclient#479
Comments
tgodzik
added a commit
to tgodzik/metals-languageclient
that referenced
this issue
Aug 8, 2022
tgodzik
added a commit
to tgodzik/metals-languageclient
that referenced
this issue
Aug 8, 2022
@godenji What happens if you reset I guess metals-vscode (locate-java-home) will find the JAVA_HOME. $ npm install -g locate-java-home
$ locate-java-home (In my case: I get the following JAVA_HOMEs by
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Linux users may have OpenJDK provided by their package manager, which creates a symlink from
/usr/bin/java
to the actual java home binary.Since Metals expects java home and not the java binary it's impossible to set the path to
/usr/bin/java
.It would be highly convenient if Metals could, when presented with a file instead of a path, walk up the directory structure to actual java home directory.
The status quo is simply hard coding the current java home path, which changes often on package manager updates, so is far from ideal.
The text was updated successfully, but these errors were encountered: