Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SBT 0.13.7 and Scala 2.11.5 version compatibility issues

Trying out sbt version 0.13.7 with scala version 2.11.5. Both are the newest right now. Do they work together? When I run sbt clean compile, it prints:

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

When changed to scala 2.11.4, it is all ok:

[info] 'compiler-interface' not yet compiled for Scala 2.11.4. Compiling...
[info]   Compilation completed in 13.434 s

I could not find any relevant sources about sbt and scala version compatibility. Could it be related to Does sbt build against scala 2.11? ?

like image 705
mirelon Avatar asked Dec 30 '25 05:12

mirelon


2 Answers

You could try to remove your local cache, sometimes this is in bad state in my experience:

rm -r ~/.sbt/boot/
rm -r ~/.ivy2/cache/org.scala-lang/
rm -r ~/.ivy2/cache/org.scala-sbt/
like image 183
0__ Avatar answered Dec 31 '25 19:12

0__


The following will be better

rm -rf ~/.sbt/boot/
rm -rf ~/.ivy2/cache/org.scala-lang/
rm -rf ~/.ivy2/cache/org.scala-sbt/

If this failed, run activator several times.

like image 41
Mike Yang Avatar answered Dec 31 '25 19:12

Mike Yang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!