I've run into mystical incremental compilation pro...
# gradle
n
I've run into mystical incremental compilation problems in case of a multi-platform multi-module project. Environment: latest Idea, Kotlin 1.7.10, Compose Multiplatform 1.2.0 Maybe the problem is that I'm using Gradle 7.5.1? Should I use the latest officially supported version version? 7.1 maybe? Thanks.
t
Gradle 7.5.1 should be fine as well
n
Thanks... Unfortunatelly, the project is very complex, I won't be able to extract a sample for reproducing the problem 😞
t
Could you describe your problem a little more? Maybe it is already known one
n
The stack trace is here: https://kotlinlang.slack.com/archives/C01F2HV7868/p1665607750475649 First I thought that it is a JS/IR incremental compilation problem because in the past I had several of those. Therefore I disabled JS and JS/IR incremental compilation using
Copy code
kotlin.incremental.js=false
<http://kotlin.incremental.js.ir|kotlin.incremental.js.ir>=false
But I still get the exception, even when I run only JVM tests in a multiplatform project. One more thing I run into sometimes: when I build in Idea using CTRL+F9, the build completes successfully, but in runtime I get
NoSuchMethodError
. In this case only deleting the
build
directory solves the problem.
t
when I build in Idea using CTRL+F9, the build completes successfully
This is using IDEA built-in build system - JPS
I think ctrl+f9 still delegates to JPS even if this setting is enabled, but I could be wrong - I was wrong
n