-
Notifications
You must be signed in to change notification settings - Fork 171
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
Unbreak sbt.ScriptMain #122
Comments
I propose removing all the logic around setting Among other things this would solve #99. |
Here's an example scala script (using sbt.ScriptMain), after #142: #!/usr/bin/env sbt -script
/***
scalaVersion := "2.11.8"
*/
println(scala.util.Properties.versionNumberString) |
The above script doesn't work with current master, provided you have a JAVA_HOME set: $ export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
$ ./shout.scala
[info] Loading global plugins from /Users/dnw/.dotfiles/.sbt/0.13/plugins
java.io.FileNotFoundException: /s/warn (No such file or directory)
at java.io.FileInputStream.open0(Native Method) |
As a rule, shebang lines like #!/usr/bin/env sbt -script don't work. It makes the whole endeavor a giant pain. See some discussion at stackoverflow. You cannot rely on being able to pass more than one argument to env. |
Oh wonderful.. |
The changes around JAVA_HOME and setting javaHome in #95 broke sbt.ScriptMain.
See #95 (comment)
The text was updated successfully, but these errors were encountered: