mirror of https://github.com/sbt/sbt.git
It is possible for sbt to get into a weird state when in a continuous build when the auto reload feature is on and a source file and a build file are changed in a small window of time. If sbt detects the source file first, it will start running the command but then it will autoreload when it runs the command because of the build file change. This causes the watch to get into a broken state because it is necessary to completely restart the watch after sbt exits. To fix this, we can aggregate the detected events in a 100ms window. The idea is to handle bursts of file events so we poll in 5ms increments and as soon as no events are detected, we trigger a build. |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||