Open VahidGarousi opened 3 weeks ago
The issue is that MarketDaoImpl
's constructor has a parameter of MarketDatabase
a type that is generated by SQLDelight via its Gradle Plugin, where as Dagger is a KSP processor and these two are not wired correctly. This issue is a dupe of: https://github.com/google/ksp/issues/1912
Two workarounds I can think of:
.sql
files and it is an api
of your database
module
Description:
I'm encountering a KSP compilation failure where an unresolved
error.NonExistentClass
appears during the processing ofMarketDaoImpl
andLocalDatasourceModule
. This issue occurs while attempting to process constructor and method parameters that reference a class that cannot be resolved.Full error message:
The error suggests that a class required for dependency injection or some other processing step isn't being generated or included in the classpath, preventing compilation from succeeding.
Steps to reproduce:
MarketDaoImpl
depends on a type that either should be generated or resolved during compilation.LocalDatasourceModule
class in the DI module also fails to provide the correct class reference for dependency injection.Environment:
If
error.NonExistentClass
is supposed to be generated by KSP, it seems that the class generation process is not occurring correctly, or there's an issue with the classpath.I think this is the root of the error:
https://github.com/Kaaveh/ComposeNews/blob/1c9549eb47a3845179de7e4744dcdf62b30bdbb0/data/market-local/src/main/java/ir/composenews/localdatasource/di/LocalDatasourceModule.kt#L21