Enro
Enro copied to clipboard
KSP processing conflicts with that of Hilt
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