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

Scala Behavior Changes Make Some Examples Fail #131

Closed
hellerim opened this issue Sep 15, 2024 · 1 comment · Fixed by #132
Closed

Scala Behavior Changes Make Some Examples Fail #131

hellerim opened this issue Sep 15, 2024 · 1 comment · Fixed by #132

Comments

@hellerim
Copy link

hellerim commented Sep 15, 2024

Many command line utilities which call other programs use "--" to separate arguments to these programs from the preceding arguments which are consumed by the respective utility itself. Scala and sbt obviously adopted this behavior. This is why on p. 16 ff, in particular on p.18 below, examples fail at least with Scala 3.5.0 and sbt 1.10.1, e.g.
$ scala -cp . -M progscala3.introscala.UpperMain1 hello computed world!
now should read
$ scala -cp . -M progscala3.introscala.UpperMain1 -- hello computed world!,
otherwise you should expect lots of input file not found exceptions.
Since it took me quite a while to figure out the cause of these exceptions - I'm not an sbt or scala expert -, I think this new behavior should be made known in some prominent place. (?)

@hellerim hellerim changed the title Scala Behavior changes make some examples fail Scala Behavior Changes Make Some Examples Fail Sep 15, 2024
@deanwampler
Copy link
Owner

Thanks for letting me know and sorry the examples didn't work "out of the box"! I'll add some warning language about "evolving changes" to the README and fix all the examples this coming week.

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

Successfully merging a pull request may close this issue.

2 participants