NoSuchMethodError when compiling Scala in IDEA 14 EAP Follow
Whenever I try to compile Scala in IntelliJ IDEA 14 EAP I get the following error:
NoSuchMethodError: com.intellij.compiler.CompilerWorkspaceConfiguration.useOutOfProcessBuild()Z
I also get "Compilation completed with 0 errors and 0 warnings in 0 sec". I have Scala Plugin version 1.0.58.
Please sign in to leave a comment.
Please update Scala plugin to 1.0.93.10.EAP.
Best regards,
Alexander Podkhalyuzin.
That did it, IDEA hadn't told me about that update yet :) Manual check for updates and now it's working. Thanks!
It's happening again with 1.0.93.10.EAP :(.
All usages of this method was removed a couple of months ago. Probably you have some old jar file in the plugin directory. Try to remove it and replace with the new one manually. It is located in the plugins subdirectory of the config directory.
If it won't help please attach build.log file.
Thank you very much, your solution was a bit too extreme (and I like to get at the real cause of things), but it started me looking at the IDEA log files. It turns out the problem is the protobuf plugin:
2014-09-25 11:18:20,188 [ 73270] INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS)
2014-09-25 11:18:20,425 [ 73507] ERROR - ij.compiler.impl.CompileDriver - com.intellij.compiler.CompilerWorkspaceConfiguration.useOutOfProcessBuild()Z
java.lang.NoSuchMethodError: com.intellij.compiler.CompilerWorkspaceConfiguration.useOutOfProcessBuild()Z
at protobuf.compiler.PbPrecompileTask.execute(PbPrecompileTask.java:26)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:620)
at com.intellij.compiler.impl.CompileDriver.access$400(CompileDriver.java:90)
at com.intellij.compiler.impl.CompileDriver$3.run(CompileDriver.java:397)
at com.intellij.compiler.progress.CompilerTask.run(CompilerTask.java:201)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:478)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:177)
at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:194)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:211)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:164)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:387)
at com.intellij.openapi.application.impl.ApplicationImpl$9.run(ApplicationImpl.java:447)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)
And it seems it's a known issue: https://github.com/nnmatveev/idea-plugin-protobuf/issues/53. The weird thing is, I have protobuf compilation disabled (we're using scalabuff to compile via sbt), I added the protobuf plugin just to get syntax highlighting on .proto files. I have version 0.5.7 of the Google Protocol Buffers support plugin.
They used that method in PrecompileTask which is registered without checking compilation setting, so it executes anyway.
Did you try last version of that plugin?