Issues compiling scala files
I have a very simple scala project setup I'm using to explore the language. I'm using version 2.10.2 and sbt from the command line to build. It works great. I've tried a couple of different times to setup the project in IntelliJ and it seems configured correctly and everytime I try to compile from the IDE I get the error below. Can somebody tell me what might be wrong? I can compile fine from the command line.
scala: error while loading <root>, error in opening zip file
scala: Error: object scala.runtime in compiler mirror not found.
scala.reflect.internal.MissingRequirementError: object scala.runtime in compiler mirror not found.
at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:16)
at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:17)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:48)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:40)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:61)
at scala.reflect.internal.Mirrors$RootsBase.getPackage(Mirrors.scala:172)
at scala.reflect.internal.Mirrors$RootsBase.getRequiredPackage(Mirrors.scala:175)
at scala.reflect.internal.Definitions$DefinitionsClass.RuntimePackage$lzycompute(Definitions.scala:181)
at scala.reflect.internal.Definitions$DefinitionsClass.RuntimePackage(Definitions.scala:181)
at scala.reflect.internal.Definitions$DefinitionsClass.RuntimePackageClass$lzycompute(Definitions.scala:182)
at scala.reflect.internal.Definitions$DefinitionsClass.RuntimePackageClass(Definitions.scala:182)
at scala.reflect.internal.Definitions$DefinitionsClass.AnnotationDefaultAttr$lzycompute(Definitions.scala:1015)
at scala.reflect.internal.Definitions$DefinitionsClass.AnnotationDefaultAttr(Definitions.scala:1014)
at scala.reflect.internal.Definitions$DefinitionsClass.syntheticCoreClasses$lzycompute(Definitions.scala:1144)
at scala.reflect.internal.Definitions$DefinitionsClass.syntheticCoreClasses(Definitions.scala:1143)
at scala.reflect.internal.Definitions$DefinitionsClass.symbolsNotPresentInBytecode$lzycompute(Definitions.scala:1187)
at scala.reflect.internal.Definitions$DefinitionsClass.symbolsNotPresentInBytecode(Definitions.scala:1187)
at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1252)
at scala.tools.nsc.Global$Run.<init>(Global.scala:1290)
at xsbt.CachedCompiler0$$anon$2.<init>(CompilerInterface.scala:104)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:104)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:89)
at xsbt.CompilerInterface.run(CompilerInterface.scala:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:74)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:36)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:30)
at sbt.compiler.AggressiveCompile$$anonfun$8$$anonfun$compileScala$1$1$$anonfun$apply$3$$anonfun$apply$1.apply$mcV$sp(AggressiveCompile.scala:77)
at sbt.compiler.AggressiveCompile$$anonfun$8$$anonfun$compileScala$1$1$$anonfun$apply$3$$anonfun$apply$1.apply(AggressiveCompile.scala:77)
at sbt.compiler.AggressiveCompile$$anonfun$8$$anonfun$compileScala$1$1$$anonfun$apply$3$$anonfun$apply$1.apply(AggressiveCompile.scala:77)
at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:137)
at sbt.compiler.AggressiveCompile$$anonfun$8$$anonfun$compileScala$1$1$$anonfun$apply$3.apply(AggressiveCompile.scala:76)
at sbt.compiler.AggressiveCompile$$anonfun$8$$anonfun$compileScala$1$1$$anonfun$apply$3.apply(AggressiveCompile.scala:73)
at scala.Option.foreach(Option.scala:236)
at sbt.compiler.AggressiveCompile$$anonfun$8$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:73)
at sbt.compiler.AggressiveCompile$$anonfun$8$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:73)
at scala.Option.foreach(Option.scala:236)
at sbt.compiler.AggressiveCompile$$anonfun$8.compileScala$1(AggressiveCompile.scala:73)
at sbt.compiler.AggressiveCompile$$anonfun$8.apply(AggressiveCompile.scala:118)
at sbt.compiler.AggressiveCompile$$anonfun$8.apply(AggressiveCompile.scala:61)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:24)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:22)
at sbt.inc.Incremental$.cycle(Incremental.scala:46)
at sbt.inc.Incremental$.compile(Incremental.scala:29)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:20)
at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:128)
at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:44)
at org.jetbrains.jps.incremental.scala.local.CompilerImpl.compile(CompilerImpl.scala:63)
at org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:29)
at org.jetbrains.jps.incremental.scala.remote.Main$.nailMain(Main.scala:31)
at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.martiansoftware.nailgun.NGSession.run(Unknown Source)
Please sign in to leave a comment.
Can anyone (Jetbrains?) explain the error in my first post. I downloaded the latest EAP today and I get the exact same error. I'm running on a Mac trying to use 2.10.2 of the scala compiler and libraries. Most of the features (code completion etc.) are working in the IDE but compiling has never worked for me in the EAP with 2.10.2. I can compile all day long from the command line but no luck in the IDE. Help?
Grant