Open austinarbor opened 3 months ago
I have the same issue. Compilation seems to be successfull (ExitCode.OK), but no ksp-generated files exist.
You have to set the languageVersion
to "1.9" if you are still using KSP 1, see https://github.com/ZacSweers/kotlin-compile-testing/pull/196#issuecomment-2169240442
I'm using KSP2 already
I am using KSP2 as well
@austinarbor I found out how to get KSP2 running. You have to use the configureKsp-block like this:
val compilation = KotlinCompilation().apply {
sources = sourceFiles
configureKsp(useKsp2 = true) {
symbolProcessorProviders.add(...)
}
}
after adding this, it started to create ksp-generated files again.
@Zweistein2 thanks for this! confirmed working for me as well
As of right now by default no code is generated, so languageVersion = "1.9"
should be the default value.
After upgrading to 0.5.0, my KSP Generated sources are no longer produced
When running this compilation, none of the generated outputs are produced in the test I am using Kotlin 2.0.0 KSP 2.0.0-1.0.22, with
ksp.useKSP=true
set ingradle.properties
. If I downgrade to 0.4.1, everything succeeds as expected. I didn't see any migration steps in the release notes, am I missing something?I can try and create a reproducer if you need one, but wanted to check if I was missing anything obvious before doing so