SBT 0.13.7和Scala 2.11.5版本兼容性问题

mir*_*lon 3 scala compiler-errors compilation sbt scala-2.11

尝试使用scala版本2.11.5的sbt版本0.13.7.两者都是最新的.他们一起工作吗?当我跑sbt clean compile,它打印:

[info] 'compiler-interface' not yet compiled for Scala 2.11.5. Compiling...
error: java.lang.NoClassDefFoundError: scala/tools/nsc/typechecker/Infer$Inferencer
Run Code Online (Sandbox Code Playgroud)

当更改为scala 2.11.4时,一切正常:

[info] 'compiler-interface' not yet compiled for Scala 2.11.4. Compiling...
[info]   Compilation completed in 13.434 s
Run Code Online (Sandbox Code Playgroud)

我找不到有关sbt和scala版本兼容性的任何相关来源.它是否与sbt构建针对scala 2.11有关?

0__*_*0__ 11

您可以尝试删除本地缓存,有时根据我的经验处于不良状态:

rm -r ~/.sbt/boot/
rm -r ~/.ivy2/cache/org.scala-lang/
rm -r ~/.ivy2/cache/org.scala-sbt/
Run Code Online (Sandbox Code Playgroud)