fsc error when running scala script

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

fsc error when running scala script

Noel Yap
This works when using Scala 2.10 and is broken in both 2.11 and 2.12.

The following script:


exec /opt/scala-2.12/bin/scala "$0"

errors with:

fscbad option: '-Xsource:2.12.0'
  fsc -help  gives more information
error: source file '/home/nyap/proj/sum-of-power/-Xsource:2.12.0' could not be found
one error found

You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.