Good morning everyone. I’m unsure whether this is ...
# koin
d
Good morning everyone. I’m unsure whether this is addressable by Koin-Annotations or if it’s entirely on KSP. I have this:
Copy code
@Module(
    includes = [
        // ~70 modules
    ]
)
class CineScoutModule
and its related test using
org.koin.test.check.checkKoinModules
. My problem is that whenever any of these modules don’t compile, I have this kind of error:
e: file:///~/build/generated/ksp/jvm/jvmMain/kotlin/org/koin/ksp/generated/CineScoutModuleGencinescout$di$kotlin.kt71831 Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public val KotlinUtilsModule.module: Module defined in org.koin.ksp.generated
public val AccountDomainModule.module: Module defined in org.koin.ksp.generated
(all the dependent modules)
And it’s impossible to track down the root cause. Is there anything that can be done on my side to debug or on Koin’s side to improve that?
a
yes, compilation error can be perfectible. Ksp is not helping neither 🤔
check your overall gradle log, it should show where it doesn't compile
d
I got another issue, but I’m unable to find the cause. Do you have suggestions? Perhaps I should pass some specific arguments to log more info?
j
@Davide Giuseppe Farella do you remember how you solved this one? We're not seeing any compilation issues until suddenly
Unresolved reference. None of the following candidates is applicable because of receiver type mismatch
. And then there's a list of the modules:
public val NetworkModule.module: Module defined in org.koin.ksp.generated
public val PlatformModule.module: Module defined in org.koin.ksp.generated
+1 more. In the build folders I see that the KSP modules are generated correctly (as the lines above point out).
d
I don’t remember, but it was a random compilation issue for the code, like a missing argument for a constructor or really it could be anything
j
We're probably looking at something else, as our demo app using the shared module directly still works 😶