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 -i" hangs, cannot preload file before starting the REPL #4945
Comments
Imported From: https://issues.scala-lang.org/browse/SI-4945?orig=1 |
@paulp said: |
Hendy Irawan (ceefour) said: Still happens on 2.9.1 |
@paulp said: scala3 -Yrepl-sync -i bip.scala
Loading bip.scala...
bad option: '-i:bip.scala' |
@adriaanm said: |
Hendy Irawan (ceefour) said: |
Ryan Hendrickson (ryan.hendrickson_bwater) said (edited on Mar 20, 2013 5:45:42 PM UTC): Although hold up, I'm running the REPL by calling ILoop directly, not by running the scala shell script, and I see that your fix for this involves just adding that option in MainGenericRunner, which I bypass. Sorry about that; I guess this is just one of the sharp corners when playing with internal APIs. |
In Scala 2.9.1.RC4, the "-i 'file'" command line argument (which is supposed to preload a file before starting the REPL) does not work. For example, consider a file "preload.scala" containing just 'println("Hello world.")'. Scala 2.9.1.RC4 says "Loading preload.scala..." and never yields the prompt. It hangs indefinitely. Conversely, the "-i" command line arguments works as expected in Scala 2.9.0.1, yielding the prompt after printing "Hello world."
The text was updated successfully, but these errors were encountered: