Compiler internal error. Process terminated with exit code 1

Hi there,
for some reason my IDEA started to throw the following compiler error: "Compiler internal error. Process terminated with exit code 1"
A stacktrace from idea.log


2011-08-08 14:25:24,031 [ 783850]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED
2011-08-08 14:25:25,040 [ 784859]  DEBUG - la.compiler.ScalacOutputParser - [Classpath = ..]
2011-08-08 14:25:25,040 [ 784859]  DEBUG - la.compiler.ScalacOutputParser - [Classpath = ..]
2011-08-08 14:25:26,073 [ 785892]  DEBUG - la.compiler.ScalacOutputParser - [loaded package loader resources.jar in 973ms]
2011-08-08 14:25:26,073 [ 785892]  DEBUG - la.compiler.ScalacOutputParser - [loaded package loader resources.jar in 973ms]
2011-08-08 14:25:26,170 [ 785989]  DEBUG - la.compiler.ScalacOutputParser - [loaded package loader java in 1ms]
2011-08-08 14:25:26,170 [ 785989]  DEBUG - la.compiler.ScalacOutputParser - [loaded package loader java in 1ms]
2011-08-08 14:25:26,178 [ 785997]  DEBUG - la.compiler.ScalacOutputParser - [loaded package loader lang in 8ms]
2011-08-08 14:25:26,178 [ 785997]  DEBUG - la.compiler.ScalacOutputParser - [loaded package loader lang in 8ms]
2011-08-08 14:25:26,189 [ 786008]  DEBUG - la.compiler.ScalacOutputParser - [loaded package loader reflect in 7ms]
2011-08-08 14:25:26,189 [ 786008]  DEBUG - la.compiler.ScalacOutputParser - [loaded package loader reflect in 7ms]
2011-08-08 14:25:26,231 [ 786050]  DEBUG - la.compiler.ScalacOutputParser - [loaded package loader annotation in 1ms]
2011-08-08 14:25:26,231 [ 786050]  DEBUG - la.compiler.ScalacOutputParser - [loaded package loader annotation in 1ms]
2011-08-08 14:25:26,242 [ 786061]  DEBUG - la.compiler.ScalacOutputParser - [loaded class file ...\.m2\repository\org\scala-lang\scala-library\2.9.0\scala-library-2.9.0.jar(scala/package.class) in 88ms]
2011-08-08 14:25:26,242 [ 786061]  DEBUG - la.compiler.ScalacOutputParser - [loaded class file ...\.m2\repository\org\scala-lang\scala-library\2.9.0\scala-library-2.9.0.jar(scala/package.class) in 88ms]
2011-08-08 14:25:26,252 [ 786071]  DEBUG - la.compiler.ScalacOutputParser - [loaded package loader scala in 175ms]
2011-08-08 14:25:26,252 [ 786071]  DEBUG - la.compiler.ScalacOutputParser - [loaded package loader scala in 175ms]
2011-08-08 14:25:26,272 [ 786091]  DEBUG - la.compiler.ScalacOutputParser - [loaded class file ...\.m2\repository\org\scala-lang\scala-library\2.9.0\scala-library-2.9.0.jar(scala/runtime/package.class) in 5ms]
2011-08-08 14:25:26,272 [ 786091]  DEBUG - la.compiler.ScalacOutputParser - [loaded class file ...\.m2\repository\org\scala-lang\scala-library\2.9.0\scala-library-2.9.0.jar(scala/runtime/package.class) in 5ms]
2011-08-08 14:25:26,272 [ 786091]  DEBUG - la.compiler.ScalacOutputParser - [loaded package loader runtime in 13ms]
2011-08-08 14:25:26,272 [ 786091]  DEBUG - la.compiler.ScalacOutputParser - [loaded package loader runtime in 13ms]
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser - Exception in thread "main" java.lang.RuntimeException: Compiler classes not found:
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser - Exception in thread "main" java.lang.RuntimeException: Compiler classes not found:
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:69)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:69)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser - Caused by: java.lang.reflect.InvocationTargetException
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser - Caused by: java.lang.reflect.InvocationTargetException
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at java.lang.reflect.Method.invoke(Method.java:597)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at java.lang.reflect.Method.invoke(Method.java:597)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:67)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:67)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser - Caused by: java.lang.AssertionError: assertion failed: List(object Byte, object Byte)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser - Caused by: java.lang.AssertionError: assertion failed: List(object Byte, object Byte)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.symtab.Symbols$Symbol.suchThat(Symbols.scala:1056)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.symtab.Symbols$Symbol.suchThat(Symbols.scala:1056)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.symtab.Symbols$Symbol.companionModule0(Symbols.scala:1271)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.symtab.Symbols$Symbol.companionModule0(Symbols.scala:1271)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.symtab.Symbols$Symbol.companionModule(Symbols.scala:1281)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.symtab.Symbols$Symbol.companionModule(Symbols.scala:1281)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.symtab.Symbols$Symbol.linkedClassOfClass(Symbols.scala:1302)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.symtab.Symbols$Symbol.linkedClassOfClass(Symbols.scala:1302)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.symtab.Definitions$definitions$.addModuleMethod$1(Definitions.scala:711)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.symtab.Definitions$definitions$.addModuleMethod$1(Definitions.scala:711)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.symtab.Definitions$definitions$.initValueClasses(Definitions.scala:714)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.symtab.Definitions$definitions$.initValueClasses(Definitions.scala:714)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:791)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:791)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.Global$Run.<init>(Global.scala:604)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.Global$Run.<init>(Global.scala:604)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.Main$.process(Main.scala:105)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.Main$.process(Main.scala:105)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.Main$.main(Main.scala:120)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.Main$.main(Main.scala:120)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.Main.main(Main.scala)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  at scala.tools.nsc.Main.main(Main.scala)
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  ... 5 more
2011-08-08 14:25:26,306 [ 786125]  DEBUG - la.compiler.ScalacOutputParser -  ... 5 more



It though it works fine with another project (same scala plugin 0.4.1205 and same idea - 10.5.1)
Any thoughts how to cure it?
0
4 comments

There are three most common possibilities. On of them it's exception from compiler (for example try to compile without IDEA, if it's ok, then compiler is ok, otherwise it's compiler bug).  Second possibility is wrong classpath (for example compiler has version 2.9 and classpath has version 2.8, however as I know, error message is different). Third most common possibility is unstable working fsc (so try to disable it).

Best regards,
Alexander Podkhalyuzin.

0

It's FSC for sure.
The funny thing is that it was disabled (I enabled it and then disabled) after that it started to fail with "Compiler internal error". So I just enabled it again (ticked "Use fsc (fast scalac)" in Scala Compiler screen) and it works now :)
Looks like it turned around and now FSC is actually disabled.
Is there another way to check if FSC is enabled or not?

0

If compilation is fast then it's fsc, otherwise not:)

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.