title: what to do if sbt compile goes on indefinitely?
body: <p>I am using sbt 1.6.2 with Scala 3 on a very small code base of 5 files and a few hundred lines of code. Sometimes it compiles fine within a few seconds, and other times it goes into some infinite loop, showing</p>
  <p>| =&gt; root / Compile / compileIncremental 677s</p>
  <p>I can't even figure out how to stop it. I tried control-c and control-d, but neither works, so I end up having to kill the shell. What am I doing wrong?</p>