You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then if we run the processor once, KSP runs fine. Then if we change @MyAnn(KotlinConsts.ACTION2) to @MyAnn(KotlinConsts.ACTION), and run KSP again, it will run under incremental mode, then we can no longer read the argument value, the condition isn't true, and we throw the IllegalStateException.
./gradlew :workload:kspKotlin
# Edit JavaClass to reference KotlinConsts.ACTION instead
./gradlew :workload:kspKotlin
# Observe that KSP was not able to read the annotation value
This prevents us from enabling incremental mode, which prevents us from using KSP as without incremental, our time in processing is higher than with Kapt where we can use incremental compilation.
The text was updated successfully, but these errors were encountered:
If we have the following files (a Kotlin annotation, a Java annotated class, and a Kotlin constants file):
com.example.ann.MyAnn
com.example.JavaClass
com.example.KotlinConsts
With a processor that looks for
MyAnn
and throws an error if the annotation value isn't"REPLACE"
:Then if we run the processor once, KSP runs fine. Then if we change
@MyAnn(KotlinConsts.ACTION2)
to@MyAnn(KotlinConsts.ACTION)
, and run KSP again, it will run under incremental mode, then we can no longer read the argument value, the condition isn't true, and we throw theIllegalStateException
.With the attached project:
playground3.zip
This prevents us from enabling incremental mode, which prevents us from using KSP as without incremental, our time in processing is higher than with Kapt where we can use incremental compilation.
The text was updated successfully, but these errors were encountered: