Hi I have a multiplatform annotation processor - e...
# ksp
m
Hi I have a multiplatform annotation processor - everything was fine with Kotlin 1.8.10/KSP 1.0.9. Updating to Kotlin 1.9.0 and KSP 1.0.13 I get an exception only on the JS build (JVM and Android builds run fine):
Copy code
e: [ksp] java.lang.IllegalStateException: unhandled value type, please file a bug at <https://github.com/google/ksp/issues/new>
The exception is coming from here in utils.kt
Copy code
// Workaround for java annotation value array type
                        // <https://github.com/google/ksp/issues/1329>
                        method.returnType.isArray -> {
                            if (result !is Array<*>) {
                                val value = { result.asArray(method, clazz) }
                                cache.getOrPut(Pair(method.returnType, value), value)
                            } else {
                                throw IllegalStateException("unhandled value type, $ExceptionMessage")
                            }
                        }
Anyone got any ideas what might be going on here, or any workaround / investigation suggestions? As suggested by the exception: I filed a bug : https://github.com/google/ksp/issues/1503