dcaoyuan / nbscala

NetBeans Plugin for Scala

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

java.lang.NullPointerException at org.netbeans.modules.scala.sbt.console.SBTConsoleTopComponent$$anon$4$$anonfun$2.apply(SBTConsoleTopComponent.java:334)

opened this issue · comments

Getting this exception when opening or reloading sbt project.
After the exception I see endlessly running "Sbt resolving ..." task.

Reproduced with fresh installation of Netbeans 7.4 and nbscala-7.4_2.10.x-1.6.1.1.zip from http://sourceforge.net/projects/erlybird/files/nb-scala/7.x_2.10.x/;

The actual code line is:

val results = commands map tc.console.runCommand

but I have no clue where the problem is as I don't know Scala.

There are already several reports of this exception here:
http://statistics.netbeans.org/exceptions/detail.do?id=205013

Thanks in advance!

I've found that the actual problem was caused by a MethodNotFoundException thrown from SBTConsoleTopComponent.openTerminal at line with code:

val sbtLaunchJar = ScalaExecution.getSbtLaunchJar(sbtHome)

Building nbscala from current master branch & re-installing it solved this problem.