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
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.
Describe the bug
When Starting VSCode, I get
To Reproduce
.jvmoptsExpected behavior
Language server should not crash. Indeed,
sbtworks 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.