Ryan Scott
08/18/2025, 5:47 PM> Task :site:kspKotlinJs FAILED
e: java.lang.IllegalStateException: Storage for [/Users/ryan/repos/ryan/fsryan/consulting/wagemix/monolith/site/build/kspCaches/js/jsMain/symbolLookups/file-to-id.tab] is already registeredRyan Scott
08/18/2025, 5:47 PMmbonnin
08/18/2025, 5:51 PMRyan Scott
08/18/2025, 5:51 PMmbonnin
08/18/2025, 5:51 PMRyan Scott
08/18/2025, 5:51 PMmbonnin
08/18/2025, 5:52 PMRyan Scott
08/18/2025, 5:52 PMmbonnin
08/18/2025, 5:52 PM--rerun-tasks I thinkmbonnin
08/18/2025, 5:52 PM--rerun-tasks --no-build-cache --no-configuration-cache usually works 🙂mbonnin
08/18/2025, 5:53 PMRyan Scott
08/18/2025, 5:53 PMRyan Scott
08/18/2025, 5:54 PMLetter
08/18/2025, 5:55 PMkobweb run --gradle "--rerun-tasks - - no-build-cache"Ryan Scott
08/18/2025, 5:56 PMLetter
08/18/2025, 5:57 PMksp.incremental=false to your gradle.properties file maybe? Maybe also ksp.useKSP2=false.Ryan Scott
08/18/2025, 5:58 PMjs(IR) {
browser {
testTask {
useKarma {
useFirefoxHeadless()
webpackConfig.cssSupport {
enabled = true
}
}
}
}
binaries.library()
}
to the kotlin block. It was able to run the tests just fine for a while, but eventually, this issue occurred.
Unfortunately, removing that block from the gradle build did not fix this--even on a clean build.Ryan Scott
08/18/2025, 6:00 PMRyan Scott
08/18/2025, 6:01 PMRyan Scott
08/18/2025, 6:01 PMLetter
08/18/2025, 6:05 PM--no-build-cache then I don't know why it wouldn't workRyan Scott
08/18/2025, 6:06 PMRyan Scott
08/18/2025, 6:06 PMRyan Scott
08/18/2025, 6:06 PMRyan Scott
08/18/2025, 6:06 PMLetter
08/18/2025, 6:07 PMCLOVIS
08/18/2025, 7:17 PM--rerun-tasks --no-build-cache --no-configuration-cache usually works
--rerun-tasks forbids Gradle from reading from the build cache already. --no-build-cache also forbids writing to the build cache, but if you have an incremental compilation issue, it's often better to allow Gradle to write to the build cache so it can overwrite whatever broken thing was stored before
(and yeah, never trust clean , it's not about incremental stuff)Ryan Scott
08/18/2025, 7:56 PMKumaran Masilamani
08/19/2025, 9:45 PMgradle --stopKumaran Masilamani
08/19/2025, 9:46 PMdelete .gradle folder and included a gradle.properties under the site folder with these settings:
org.gradle.configuration-cache=true
org.gradle.jvmargs=-Xmx4G -Xms512M -XX:MaxMetaspaceSize=1G -XX:+UseParallelGC -Dfile.encoding=UTF-8
org.gradle.parallel=falseKumaran Masilamani
08/19/2025, 9:46 PMRyan Scott
08/19/2025, 9:56 PMbj0
08/20/2025, 5:10 AMgradle --stop always fixed it for me