这是完整的堆栈跟踪
错误:sbt.compiler.CompileFailed 编译sbt组件'compiler-interface-2.11.4-51.0'时出错 at sbt.compiler.AnalyzingCompiler $$ anonfun $ compileSources $ 1 $$ anonfun $ apply $ 2.apply(AnalyzingCompiler.scala:117) at sbt.compiler.AnalyzingCompiler $$ anonfun $ compileSources $ 1 $$ anonfun $ apply $ 2.apply(AnalyzingCompiler.scala:114) at sbt.IO $ .withTemporaryDirectory(IO.scala:281) at sbt.compiler.AnalyzingCompiler $$ anonfun $ compileSources $ 1.apply(AnalyzingCompiler.scala:114) at sbt.compiler.AnalyzingCompiler $$ anonfun $ compileSources $ 1.apply(AnalyzingCompiler.scala:111) at sbt.IO $ .withTemporaryDirectory(IO.scala:281) at sbt.compiler.AnalyzingCompiler $ .compileSources(AnalyzingCompiler.scala:111) at sbt.compiler.IC $ .compileInterfaceJar(IncrementalCompiler.scala:31) at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl $ .org $ jetbrains $ jps $ incremental $ scala $ local $ CompilerFactoryImpl $$ getOrCompileInterfaceJar(CompilerFactoryImpl.scala:65) 在org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl $$ anonfun $ 2.apply(CompilerFactoryImpl.scala:21) 在org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl $$ anonfun $ 2.apply(CompilerFactoryImpl.scala:20) 在scala.Option.map(Option.scala:145) 在org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl.createCompiler(CompilerFactoryImpl.scala:20) 在org.jetbrains.jps.incremental.scala.local.CachingFactory $$ anonfun $ createCompiler $ 1.apply(CachingFactory.scala:20) 在org.jetbrains.jps.incremental.scala.local.CachingFactory $$ anonfun $ createCompiler $ 1.apply(CachingFactory.scala:20) 在org.jetbrains.jps.incremental.scala.local.Cache $$ anonfun $ getOrUpdate $ 2.apply(Cache.scala:20) 在scala.Option.getOrElse(Option.scala:120) 在org.jetbrains.jps.incremental.scala.local.Cache.getOrUpdate(Cache.scala:19) 在org.jetbrains.jps.incremental.scala.local.CachingFactory.createCompiler(CachingFactory.scala:19) 在org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:21) 在org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ 5 $$ anonfun $ apply $ 3 $$ anonfun $ apply $ 4.apply(ScalaBuilder.scala:118) 在org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ 5 $$ anonfun $ apply $ 3 $$ anonfun $ apply $ 4.apply(ScalaBuilder.scala:100) 在scala.util.Either $ RightProjection.map(Either.scala:536) 在org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ 5 $$ anonfun $ apply $ 3.apply(ScalaBuilder.scala:100) 在org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ 5 $$ anonfun $ apply $ 3.apply(ScalaBuilder.scala:99) 在scala.util.Either $ RightProjection.flatMap(Either.scala:523) 在org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ 5.apply(ScalaBuilder.scala:99) 在org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ 5.apply(ScalaBuilder.scala:98) 在scala.util.Either $ RightProjection.flatMap(Either.scala:523) 在org.jetbrains.jps.incremental.scala.ScalaBuilder.doBuild(ScalaBuilder.scala:98) 在org.jetbrains.jps.incremental.scala.ScalaBuilder.build(ScalaBuilder.scala:68) 在org.jetbrains.jps.incremental.scala.ScalaBuilderService $ ScalaBuilderDecorator.build(ScalaBuilderService.java:42) 在org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1018) 在org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:742) 在org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:790) at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:705) 在org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:526) 在org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:314) 在org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:179) 在org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:129) 在org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:220) 在org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:112) 在org.jetbrains.jps.cmdline.BuildMain $ MyMessageHandler $ 1.run(BuildMain.java:132) 在org.jetbrains.jps.service.impl.SharedThreadPoolImpl $ 1.run(SharedThreadPoolImpl.java:41) at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471) 在java.util.concurrent.FutureTask.run(FutureTask.java:262) 在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615) 在java.lang.Thread.run(Thread.java:745)
我的环境可能有什么问题? 我没有在这里发布代码,因为我认为在这种情况下代码没有意义,但同样的项目在其他机器上运行良好。
答案 0 :(得分:0)
将JDK更改为1.7
现在我有了 scala.version 2.10.0,Java 1.7.0_71 在intellij为我解决了它。工作得很好!