Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sbt recompiles everything, almost every time

My sbt project compiles everything almost always when I change one file. Is there a way to find out, why the incremental build fails?

9. Waiting for source changes... (press enter to interrupt)
[warn] Potentially incompatible versions of dependencies of {file:/home/arne/gitprojects/gameengine/}default-a8a2f5:
[warn]    org.scala-lang: 2.10.1, 2.10.0
[info] Compiling 1 Scala source to /home/arne/gitprojects/gameengine/target/scala-2.10/classes...
[info] Compiling 35 Scala sources to /home/arne/gitprojects/gameengine/target/scala-2.10/classes...

It is pretty annoying, because it takes a minute to compile everything, instead of just a few seconds as it should be.

like image 483
Arne Avatar asked Nov 12 '22 04:11

Arne


1 Answers

This should be fixed Soon(tm) in sbt 13.2 when https://github.com/sbt/sbt/issues/1010 gets resolved. Before that, there is little hope.

like image 98
Martijn Avatar answered Nov 15 '22 12:11

Martijn