-
Notifications
You must be signed in to change notification settings - Fork 1.1k
System.property "scala.home" is not being set when launching scripts #13758
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
Comments
@philwalk Unsurprisingly one (possibly two) batch file is also concerned by this issue :
With a small code tweak in
Later on I can create a PR (once our addition to the bash script is validated), i.e. in
PS. For comparison here is what we currently get with Scala 2 on MS Windows:
With a small code tweak in
The modified code for setting
New (Tip : Always surround variable assignments dealing with paths by double quotes) :
|
The PR for the bash script fix is #13759 |
provide scala.home setting for scripts - fix for #13758
Compiler version
Scala code runner version 3.1.1-RC1-bin-SNAPSHOT-git-3e192a3 -- Copyright 2002-2021, LAMP/EPFL
Minimized code
The following script attempts to print out the runtime scala install directory.
Output
null
Expectation
should print the path to the runtime scala.
Note that there is no simple alternative to figuring out the path to the current runtime scala.
Different scripts can specify different versions of scala via the hashbang line, so environment variables can't be relied on.
The text was updated successfully, but these errors were encountered: