Jiaxiang
08/13/2021, 12:53 AMnatario1
08/13/2021, 11:52 AMksp
configuration?Ting-Yuan Huang
08/13/2021, 6:14 PMksp
for now.natario1
08/13/2021, 8:06 PMandroidNative*
targets expected to be working in this release? I'm getting: org.gradle.api.InvalidUserDataException: Cannot change dependencies of dependency configuration ':sample:kotlinCompilerPluginClasspathAndroidNativeX64Main' after it has been resolved.
in the simplest possible setup (empty project, just a single androidNativeX64() target and a no-op ksp processor). I can file a bug if this is not expectedTing-Yuan Huang
08/13/2021, 11:24 PMTing-Yuan Huang
08/14/2021, 11:00 PMTing-Yuan Huang
08/15/2021, 12:25 AMnatario1
08/15/2021, 10:03 AMTing-Yuan Huang
08/17/2021, 12:02 AM./gradlew assemble
but no luck.
My guess is that there could be something that causes the configuration to be evaluated before KSP (inappropriately) modifies it. Maybe cleaning up ~/.gradle/gradle.properties could work this bug around.natario1
08/17/2021, 8:33 PMBuild
tab. File > "Sync project with Gradle files" will also trigger it again.Ting-Yuan Huang
08/18/2021, 5:52 AMandylamax
09/06/2021, 10:25 PM> Failed to calculate the value of task ':compileTestDevelopmentExecutableKotlinJs' property 'entryModule$kotlin_gradle_plugin'.
> Collection has more than one element.
Just by including the ksp plugin on and attempting to build the module via gradle. Removing either the js target or the ksp plugin solves the problem.
Asking to check if this is has already been covered or not. So that I know if K/JS is supported then perhaps my gradle configuration is wrong
[UPDATE]:
Removing just the processor dependency
dependencies {
// ksp(project(":test-processor"))
}
Makes the build pass, even with the ksp plugin (So, I am assuming it is not the ksp gradle plugin here)Ting-Yuan Huang
09/06/2021, 10:40 PMandylamax
09/06/2021, 10:59 PMplugins {
id("com.google.devtools.ksp")
kotlin("multiplatform")
kotlin("plugin.serialization")
}
kotlin {
jvm()
js(IR) { browser(); nodejs() }
ios()
linuxX64()
sourceSets {
val commonMain by getting {
dependencies {
api(kotlinx("serialization-core", vers.kotlinx.serialization))
api(project(":annotations-core")) // separate modules for annotations
}
}
val jvmMain by getting {
val ksp by configurations
dependencies {
ksp.dependencies.add(project(":annotations-processor"))
}
}
}
}
// dependencies {
// ksp(project(":annotations-processor"))
// }
andylamax
09/06/2021, 11:04 PMcommonMain
I end up still getting the same error.
Non IR (LEGACY) fails with
> Task :processDceJsKotlinJs FAILED
error: at /media/andylamax/workspace/PiCortex/bitframe/build/js/packages/bitframe-bitframe-core/kotlin/bitframe-bitframe-core.js (804, 26): missing name after . operator
Ting-Yuan Huang
09/07/2021, 4:42 AMprocessDceJsKotlinJs
fails. Can you check the outputs of processors (kspKotlinJs
) and compiler (compileKotlinJs
) to find out which step might go wrong?andylamax
09/07/2021, 11:26 AMLEGACY
, the tasks kspKotlinJs
and compileKotlinJs
do succeed, but processDceJsKotlinJs
fails.
Should I create a ticket for this + JS IR?Ting-Yuan Huang
09/07/2021, 4:13 PMkspKotlinJs
and compileKotlinJs
look. Are they good, or anything suspicious?