03/06/2021, 3:53 PM
I am getting the below error very regularly when I build in IntelliJ with Kotlin 1.4.31 and Compose for desktop 0.4.0-build171. The only way I have found to fix it is to do a gradle clean and build. Is there a way I can get it to go away permanently? It seems to happen only when I edit my composable functions.


03/06/2021, 4:16 PM
maybe report it in #jvm-ir-backend-feedback


03/06/2021, 5:27 PM
Yeah, sounds like a bug related to the gradle cache, maybe something the folks working on the IR backend can find a workaround. The fact that a gradle clean resolves the issue would seem to imply that there is very little we can do to workaround the issue from the Compose side. The stack trace you provided throws in
, so it really doesn't say anything more than "there was an error somewhere". When you report the bug to them, it's going to be important to provide minimal repro steps. For caching issues like this, it's typically something like "do clean build, open file X and edit line Y to change Z, perform gradle build".
You can try #jvm-ir-backend-feedback as @christophsturm mentioned, or file a bug in youtrack:


03/06/2021, 7:30 PM
As far as I can tell the only steps are to edit a composable function then run a gradle build from the IDE