We are having an issue with compiling kotlin from ...
# intellij
We are having an issue with compiling kotlin from Intellij after the upgrade to 1.1.2 - basically what happens is that if we make a change in module 1, then module 2 that depends on it does not detect this change. However, the editor does mark the code as red and uncompilable, but "Build Project" will give happily still compile, not seeing the change in module 1. This obviously leads to runtime errors like NoSuchMethod and so on. We tried to reproduce it with a minimal project but were unable, so we are pretty much at a loss as what to do. We have been doing kotlin for more than 9 months, and we are certain it only happened after the upgrade to kotlin 1.1.2. Compiling from gradle also works just fine. Are there any debug switches or anything we can enable so we can get gather more data? As I take it it is very hard to find the bug from the info I can provide so far. I'm thinking maybe some debug output of the classes that are being recompiled upon "Build Project"? 1 reply nomad: I am having the same problem; for some reason, compiler either create or do not create
in the output directory (In my case, gradle -> build). If it "forgots" to update one of the directories, other module will see old version of the file. Compiling from gradle works as it should, Temporary solution is to delete the build directory, but it is hard to say will problem happen again or not.