-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[KSP] After migrating to ksp Assisted Inject factory implementations cannot be found during incremental compilation #4054
Comments
Hi @AradiPatrik, can you share a minimal reproducible example? AFAIK, we've done everything on Dagger's side to make this work, so it may be a bug in KSP. |
@bcorso A reproducer of this bug is in this repo/branch and here is a github action run with the failure.
Workaround: Making the I have been running into other incremental compilation issues that I haven't been able to reproduce and will revert to kapt until dagger ksp is in a more stable space. |
@tevjef Thanks for the repro! For me this issue is sometimes still present after clean build. The only way to work around the issue is actually delete a line in the generated file (referencing the factory), and rebuild the project. |
A quick update on this -- this appears to be an issue with how KSP exposes its output cache during incremental processing. I've filed a bug with the KSP team here: google/ksp#1555. In the meantime, it is possible to workaround this issue in Dagger until the issue gets resolved in KSP. We should have the fix out this week and hopefully do a release as well. |
This change should be temporary until we can get a more robust fix in KSP (google/ksp#1555). Fixes #4063 Fixes #4054 RELNOTES=N/A PiperOrigin-RevId: 568629041
This change should be temporary until we can get a more robust fix in KSP (google/ksp#1555). Fixes #4063 Fixes #4054 RELNOTES=N/A PiperOrigin-RevId: 568629041
This change should be temporary until we can get a more robust fix in KSP (google/ksp#1555). Fixes #4063 Fixes #4054 RELNOTES=N/A PiperOrigin-RevId: 568629041
As title says. I am using assisted inject, and after upgrading to KSP my incremental compilation is broken and have to do clean builds every time. I get the error below
android gradle:
"com.android.tools.build:gradle:8.1.1"
gradle plugin:
"org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0"
ksp version: 1.9.0-1.0.13
dagger version: 2.48
gradle info
The text was updated successfully, but these errors were encountered: