Я знаю, что эта проблема уже была замечена, но после нескольких часов исследований я задаю новый вопрос. У меня возникла проблема при попытке запустить очень простой код в scala:
val myList = List("Spark")
val mmaped = myList.map( s => s.toUpperCase )
Java версия: 1.8_231
; Scala версия: 2.11.7
Ошибки:
Internal error:
sbt.internal.inc.CompileFailed: Error compiling the sbt component 'repl-wrapper-2.11.7-55.0-5-ILoopWrapperImpl.jar'
at sbt.internal.inc.AnalyzingCompiler$.handleCompilationError$1(AnalyzingCompiler.scala:331)
at sbt.internal.inc.AnalyzingCompiler$.$anonfun$compileSources$4(AnalyzingCompiler.scala:346)
at sbt.internal.inc.AnalyzingCompiler$.$anonfun$compileSources$4$adapted(AnalyzingCompiler.scala:341)
at sbt.io.IO$.withTemporaryDirectory(IO.scala:376)
at sbt.io.IO$.withTemporaryDirectory(IO.scala:383)
at sbt.internal.inc.AnalyzingCompiler$.$anonfun$compileSources$2(AnalyzingCompiler.scala:341)
at sbt.internal.inc.AnalyzingCompiler$.$anonfun$compileSources$2$adapted(AnalyzingCompiler.scala:335)
at sbt.io.IO$.withTemporaryDirectory(IO.scala:376)
at sbt.io.IO$.withTemporaryDirectory(IO.scala:383)
at sbt.internal.inc.AnalyzingCompiler$.compileSources(AnalyzingCompiler.scala:335)
at org.jetbrains.jps.incremental.scala.local.worksheet.ILoopWrapperFactoryHandler.compileReplLoopFile(ILoopWrapperFactoryHandler.scala:113)
at org.jetbrains.jps.incremental.scala.local.worksheet.ILoopWrapperFactoryHandler.getOrCompileReplWrapper(ILoopWrapperFactoryHandler.scala:64)
at org.jetbrains.jps.incremental.scala.local.worksheet.ILoopWrapperFactoryHandler.loadReplWrapperAndRun(ILoopWrapperFactoryHandler.scala:31)
at org.jetbrains.jps.incremental.scala.local.worksheet.WorksheetServer.loadAndRun(WorksheetServer.scala:31)
at org.jetbrains.jps.incremental.scala.remote.Main$.compileLogic(Main.scala:138)
at org.jetbrains.jps.incremental.scala.remote.Main$.$anonfun$handleCommand$1(Main.scala:123)
at org.jetbrains.jps.incremental.scala.remote.Main$.compilingNowCounterDecorated$1(Main.scala:112)
at org.jetbrains.jps.incremental.scala.remote.Main$.handleCommand(Main.scala:120)
at org.jetbrains.jps.incremental.scala.remote.Main$.serverLogic(Main.scala:96)
at org.jetbrains.jps.incremental.scala.remote.Main$.nailMain(Main.scala:55)
at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.martiansoftware.nailgun.NGSession.run(NGSession.java:319)
Internal error:
sbt.internal.inc.CompileFailed: Error compiling the sbt component 'repl-wrapper-2.11.7-55.0-5-ILoopWrapperImpl.jar'
at sbt.internal.inc.AnalyzingCompiler$.handleCompilationError$1(AnalyzingCompiler.scala:331)
at sbt.internal.inc.AnalyzingCompiler$.$anonfun$compileSources$4(AnalyzingCompiler.scala:346)
at sbt.internal.inc.AnalyzingCompiler$.$anonfun$compileSources$4$adapted(AnalyzingCompiler.scala:341)
at sbt.io.IO$.withTemporaryDirectory(IO.scala:376)
at sbt.io.IO$.withTemporaryDirectory(IO.scala:383)
at sbt.internal.inc.AnalyzingCompiler$.$anonfun$compileSources$2(AnalyzingCompiler.scala:341)
at sbt.internal.inc.AnalyzingCompiler$.$anonfun$compileSources$2$adapted(AnalyzingCompiler.scala:335)
at sbt.io.IO$.withTemporaryDirectory(IO.scala:376)
at sbt.io.IO$.withTemporaryDirectory(IO.scala:383)
at sbt.internal.inc.AnalyzingCompiler$.compileSources(AnalyzingCompiler.scala:335)
at org.jetbrains.jps.incremental.scala.local.worksheet.ILoopWrapperFactoryHandler.compileReplLoopFile(ILoopWrapperFactoryHandler.scala:113)
at org.jetbrains.jps.incremental.scala.local.worksheet.ILoopWrapperFactoryHandler.getOrCompileReplWrapper(ILoopWrapperFactoryHandler.scala:64)
at org.jetbrains.jps.incremental.scala.local.worksheet.ILoopWrapperFactoryHandler.loadReplWrapperAndRun(ILoopWrapperFactoryHandler.scala:31)
at org.jetbrains.jps.incremental.scala.local.worksheet.WorksheetServer.loadAndRun(WorksheetServer.scala:31)
at org.jetbrains.jps.incremental.scala.remote.Main$.compileLogic(Main.scala:138)
at org.jetbrains.jps.incremental.scala.remote.Main$.$anonfun$handleCommand$1(Main.scala:123)
at org.jetbrains.jps.incremental.scala.remote.Main$.compilingNowCounterDecorated$1(Main.scala:112)
at org.jetbrains.jps.incremental.scala.remote.Main$.handleCommand(Main.scala:120)
at org.jetbrains.jps.incremental.scala.remote.Main$.serverLogic(Main.scala:96)
at org.jetbrains.jps.incremental.scala.remote.Main$.nailMain(Main.scala:55)
at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.martiansoftware.nailgun.NGSession.run(NGSession.java:319)