Hi <here> is the KSP 2.0.0-1.0.23 release Release ...
# ksp
j
Hi here is the KSP 2.0.0-1.0.23 release Release note: Issues fixed • [KSP2] Nullable type arg type becomes non-null after replace() call #1856 • Annotations on enum entires on K2 are missing #1962 • Got IllegalStateException when calling replace() on error types #1960 • [KSP2] Resolver.getJvmCheckedException doesn’t work on property accessors #1900 • [KSP2] Property getter JVM names in data classes become componentN instead of getXXX #1958 • [KSP2] Resolver.mapToJvmSignature doesn’t unwrap inline classes #1859 • [KSP2] KSFunctionDeclaration.asMemberOf does not return correct types #1919 • implement getOwnerJvmClassName #1979 • [KSP2] KSPropertyDeclaration.hasBackingField returns inconsistent results #1939 • [KSP2] Annotations on extension receivers are missing #1899 we will also have KSP 1.0.23 for 2.0.20-Beta2 and 2.0.10-RC shortly later today.
🎉 13
e
After updating I started getting the following error:
Copy code
For TYPE_REFERENCE with text `InjectTypeAlias`, unexpected element of type: FirAnnotationCallImpl found
It's kind of hard to tell what is going on with that because most of my project still fails from https://github.com/google/ksp/issues/885. I can debug / file an issue when I get back to my computer, but thought I'd throw it here in case anything stands out.
j
Thanks for the heads up, we had major rework of how KSP2 handles annotations with this release, it is possible to see breaking changes, a reproduce will certainly helps with our investigation.
e
g
it is possible to see breaking changes
Would it make sense to follow semver to expect those possible breaking changes when upgrading?
s
I also get > Task sharedkspDebugKotlinAndroid FAILED e: [ksp] java.util.NoSuchElementException: Collection contains no element matching the predicate.
j
re: expect possible breaking change when upgrading: No we try to avoid breaking changes if possible, this is more like a regression caused from KSP2's rework of some underlying implementation around annotations, we are investigating.
👌 2