Skip to content

[Bug][Build error] Context receivers and ArrowKt issues #3847

@ILIYANGERMANOV

Description

@ILIYANGERMANOV

Right after enabling the kapt Dagger Compiler I get the following error:

> Task :core:kaptKotlinJvm FAILED
/home/iliyan/work/repo/ivy-wallet/core/build/tmp/kapt3/stubs/main/ivy/core/domain/AccountCacheKt.java:6: error: cannot access Raise
    private static final java.lang.Object invalidateAffectedCaches(ivy.core.persistence.AccountCachePersistence _context_receiver_0, arrow.core.raise.Raise<? super ivy.core.persistence.data.PersistenceError> _context_receiver_1, java.util.List<? extends ivy.core.persistence.data.ItemChange<? super ivy.core.data.Transaction>> changes, kotlin.coroutines.Continuation<? super kotlin.Unit> $completion) {
                                                                                                                                                     ^
  bad class file: /home/iliyan/.gradle/caches/modules-2/files-2.1/io.arrow-kt/arrow-core-jvm/1.2.0-RC/815591a96f11786ae0ff746a4931fee9c0e46ac4/arrow-core-jvm-1.2.0-RC.jar(/arrow/core/raise/Raise.class)
    undeclared type variable: T
    Please remove or make sure it appears in the correct subdirectory of the classpath.

Here's the full code of the project:
https://github.com/Ivy-Apps/ivy-wallet/blob/186bfc7c92ef764c0e0db8e249af8949c3e81785/core/src/commonMain/kotlin/ivy/core/domain/AccountCache.kt#L69

What's your advice for fixing this?
Apologies if that's not a Dagger issue!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions