got weird internal compiler error, wonder where to file bug

I've got the latest (I believe) plugin, and scala 2.7.4; and, when I compile my code in intellij (command line is okay), I'm getting a long internal compiler error (see below); now, I wonder should I file it to scala compiler people? Probably not, since I get no such error when I just run scalac. Probably this is the plugin bug, right? Please confirm...


Information:Compilation completed with 63 errors and 0 warnings
Information:63 errors
Information:0 warnings
Error:Scalac internal error: class java.lang.reflect.InvocationTargetException [sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25), java.lang.reflect.Method.invoke(Method.java:597), org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:74)][scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.errorBadSignature(UnPickler.scala:762), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbol(UnPickler.scala:172), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef$1.apply(UnPickler.scala:714), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef$1.apply(UnPickler.scala:714), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef(UnPickler.scala:714), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbol(UnPickler.scala:166), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef$1.apply(UnPickler.scala:714), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef$1.apply(UnPickler.scala:714), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef(UnPickler.scala:714), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala:247), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef(UnPickler.scala:715), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala:253), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef(UnPickler.scala:715), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType$1.apply(UnPickler.scala:275), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType$1.apply(UnPickler.scala:275), scala.tools.nsc.symtab.classfile.PickleBuffer.until(PickleBuffer.scala:127), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala:275), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$LazyTypeRef$$anonfun$32$$anonfun$apply$4.apply(UnPickler.scala:779), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$LazyTypeRef$$anonfun$32$$anonfun$apply$4.apply(UnPickler.scala:779), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$LazyTypeRef$$anonfun$32.apply(UnPickler.scala:779), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$LazyTypeRef$$anonfun$32.apply(UnPickler.scala:779), scala.tools.nsc.Global$$anonfun$6.apply(Global.scala:747), scala.tools.nsc.Global$$anonfun$6.apply(Global.scala:747), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$LazyTypeRef.complete(UnPickler.scala:779), scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$LazyTypeRef.load(UnPickler.scala:783), scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.initRoot(SymbolLoaders.scala:105), scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:93), scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.load(SymbolLoaders.scala:97), scala.tools.nsc.symtab.Symbols$Symbol.exists(Symbols.scala:425), scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:2940), scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3290), scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3358), scala.tools.nsc.typechecker.Typers$Typer.typedTypeConstructor(Typers.scala:3446), scala.tools.nsc.typechecker.Typers$Typer.typedTypeConstructor(Typers.scala:3454), scala.tools.nsc.typechecker.Typers$Typer.parentTypes(Typers.scala:916), scala.tools.nsc.typechecker.Namers$Namer.templateSig(Namers.scala:546), scala.tools.nsc.typechecker.Namers$Namer.classSig(Namers.scala:603), scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:838), scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:415), scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:413), scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:982), scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:555), scala.tools.nsc.symtab.Symbols$Symbol.initialize(Symbols.scala:669), scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3078), scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3358), scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3395), scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:1598), scala.tools.nsc.typechecker.Typers$Typer$$anonfun$19.apply(Typers.scala:1643), scala.tools.nsc.typechecker.Typers$Typer$$anonfun$19.apply(Typers.scala:1643), scala.List$.loop$1(List.scala:300), scala.List$.mapConserve(List.scala:317), scala.List$.loop$1(List.scala:304), scala.List$.mapConserve(List.scala:317), scala.List$.loop$1(List.scala:304), scala.List$.mapConserve(List.scala:317), scala.List$.loop$1(List.scala:304), scala.List$.mapConserve(List.scala:317), scala.List$.loop$1(List.scala:304), scala.List$.mapConserve(List.scala:317), scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:1643), scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3084), scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3358), scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3395), scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:1598), scala.tools.nsc.typechecker.Typers$Typer$$anonfun$19.apply(Typers.scala:1643), scala.tools.nsc.typechecker.Typers$Typer$$anonfun$19.apply(Typers.scala:1643), scala.List$.loop$1(List.scala:300), scala.List$.mapConserve(List.scala:317), scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:1643), scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3084), scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3358), scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3395), scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$2.apply(Analyzer.scala:41), scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:267), scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:246), scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:246), scala.Iterator$class.foreach(Iterator.scala:414), scala.collection.mutable.ListBuffer$$anon$1.foreach(ListBuffer.scala:266), scala.tools.nsc.Global$GlobalPhase.run(Global.scala:246), scala.tools.nsc.Global$Run.compileSources(Global.scala:574), scala.tools.nsc.Global$Run.compile(Global.scala:667), scala.tools.nsc.Main$.process(Main.scala:73), scala.tools.nsc.Main$.main(Main.scala:87), scala.tools.nsc.Main.main(Main.scala), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25), java.lang.reflect.Method.invoke(Method.java:597), org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:74)]
Error:sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Error:sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Error:sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Error:java.lang.reflect.Method.invoke(Method.java:597)
Error:org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:74)
Error:Caused by java.lang.RuntimeException: malformed Scala signature of JUnit3Suite at 934; reference value junit of package class <root> refers to nonexisting symbol.
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.errorBadSignature(UnPickler.scala:762)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbol(UnPickler.scala:172)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef$1.apply(UnPickler.scala:714)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef(UnPickler.scala:714)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbol(UnPickler.scala:166)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala:247)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef$1.apply(UnPickler.scala:715)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef(UnPickler.scala:715)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala:253)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$$anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType$1.apply(UnPickler.scala:275)
Error:scala.tools.nsc.symtab.classfile.PickleBuffer.until(PickleBuffer.scala:127)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala:275)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$LazyTypeRef$$anonfun$32$$anonfun$apply$4.apply(UnPickler.scala:779)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$LazyTypeRef$$anonfun$32.apply(UnPickler.scala:779)
Error:scala.tools.nsc.Global$$anonfun$6.apply(Global.scala:747)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$LazyTypeRef.complete(UnPickler.scala:779)
Error:scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$LazyTypeRef.load(UnPickler.scala:783)
Error:scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.initRoot(SymbolLoaders.scala:105)
Error:scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:93)
Error:scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.load(SymbolLoaders.scala:97)
Error:scala.tools.nsc.symtab.Symbols$Symbol.exists(Symbols.scala:425)
Error:scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:2940)
Error:scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3290)
Error:scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3358)
Error:scala.tools.nsc.typechecker.Typers$Typer.typedTypeConstructor(Typers.scala:3446)
Error:scala.tools.nsc.typechecker.Typers$Typer.typedTypeConstructor(Typers.scala:3454)
Error:scala.tools.nsc.typechecker.Typers$Typer.parentTypes(Typers.scala:916)
Error:scala.tools.nsc.typechecker.Namers$Namer.templateSig(Namers.scala:546)
Error:scala.tools.nsc.typechecker.Namers$Namer.classSig(Namers.scala:603)
Error:scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:838)
Error:scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:415)
Error:scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:413)
Error:scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:982)
Error:scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:555)
Error:scala.tools.nsc.symtab.Symbols$Symbol.initialize(Symbols.scala:669)
Error:scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3078)
Error:scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:3395)
Error:scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:1598)
Error:scala.tools.nsc.typechecker.Typers$Typer$$anonfun$19.apply(Typers.scala:1643)
Error:scala.List$.loop$1(List.scala:300)
Error:scala.List$.mapConserve(List.scala:317)
Error:scala.List$.loop$1(List.scala:304)
Error:scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:1643)
Error:scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3084)
Error:scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$2.apply(Analyzer.scala:41)
Error:scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:267)
Error:scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:246)
Error:scala.Iterator$class.foreach(Iterator.scala:414)
Error:scala.collection.mutable.ListBuffer$$anon$1.foreach(ListBuffer.scala:266)
Error:scala.tools.nsc.Global$GlobalPhase.run(Global.scala:246)
Error:scala.tools.nsc.Global$Run.compileSources(Global.scala:574)
Error:scala.tools.nsc.Global$Run.compile(Global.scala:667)
Error:scala.tools.nsc.Main$.process(Main.scala:73)
Error:scala.tools.nsc.Main$.main(Main.scala:87)
Error:scala.tools.nsc.Main.main(Main.scala)



0
5 comments

I've seen similar things and have eliminated them by restarting IDEA.

It's pretty clear the Scala plug-in goes to some length to minimize the amount of recompilation it does, and it sometimes seems to mess up whatever internal data it uses for that purpose.


Randall Schulz

0

I'm afraid it did not work for me. Even after rebooting actually. Still same error; so I have to run through command line.

0

I guess the next thing to try is "Invalidate Caches" (towards the bottom in the File menu).


Randall Schulz

0

It's possible compiler error, but also possible plugin error. I'm not sure that you use scalac with same string, to compare it, we need to look into scalac.bat, to see what it invoke really.
To fix this, we should try to look at your case. If you have possibility to minimize you project and give it to us, it'll give chances to fix it or send this report to compiler.
And how about 2.7.3 or 2.7.5 compilers?

Best regards,
Alexander Podkhalyuzin.

0

Error:Caused by java.lang.RuntimeException: malformed Scala signature of JUnit3Suite at 934; reference value junit of package class <root> refers to nonexisting symbol.


 


I expect this is a missing dependency on JUnit. In this post, Bill Venners reproduced the compiler error by removing junit from the classpath.

http://groups.google.com/group/scalatest-users/browse_thread/thread/63183b0e66f58784?pli=1

The scala compiler is not as forgiving about missing indirect dependencies during compilation, and the error messages are sometimes cryptic. Here a similar one: http://code.google.com/p/specs/issues/detail?id=70

To compound the problem, sometimes the IntelliJ plugin swallows these error messages and just says "compiler exited with code -1". http://www.jetbrains.net/jira/browse/SCL-996

0

Please sign in to leave a comment.