just updated to 0.7.2 and started migrating to use...
# kotlin-inject
j
just updated to 0.7.2 and started migrating to use
kotlin-inject-anvil
and now i'm getting a
FileAlreadyExistsException
. best way to debug this?
my component is defined as
Copy code
@AppScope
@Component
@MergeComponent
internal abstract class AppComponent(
    @Component val clientComponent: ClientComponent,
)
with the
@MergeComponent
annotation, i get the
FileAlreadyExistsException
. if i remove it i get this other error
java.lang.IllegalStateException: Storage for [...\build\kspCaches\jvm\jvmMain\symbolLookups\id-to-file.tab] is already registered
e
I think the latter issue is from KSP, and killing the daemon (
./gradlew --stop
) should fix it.
j
ah yeah, that fixed that error
i am back to the
FileAlreadyExistsException
exception though so this might be a anvil issue
b
I was able to get around these issues with a subcomponent. I couldn’t ever get it working with a regular component though. Adding a
@Component
to the constructor of another component would never work and would always throw the same errors as above