does not work "sbt console" sbt0.12.4 and Scala2.11.0-M4

89 views
Skip to first unread message

Kenji Yoshida

unread,
Jul 18, 2013, 2:55:44 AM7/18/13
to simple-b...@googlegroups.com
 sbt0.12.x does not support Scala2.11.0-M4 or higher?


$ sbt '++ 2.11.0-M4' console
[info] Starting scala interpreter...
[info] 
[error] (run-main) java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
at jline.console.ConsoleReader.<init>(ConsoleReader.java:228)
at jline.console.ConsoleReader.<init>(ConsoleReader.java:219)
at jline.console.ConsoleReader.<init>(ConsoleReader.java:207)
at scala.tools.nsc.interpreter.JLineReader$JLineConsoleReader.<init>(JLineReader.scala:36)
at scala.tools.nsc.interpreter.JLineReader.<init>(JLineReader.scala:19)
at scala.tools.nsc.interpreter.ILoop.chooseReader(ILoop.scala:782)
at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1$$anonfun$apply$mcZ$sp$2.apply(ILoop.scala:820)
at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply$mcZ$sp(ILoop.scala:820)
at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:815)
at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:815)
at scala.reflect.internal.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:95)
at scala.tools.nsc.interpreter.ILoop.process(ILoop.scala:815)
at scala.tools.nsc.interpreter.ILoop.main(ILoop.scala:837)
at xsbt.ConsoleInterface.run(ConsoleInterface.scala:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:73)
at sbt.compiler.AnalyzingCompiler.console(AnalyzingCompiler.scala:64)
at sbt.Console.console0$1(Console.scala:23)
at sbt.Console$$anonfun$apply$2$$anonfun$apply$1.apply$mcV$sp(Console.scala:24)
at sbt.TrapExit$.executeMain$1(TrapExit.scala:33)
at sbt.TrapExit$$anon$1.run(TrapExit.scala:42)
java.lang.RuntimeException: Nonzero exit code: 1
at scala.sys.package$.error(package.scala:27)
at sbt.Defaults$$anonfun$consoleTask$1$$anonfun$apply$28.apply(Defaults.scala:568)
at sbt.Defaults$$anonfun$consoleTask$1$$anonfun$apply$28.apply(Defaults.scala:568)
at scala.Option.foreach(Option.scala:197)
at sbt.Defaults$$anonfun$consoleTask$1.apply(Defaults.scala:568)
at sbt.Defaults$$anonfun$consoleTask$1.apply(Defaults.scala:566)
at sbt.Scoped$$anonfun$hf8$1.apply(Structure.scala:584)
at sbt.Scoped$$anonfun$hf8$1.apply(Structure.scala:584)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:41)
at sbt.std.Transform$$anon$5.work(System.scala:71)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:238)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
[error] (compile:console) Nonzero exit code: 1

Mark Harrah

unread,
Jul 18, 2013, 8:27:05 AM7/18/13
to simple-b...@googlegroups.com
On Wed, 17 Jul 2013 23:55:44 -0700 (PDT)
Kenji Yoshida <6b656...@gmail.com> wrote:

> sbt0.12.x does not support Scala2.11.0-M4 or higher?

You can use the 0.13 launcher with 0.12 for this.

The problem is that 0.12 had JLine 1.0 embedded to avoid class loader leaks and native library issues. Earlier Scala versions had a shaded JLine so they didn't have problems.

sbt 0.13 and Scala 2.11.0-M4 move to the same JLine 2.x version and JLine doesn't have to be present in the launcher anymore.

-Mark
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-t...@googlegroups.com.
> To post to this group, send email to simple-b...@googlegroups.com.
> Visit this group at http://groups.google.com/group/simple-build-tool.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages