Open eygraber opened 9 months ago
I'm experiencing the same problem with kotlin 2.0.0-Beta4 K2, ksp 2.0.0-Beta4-1.0.17.
I'm using koin-annotations (ksp), which generates code that calls a constructor which in turn is only defined in the actual class.
Compilation fails, because the compiler appearently does not see the actual class, even when it is in the same source set:
compileDebugKotlinAndroid FAILED:
Expected class 'expect class OnlineStatusCheckerModule : Any' does not have default constructor.
Could be a duplicate of https://github.com/google/ksp/issues/1651
After updating Kotlin to
2.0.0-Beta3
and KSP to2.0.0-Beta3-1.0.17
(withksp.useKSP2 = false
) I started seeing an issue where code generated from the android source set can't see code that is in the android source set:android source set:
generated code:
Errors:
I use the following to set up my KSP dependencies: