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
{{ message }}
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.
Java home: /nix/store/rjgb7sb2wrhl98gqda31h1iaa7v6nm9y-openjdk-11.0.12+7/lib/openjdk
Metals version: 0.10.8
Unrecognized option: --add-exports java.base/sun.nio.ch=ALL-UNNAMED
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Downloading Metals failed with the following:
Process exited with code 1
To Reproduce
Create a simple Scala project
Write to .jvmopts
--add-exports java.base/sun.nio.ch=ALL-UNNAMED
Expected behavior
Language server should not crash. Indeed, sbt works fine from console for instance.
Installation:
Operating system: Linux
Editor: Visual Studio Code
Metals version: v0.10.8
Additional context
I am providing OpenJDK and sbt from Nix.
I've tried providing metals from Nix as well, but it did not fix my issue.
The text was updated successfully, but these errors were encountered:
Metals uses .jvmopts for starting the server by default and it seems JDK doesn't recognize the --add-exports option. If you remove it the server should start. You can also specify a separate javaHome to a JDK that recognizes the option.
Describe the bug
When Starting VSCode, I get
To Reproduce
.jvmopts
Expected behavior
Language server should not crash. Indeed,
sbt
works fine from console for instance.Installation:
Additional context
I am providing OpenJDK and sbt from Nix.
I've tried providing metals from Nix as well, but it did not fix my issue.
The text was updated successfully, but these errors were encountered: