F0X
01/26/2021, 1:17 PMtest
after making changes and having built before (it works after clearing the .gradle
cache).
I have of course added the generated sources to the source set like so
kotlin {
sourceSets {
main {
kotlin.srcDir("build/generated/ksp/main/kotlin")
}
test {
kotlin.srcDir("build/generated/ksp/test/kotlin")
}
}
}
is there anything else that can be done in order to allow access to generated sources in tests?Jiaxiang
01/26/2021, 8:22 PMF0X
01/27/2021, 10:01 AMincremental
on the KotlinCompile
tasks, thank you very much!Jiaxiang
01/27/2021, 9:55 PMTing-Yuan Huang
01/27/2021, 10:03 PMF0X
01/29/2021, 8:06 AMcore
using internal-processor
(ignore my bad code 🙂). Maybe I'll manage to reproduce it in my testing setup later on.Ting-Yuan Huang
01/29/2021, 7:34 PMcompileTestKotlin
. I compared the compiler arguments (incremental vs non-incremental) and they are exactly the same. The generated source is passed to compiler, and it does exist on the disk with correct content. In this particular case, it could be an issue of how KSP registers the generated source to the compiler, or simply a bug in the compiler. More investigation is needed.