mirror of https://github.com/sbt/sbt.git
When source generators write into the unmanaged source directory, bad things can happen. Continuous builds will loop indefinitely and compiling will fail because the generated sources get added to the source list twice, causing the incremental compiler to complain about compiling classes it has already seen. My two-pronged solution is to de-duplicate the sources task and to filter out managed source files in watch sources. The drawback to the latter is that it causes the source generation task to be executed twice per compile. |
||
|---|---|---|
| .. | ||
| main | ||
| test | ||