Skip to content
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 processing conflicts with that of Hilt #192

Open
b-reetz opened this issue Nov 26, 2023 · 1 comment
Open

KSP processing conflicts with that of Hilt #192

b-reetz opened this issue Nov 26, 2023 · 1 comment

Comments

@b-reetz
Copy link

b-reetz commented Nov 26, 2023

KSP for Hilt was introduced in 2.48 but fails to work when also using KSP with Enro 2.2.0

Expected Behavior

Enro and Hilt can both take advantage of KSP

Current Behavior

Compilation fails;

.../EnroBugExample/app/build/generated/ksp/debug/java/byRounds/2/dagger/hilt/internal/aggregatedroot/codegen/_enro_reproducable_EnroBugExampleApplication.java: kotlin.io.FileAlreadyExistsException: .../EnroBugExample/app/build/generated/ksp/debug/java/byRounds/2/dagger/hilt/internal/aggregatedroot/codegen/_enro_reproducable_EnroBugExampleApplication.java

Steps to Reproduce

Use KSP (Rather than KAPT) for both Hilt & Enro. Compilation fails with the above error message.

Workaround

Stick to using KAPT for one of the libraries (can be Enro or Hilt)

Minimal reproducible project;
EnroBugExample.zip

@isaac-udy
Copy link
Owner

I believe this is actually an issue specifically with Hilt during multi-round processing. I have created a matching issue in the Dagger repository. See here: google/dagger#4161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants