This *might* be a bug in ksp so I’m just posting h...
# ksp
e
This might be a bug in ksp so I’m just posting here for awareness but did something change in ksp (from 1.0.2 to 1.0.5) regarding typealiases? https://github.com/square/moshi/issues/1530
👀 2
t
There was a change in 1.0.5, where type arguments are now returned for the reference, instead of the complete, underlying type. In this case, it is a reference to an alias and therefore the arguments defined in declaration of the alias are not included. Let me look into Moshi a little bit to see how it is used and how we should resolve this.
👍🏼 1
👍 1
y
https://github.com/google/ksp/issues/881 is the relevant bug fix in KSP.
t
KotlinPoet relies on the old behavior. Bumping KSP to 1.0.5 breaks its test. Luckily calls to
KSType.arguments
is limited in
KSType.toTypeName
: https://github.com/square/kotlinpoet/blob/master/interop/ksp/src/main/kotlin/com/squareup/kotlinpoet/ksp/ksTypes.kt#L78 I'm still trying to see how to update it.
e
Whats the decision on this? I can create an issue on kotlinpoet if needed.