2015-03-19 70 views
0

這裏的問題是完整的堆棧跟蹤使用Scala編譯(2.11版本)

錯誤:sbt.compiler.CompileFailed 錯誤在sbt.compiler.AnalyzingCompiler編譯SBT組件的編譯器接口2.11.4-51.0' $$ 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。申請(Analyzi ngCompiler.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) 在org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl $ .org等$ $ JetBrains公司JPS $增量$ $階當地$ CompilerFactoryImpl $$ getOrCompileInterfaceJar(CompilerFactoryImpl.scala:65) 在org.jetbrains .jps.incremental.scala.local.CompilerFactoryImpl $$ anonfun $ 2.apply(CompilerFactoryImpl.scala:21) at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl $$ anonfun $ 2.apply(CompilerFactoryImpl.scala:20 ) at scala.Option.map(Option.scala:145) at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl.create編譯器(CompilerFactoryImpl.scala:20) at org.jetbrains.jps.incremental.scala.local.CachingFactory $$ anonfun $ createCompiler $ 1.apply(CachingFactory.scala:20) at org.jetbrains.jps.incremental.scala。 local.CachingFactory $$ anonfun $ createCompiler $ 1.apply(CachingFactory.scala:20) at org.jetbrains.jps.incremental.scala.local.Cache $$ anonfun $ getOrUpdate $ 2.apply(Cache.scala:20) at在org.jetbrains.jps.incremental.scala.local的org.jetbrains.jps.incremental.scala.local.Cache.getOrUpdate(Cache.scala:19) (scala.Option.getOrElse(Option.scala:120) )。 CachingFactory.createCompiler(CachingFactory.scala:19) at org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:21) at org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anon有趣的$ 5 $$ anonfun $ apply $ 3 $$ anonfun $ apply $ 4.apply(ScalaBuilder.scala:118) at org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ 5 $$ anonfun $ apply $ 3 $$ anonfun $應用$ 4.apply(ScalaBuilder.scala:100) at scala.util.Every $ RightProjection.map(Either.scala:536) at org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ 5 $$ anonfun $申請$ 3.apply(ScalaBuilder.scala:100) at org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ 5 $$ anonfun $ apply $ 3.apply(ScalaBuilder.scala:99) at scala.util.Etil $ RightProjection.flatMap(Echo.scala:523) at org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ 5.apply(ScalaBuilder.scala:99) at org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ 5.apply(ScalaBuilder.scala:98) at scala.util。 $ RightProjection.flatMap(Either.scala:523) at org.jetbrains.jps.incremental.scala.ScalaBuilder.doBuild(ScalaBuilder.scala:98) at org.jetbrains.jps.incremental.scala.ScalaBuilder.build( ScalaBuilder.scala:68) at org.jetbrains.jps.incremental.scala.ScalaBuilderService $ ScalaBuilderDecorator.build(ScalaBuilderService.java:42) at 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) 在org.jetbrains.jps.incremental。 IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:705) at org。jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:526) at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:314) at org.jetbrains.jps.incremental.IncProjectBuilder.build( IncProjectBuilder.java:179) at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:129) at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:220) at org。 jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:112) at org.jetbrains.jps.cmdline.BuildMain $ MyMessageHandler $ 1.run(BuildMain.java:132) at 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) 在java.util.concurrent.ThreadPoolExecutor中的$ Worker.run( (Thread.java:745)

我的環境可能有什麼問題? 我不在這裏發佈代碼,因爲我認爲在這種情況下的代碼沒有意義,但相同的項目在其他機器上運行。

回答

0

更改JDK 1.7

現在我有 scala.version 2.10.0,爪哇1.7.0_71 中的IntelliJ解決了這個問題對我來說。工作正常!