Skip to content

KSP processing conflicts with that of Hilt #192

@b-reetz

Description

@b-reetz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions