scala 2.11 M4: JLine crashing on !

69 views
Skip to first unread message

Shua T.

unread,
Aug 20, 2013, 10:34:13 PM8/20/13
to scala...@googlegroups.com
Should this be filed on the Scala issue tracker? Or should it be sent to JLine? Or is it already known/fixed?

Welcome to Scala version 2.11.0-M4 (Java HotSpot(TM) Client VM, Java 1.7.0_25).
Type in expressions to have them evaluated.
Type :help for more information.

scala> "!"
java.lang.IllegalArgumentException: !": event not found
        at jline.console.ConsoleReader.expandEvents(ConsoleReader.java:734)
        at jline.console.ConsoleReader.finishBuffer(ConsoleReader.java:604)
        at jline.console.ConsoleReader.accept(ConsoleReader.java:1912)
        at jline.console.ConsoleReader.readLine(ConsoleReader.java:2537)
        at jline.console.ConsoleReader.readLine(ConsoleReader.java:2162)
        at scala.tools.nsc.interpreter.JLineReader.readOneLine(JLineReader.scala
:66)
        at scala.tools.nsc.interpreter.InteractiveReader$class.readLine(Interact
iveReader.scala:35)
        at scala.tools.nsc.interpreter.JLineReader.readLine(JLineReader.scala:17
)
        at scala.tools.nsc.interpreter.ILoop.readOneLine(ILoop.scala:436)
        at scala.tools.nsc.interpreter.ILoop.loop(ILoop.scala:444)
        at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply$mcZ$sp(ILo
op.scala:829)
        at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scal
a:815)
        at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scal
a:815)
        at scala.reflect.internal.util.ScalaClassLoader$
.savingContextLoader(Sca
laClassLoader.scala:95)
        at scala.tools.nsc.interpreter.ILoop.process(ILoop.scala:815)
        at scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala
:81)
        at scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:94)

        at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:103)
        at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)

That entry seems to have slain the compiler.  Shall I replay
your session? I can re-run each line except the last one.
[y/n]

Som Snytt

unread,
Aug 20, 2013, 11:32:59 PM8/20/13
to Shua T., scala-user
I don't know if the fix is the last word for the feature, but it doesn't crash.



--
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 scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages