-
Notifications
You must be signed in to change notification settings - Fork 127
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
Option -save
is not supported
#1670
Comments
Actually, it seems that part isn't entirely true.
Looking at the actual behaviour: ▶ tree -a
# .
# └── smth.scala
#
# 0 directories, 1 file
▶ scala -save smth.scala
# Hello
▶ tree -a
# .
# ├── smth.jar
# └── smth.scala
#
# 0 directories, 2 files
▶ scala smth.jar
# Hello It seems that the Now, this looks like a way to combine the
In this context, that wouldn't be true. We could always just not support it if it's not actually needed and print a warning like @julienrf thoughts? Is this option necessary? |
Also, a side note - it seems that what I mentioned above would also require us to implement #1641, so I'm tagging it as |
I think the fact that it saves the compiled code as a .jar is an “implementation detail”. But maybe not. Maybe some people are relying on the produced jar. In that case, I think a warning saying that this option is ignored but the compilation artifacts are saved (in |
We could even suggest running a subsequent |
Is your feature request related to a problem? Please describe.
The current
scala
runner (based on Scala 2.13) does support a-save
option.The experimental
scala
runner (based on Scala CLI) does not recognize that option:Describe the solution you'd like
For the sake of compatibility with the current runner, it would be great to recognize the
-save
option. As far as I understand, Scala CLI now always behaves like the currentscala -save
, so the option is not necessary anymore. Therefore, it could simply print a warning like “Unnecessary option: -save. This option is always enabled.”The text was updated successfully, but these errors were encountered: