NullPointerException in ScalacBackendCompiler$1.processMessageLine(ScalacBackendCompiler.java:205) 关注
I am using IDEA 9.0M1 Build 10372
I downloaded and manually installed the Scala plug-in version 0.2.27038.
I am running under Mac OS/X 10.5.8.
I am trying to add a small amount of Scala code to a large Java project. So far, I am just trying to compile the following Scala object:
package com.mspoke.iris.tools
/**
* Analyzes a specified set of (currently just one) feed(s) to determine that feed's hot topics.
*
* @author Dean Thompson
*/
object HotTopicsInFeeds
{
def main(args: Array[String]) {
println("Hello World")
}
}
I have tried many combinations of adding the Scala facet to a Java module, creating a new module to hold the Scala facet, creating a new module but also adding the Scala facet to the java module, etc. Whenever I try to compile, the output in the IDEA UI just shows a compiler error saying simply "Error:", with no message.
Through the Mac's built-in console application, I am able to see the following output:
9/18/09 12:23:47 PM [0x0-0xa80a8].com.jetbrains.intellij[1606] java.lang.NullPointerException
9/18/09 12:23:47 PM [0x0-0xa80a8].com.jetbrains.intellij[1606] at org.jetbrains.plugins.scala.compiler.ScalacBackendCompiler$1.processMessageLine(ScalacBackendCompiler.java:205)
9/18/09 12:23:47 PM [0x0-0xa80a8].com.jetbrains.intellij[1606] at com.intellij.compiler.impl.javaCompiler.CompilerParsingThread.run(CompilerParsingThread.java:30)
9/18/09 12:23:47 PM [0x0-0xa80a8].com.jetbrains.intellij[1606] at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:10)
9/18/09 12:23:47 PM [0x0-0xa80a8].com.jetbrains.intellij[1606] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
9/18/09 12:23:47 PM [0x0-0xa80a8].com.jetbrains.intellij[1606] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
9/18/09 12:23:47 PM [0x0-0xa80a8].com.jetbrains.intellij[1606] at java.util.concurrent.FutureTask.run(FutureTask.java:123)
9/18/09 12:23:47 PM [0x0-0xa80a8].com.jetbrains.intellij[1606] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
9/18/09 12:23:47 PM [0x0-0xa80a8].com.jetbrains.intellij[1606] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
9/18/09 12:23:47 PM [0x0-0xa80a8].com.jetbrains.intellij[1606] at java.lang.Thread.run(Thread.java:613)
9/18/09 12:23:47 PM [0x0-0xa80a8].com.jetbrains.intellij[1606] at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:10)
With sadness, I will have to give up on Scala again until someone can help me past this.
Dean
请先登录再写评论。
Hello Dean,
The latest version of the Scala plugin is only compatible with the latest
Maia EAP build, which you can download from:
http://www.jetbrains.net/confluence/display/IDEADEV/Maia+EAP
Please use this IDEA build instead of the old M1 build.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"