jean
01/01/2024, 10:19 PMannotation class AnnotationA
@AnnotationA
data class SomeDataClass(
val a: String,
val b: String,
)
// generated code
enum class SomeDataClassProperty {
A, B
}
annotation class GeneratedAnnotation(property: SomeDataClassProperty)
Later on when I use GeneratedAnnotation
with resolver.resolve()
I get the error <ERROR TYPE>
from the KSPLogger
and [ksp] java.lang.IllegalStateException: Required value was null.
from the compiler. And I’m sure the custom annotation is already generated when the processor tries to do the resolve()
. Am I supposed to do anything special to let ksp know where the annotation is?David Rawson
01/02/2024, 1:40 AMjean
01/02/2024, 9:27 AMJiaxiang
01/02/2024, 7:03 PMjean
01/02/2024, 7:07 PM