On 12/14/2011 04:42 PM, Mehdi Dogguy wrote: > On 12/14/2011 04:36 PM, Thomas Koch wrote: >> >> scala installs upstream's lib/jline.jar instead of relying on >> Debian's jline package. lib/jline.jar even contains a shared >> library (META-INF/native/linux32/libjansi.so). >> > > Yeah… the sad thing is that the two are incompatible (Debian's > jline.jar and Scala's jline.jar), last I looked. I was pretty sure I > installed the built jline.jar (not the one provided by upstream). > I'll double check later. >
It is not the case indeed. Thanks for reporting this bug. I wonder if I'm not just going to drop jline from scala'a package and rely on readline-editor instead (by using "rlwrap -C scala"). That would help us to not care about their fork of jline. (or I could build jline from src/jline). Inputs on this matter are welcome. If we're going with the former, then we will need the little patch attached to this mail. Regards, -- Mehdi Dogguy مهدي الدڤي http://dogguy.org/
--- a/compiler/scala/tools/nsc/interpreter/ILoop.scala +++ b/compiler/scala/tools/nsc/interpreter/ILoop.scala @@ -780,7 +780,6 @@ class ILoop(in0: Option[BufferedReader], protected val out: JPrintWriter) ) catch { case ex @ (_: Exception | _: NoClassDefFoundError) => - echo("Failed to created JLineReader: " + ex + "\nFalling back to SimpleReader.") SimpleReader() } }