Skip to content

script compiler options can cause warnings when starting REPL #11424

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

Closed
philwalk opened this issue Feb 15, 2021 · 1 comment · Fixed by #11425
Closed

script compiler options can cause warnings when starting REPL #11424

philwalk opened this issue Feb 15, 2021 · 1 comment · Fixed by #11425

Comments

@philwalk
Copy link
Contributor

Compiler version

    Scala compiler version 3.0.0-M4-bin-SNAPSHOT-git-668e9a5 -- Copyright 2002-2021, LAMP/EPFL

Minimized code

The -save option should not also pass to the REPL:

SCALA_OPTS="-save" scala

Output

$ SCALA_OPTS="-save" bin/scala
Starting scala3 REPL...
bad option '-save' was ignored

Expectation

-save and -compile-only options should only be seen by scripting

@philwalk
Copy link
Contributor Author

will push a fix to a PR fork soon ..

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

Successfully merging a pull request may close this issue.

2 participants