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
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. (?)
The text was updated successfully, but these errors were encountered:
hellerim
changed the title
Scala Behavior changes make some examples fail
Scala Behavior Changes Make Some Examples Fail
Sep 15, 2024
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.
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. (?)
The text was updated successfully, but these errors were encountered: