Can anyone tell me what does `Non-incremental comp...
# compiler
m
Can anyone tell me what does
Non-incremental compilation will be performed: NO_BUILD_HISTORY
mean in kotlin build report? Occasionally build will take a long time (obviously non-incremental) and looking at the build report will produce above message. I have not cleaned the build folder or did anything similar (just normal run command while developing). How would I go about debugging what causes build history to get wiped?
b
cc @Andrey Uskov [JB]
a
Hi. It usually happens if during previous compilation task was FROM-CACHE. At the moment we consider existing approach with history files unoptimal and in 1.7 similar issues should not be reproduced any more.
m
thanks for the answer
I think it also might happen after a failed build
is it expected that first build after a failed build (after maybe a syntax error) would be non-incremental?
@Andrey Uskov [JB]
@Andrey Uskov [JB] I can still reproduce this, even with config cache disabled. What can I do to help diagnose this issue?
a
Hi. I'm sorry for missing the mention. I'm afraid it is known issue of current implementation of incremental compilation. There are some cases when it fails to non-incremental mode (e.g. overflow of history file, dependency on non-kotlin module, rebuild, and others). These issues are known for current implementation. The plan is to implement another approach which should be incremental in most cases. You could follow the top-level status in issue https://youtrack.jetbrains.com/issue/KT-42309. Our estimate that it should be in betta in 1.7.
m
thanks
248 Views