<@U014RF7ANH5> i am trying ksp2 with the latest 2....
# ksp
s
@Jiaxiang i am trying ksp2 with the latest 2.0.0-Beta3 build and it started throwing the following error.
This was working fine until 2.0.0-Beta2-1.0.16
Copy code
Caused by: java.lang.IllegalStateException: Unexpected symbol type null
        at com.google.devtools.ksp.impl.symbol.kotlin.AbstractKSDeclarationImpl$modifiers$2.invoke(AbstractKSDeclarationImpl.kt:71)
        at com.google.devtools.ksp.impl.symbol.kotlin.AbstractKSDeclarationImpl$modifiers$2.invoke(AbstractKSDeclarationImpl.kt:58)
        at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
        at com.google.devtools.ksp.impl.symbol.kotlin.AbstractKSDeclarationImpl.getModifiers(AbstractKSDeclarationImpl.kt:58)
        at com.google.devtools.ksp.impl.symbol.kotlin.KSFunctionDeclarationImpl.access$getModifiers$s1895508016(KSFunctionDeclarationImpl.kt:36)
        at com.google.devtools.ksp.impl.symbol.kotlin.KSFunctionDeclarationImpl$modifiers$2.invoke(KSFunctionDeclarationImpl.kt:69)
        at com.google.devtools.ksp.impl.symbol.kotlin.KSFunctionDeclarationImpl$modifiers$2.invoke(KSFunctionDeclarationImpl.kt:58)
        at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
        at com.google.devtools.ksp.impl.symbol.kotlin.KSFunctionDeclarationImpl.getModifiers(KSFunctionDeclarationImpl.kt:58)
        at com.google.devtools.ksp.UtilsKt.isPrivate(utils.kt:236)
I am just applying the plugin (it’s a multi module multiplatform project) and not doing much. Any idea idea what could be wrong here? I couldn’t figure out anything from stacktrace.
seems like issue with the ksp processor
dev.zacsweers.autoservice:auto-service-ksp
Removing
kspJvm
dep from jvmMain fixed the issue.
j
Thanks for trying out KSP2! do you happen to have a reproduce case for me to investigate?
s
No, i can try create a reproducer
🙏 1
z
@suresh I'm the maintainer of that, could you file a bug report on the project too? Especially if you were able to create a reproducer
I set up testing for it here but haven't been able to reproduce https://github.com/ZacSweers/auto-service-ksp/pull/89