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
Repl :paste mode problem for 2.11.* versions has issues not seen with previous #9221
Comments
Imported From: https://issues.scala-lang.org/browse/SI-9221?orig=1 |
@som-snytt said: It's conceivable that JLine version in 2.11 is using a setting in your environment. Some research required. |
Jimi Damon (purplefishies) said: I can go looking for possible jline issues. |
@som-snytt said: |
Jimi Damon (purplefishies) said: jline with 2.11 is around 2.12.1 |
Jimi Damon (purplefishies) said: switching the jline version has No effect on scala's paste mode not working I tried 2.10 version of scala with 2.12.1 version of jline and paste worked just fine. |
@som-snytt said: |
Jimi Damon (purplefishies) said (edited by @som-snytt on Nov 1, 2016 8:27:52 PM UTC):
|
Jimi Damon (purplefishies) said: |
@som-snytt said (edited on Nov 2, 2016 12:33:51 AM UTC): Meanwhile, the workaround is to use here doc syntax: $ scala
Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_101).
Type in expressions for evaluation. Or try :help.
scala> :pa << DONE
// Entering paste mode (DONE to finish)
val i = 42
DONE
// Exiting paste mode, now interpreting.
i: Int = 42
scala> I think it's fair to say, I had the last laugh on here doc syntax. Or, maybe every dumb idea looks smart once. |
Closing as out of scope with a workaround. |
% ./scala
Welcome to Scala version 2.11.2 (OpenJDK 64-Bit Server VM, Java 1.7.0_75).
Type in expressions to have them evaluated.
Type :help for more information.
scala> :paste
// Entering paste mode (ctrl-D to finish)
var a = 3
Control-D does nothing to leave this environment.
No problems exist for 2.10.* nor 2.9.*
The text was updated successfully, but these errors were encountered: