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
We are using Moshi codegen via KSP for a while. We tried to test KSP2 via ksp.useKSP2=true along with kotlin.experimental.tryK2=true but we get build errors for generated Moshi adapters:
e: file:///Users/twirth/AndroidStudioProjects/android-client/common/common-entity/build/generated/ksp/main/kotlin/com/company/entities/common/ecom/CategoryFilterJsonAdapter.kt:14:8 Packages cannot be imported
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':common:common-entity:compileKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
KSP2 is complaining because of the import kotlin line in the generated adapter classes.
Is this something Moshi can/needs to fix or should I report this issue to the KSP team?
Kotlin: 1.9.21, Moshi: 1.15.0, Gradle: 8.5
The text was updated successfully, but these errors were encountered:
We are using Moshi codegen via KSP for a while. We tried to test KSP2 via
ksp.useKSP2=true
along withkotlin.experimental.tryK2=true
but we get build errors for generated Moshi adapters:KSP2 is complaining because of the
import kotlin
line in the generated adapter classes.Is this something Moshi can/needs to fix or should I report this issue to the KSP team?
Kotlin: 1.9.21, Moshi: 1.15.0, Gradle: 8.5
The text was updated successfully, but these errors were encountered: