使用 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
当更改为 scala 2.11.4 时,一切正常:
[info] 'compiler-interface' not yet compiled for Scala 2.11.4. Compiling...
[info] Compilation completed in 13.434 s
我找不到任何有关 sbt 和 scala 版本兼容性的相关资料。它可能与sbt build against scala 2.11 有关吗??