Skip to content
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

sbtopts does not recognize JVM parameters with spaces #7333

Open
scf37 opened this issue Jul 15, 2023 · 1 comment
Open

sbtopts does not recognize JVM parameters with spaces #7333

scf37 opened this issue Jul 15, 2023 · 1 comment
Labels

Comments

@scf37
Copy link

scf37 commented Jul 15, 2023

steps

.sbtopts file:

-J--enable-preview
-J--add-modules jdk.incubator.concurrent

problem

$ sbt
Error: --add-modules requires modules to be specified
copying runtime jar...
mkdir: cannot create directory ‘’: No such file or directory
Error: --add-modules requires modules to be specified
Error: --add-modules requires modules to be specified

expectation

Succesful startup

notes

Also tried:

"-J--add-modules jdk.incubator.concurrent"
-J"--add-modules jdk.incubator.concurrent"
@scf37 scf37 added the Bug label Jul 15, 2023
@scf37
Copy link
Author

scf37 commented Jul 15, 2023

workaround: use .jvmopts (see sbt --help)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant