Quindi ho creato un progetto Maven Scala in IntelliJ.Intellij non sta compilando il progetto scala
Ho usato lo scala-semplice-archetipo.
Ed ora ottengo questo:
Error:scala: Error: org.jetbrains.jps.incremental.scala.remote.ServerException
Error compiling sbt component 'compiler-interface-2.7.0-final-52.0'
\t at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:145)
\t at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:142)
\t at sbt.IO$.withTemporaryDirectory(IO.scala:285)
\t at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:142)
\t at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:139)
\t at sbt.IO$.withTemporaryDirectory(IO.scala:285)
\t at sbt.compiler.AnalyzingCompiler$.compileSources(AnalyzingCompiler.scala:139)
\t at sbt.compiler.IC$.compileInterfaceJar(IncrementalCompiler.scala:33)
\t at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl$.org$jetbrains$jps$incremental$scala$local$CompilerFactoryImpl$$getOrCompileInterfaceJar(CompilerFactoryImpl.scala:87)
\t at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl$$anonfun$getScalac$1.apply(CompilerFactoryImpl.scala:44)
\t at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl$$anonfun$getScalac$1.apply(CompilerFactoryImpl.scala:43)
\t at scala.Option.map(Option.scala:145)
\t at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl.getScalac(CompilerFactoryImpl.scala:43)
\t at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl.createCompiler(CompilerFactoryImpl.scala:22)
\t at org.jetbrains.jps.incremental.scala.local.CachingFactory$$anonfun$createCompiler$1.apply(CachingFactory.scala:24)
\t at org.jetbrains.jps.incremental.scala.local.CachingFactory$$anonfun$createCompiler$1.apply(CachingFactory.scala:24)
\t at org.jetbrains.jps.incremental.scala.local.Cache$$anonfun$getOrUpdate$2.apply(Cache.scala:20)
\t at scala.Option.getOrElse(Option.scala:120)
\t at org.jetbrains.jps.incremental.scala.local.Cache.getOrUpdate(Cache.scala:19)
\t at org.jetbrains.jps.incremental.scala.local.CachingFactory.createCompiler(CachingFactory.scala:23)
\t at org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:22)
\t at org.jetbrains.jps.incremental.scala.remote.Main$.make(Main.scala:62)
\t at org.jetbrains.jps.incremental.scala.remote.Main$.nailMain(Main.scala:20)
\t at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala)
\t at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
\t at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
\t at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
\t at java.lang.reflect.Method.invoke(Method.java:483)
\t at com.martiansoftware.nailgun.NGSession.run(NGSession.java:319)
Qualcuno potrebbe dirmi che cosa ho fatto di sbagliato?
Sono relativamente nuovo per scala e Maven quindi per favore abbiate pazienza con me.
Sì, ci sono due alternative. Usare java 7 e scala 2.7. * O in alternativa usare java 8 e scala 2.11. * –