3

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? ?

Community
  • 1
  • 1
mirelon
  • 4,896
  • 6
  • 40
  • 70
  • I'm using these versions without problem. 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/` – 0__ Jan 21 '15 at 13:53
  • Yeah, that solved it ! I am using IntelliJ, so maybe it caused this chaos in the cache... – mirelon Jan 21 '15 at 13:59

2 Answers2

11

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/
0__
  • 66,707
  • 21
  • 171
  • 266
1

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.

Mike Yang
  • 2,581
  • 3
  • 24
  • 27