area/incremental_compilerhelp wanted
仓库指标
- 星标
- (4,928 个星标)
- PR 合并指标
- (平均合并 1天 15小时) (30 天内合并 66 个 PR)
描述
steps
- Make a minimal subproject in a multiproject build that has a few files of only java.
- compile the code: mysubproject/compile
- view that the class files are generated
- clean: mysubproject/clean
- verify that the classes are gone
- compile the code again and see that nothing happens.
problem
It seems that some in-memory state in sbt is failing to be synced with the disk state.
Workaround: exit sbt after the clean and restart and it works. Again this suggests it is memory state, not disk state that is incorrect.
expectation
javac should be invoked again on the sources.
notes
you can see an example of this in this repo: https://github.com/johnynek/bosatsu/pull/974
check it out at https://github.com/johnynek/bosatsu/pull/974/commits/c5a623de4a72ff6b9d29557afc46651d87f089e7 and try this set of steps:
- truffle/compile
- truffle/test (should pass)
- truffle/clean
- truffle/test (now it fails, and compile won't fix it. exit sbt and restart and it should work again).