Zac Sweers
09/27/2026, 7:32 PMZac Sweers
09/27/2026, 7:33 PMZac Sweers
09/27/2026, 7:34 PMe: java.nio.file.NoSuchFileException: .../build/kotlin/compileKotlinJvm/cacheable/metadata-jvm/commonMain/default/linkdata/package_metro.hints/metro/hints/testCommonValueDev_zacsweers_metro_AppScope.kt.knm
at org.jetbrains.kotlin.cli.pipeline.jvm.metadata.JvmMetadataComponentWriter.writeTo(JvmMetadataComponentWriter.kt:38)
The synthetic file's name includes its package path (metro/hints/...kt) and JvmMetadataComponentWriter only creates the package fragment directory, so the nested parent directory doesn't existPavel Kunyavskiy [JB]
09/27/2026, 8:15 PMPavel Kunyavskiy [JB]
09/27/2026, 8:16 PMZac Sweers
09/27/2026, 8:29 PMIvet
09/29/2026, 11:36 AMZac Sweers
10/02/2026, 4:15 PMZac Sweers
10/06/2026, 4:37 AMkotlin.internal.incremental.enableUnsafeOptimizationsForMultiplatform=true
kotlin.internal.jvm.enableKmpClasspathMetadataForIncrementalCompilation=true
For 2.5.0-Beta1 I used
kotlin.jvm.enableIncrementalCompilationOfCommonSources=true
The 2.4.20 configuration triggers the metadata-writing crash with Metro contributions in commonMain. With 2.5.0-Beta1, JVM builds stay incremental when editing only jvmMainZac Sweers
10/06/2026, 4:42 AMkotlin.kmp.separateCompilation=true, including alongside the common-sources IC flag. That testing is captured in here, where I reported a separate single-target producer metadata issue. The JS/Wasm deletion crash also reproduces with separate compilation disabledIvet
10/12/2026, 11:15 AMcommonMain source set. Could you clarify what you meant by “With 2.5.0-Beta1, JVM builds stay incremental when editing only `jvmMain`”? Builds should already be incremental when you edit jvmMain, by default.
Separate compilation should help in multi-module scenarios.