orfjackal/idea-sbt-plugin — Issue #49: sbt console Fails in IDEA 10.5
Author: mslinn
Created: 2011-11-09 17:02:55+00:00
State: open

Using SBT Plugin v1.3.1 and Scala Plugin 0.4.1491

````
[info] Loading global plugins from C:\Users\Mike Slinn\.sbt\plugins
[info] Loading project definition from E:\work\experiments\scala\hanuman\project
[info] Set current project to hanuman (in build file:/E:/work/experiments/scala/hanuman/)
> console
[info] Compiling 16 Scala sources to E:\work\experiments\scala\hanuman\target\scala-2.9.1\classes...
[info] Starting scala interpreter...
[info]
[ERROR] Failed to construct terminal; falling back to unsupportedjava.lang.IllegalArgumentException: Invalid terminal type: jline.UnsupportedTerminal
at scala.tools.jline.TerminalFactory.create(TerminalFactory.java:83)
at scala.tools.jline.TerminalFactory.get(TerminalFactory.java:154)
at scala.tools.jline.console.ConsoleReader.(ConsoleReader.java:87)
at scala.tools.jline.console.ConsoleReader.(ConsoleReader.java:134)
at scala.tools.nsc.interpreter.JLineReader$JLineConsoleReader.(JLineReader.scala:42)
at scala.tools.nsc.interpreter.JLineReader.(JLineReader.scala:21)
at scala.tools.nsc.interpreter.ILoop.chooseReader(ILoop.scala:777)
at scala.tools.nsc.interpreter.ILoop.process(ILoop.scala:796)
at scala.tools.nsc.interpreter.ILoop.main(ILoop.scala:851)
at xsbt.ConsoleInterface.run(ConsoleInterface.scala:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:57)
at sbt.compiler.AnalyzingCompiler.console(AnalyzingCompiler.scala:48)
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)
Caused by: java.lang.ClassCastException: jline.UnsupportedTerminal cannot be cast to scala.tools.jline.Terminal
at scala.tools.jline.TerminalFactory.create(TerminalFactory.java:80)
... 19 more

Welcome to Scala version 2.9.1.final (Java HotSpot(TM) Client VM, Java 1.6.0_29).
Type in expressions to have them evaluated.
Type :help for more information.

scala>
````