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

Zipline incremental builds fail deserializing app.cash.zipline/Zipline.take #825

Closed
swankjesse opened this issue Dec 23, 2022 · 1 comment

Comments

@swankjesse
Copy link
Contributor

I’ve seen incremental builds crash the compiler like this:

> Task :zipline:compileKotlinJs FAILED
e: Could not load module <app.cash.zipline:zipline> in an attempt to find deserializer for symbol app.cash.zipline/Zipline.take|-4455680448914447453[0].
e: org.jetbrains.kotlin.ir.linkage.KotlinIrLinkerInternalException: Kotlin IR Linker exception
        at org.jetbrains.kotlin.backend.common.serialization.linkerissues.KotlinIrLinkerIssue.raiseIssue(KotlinIrLinkerIssues.kt:26)
        at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.resolveModuleDeserializer(KotlinIrLinker.kt:95)
        at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.findDeserializedDeclarationForSymbol(KotlinIrLinker.kt:125)
        at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.deserializeOrResolveDeclaration(KotlinIrLinker.kt:169)
        at org.jetbrains.kotlin.backend.common.serialization.KotlinIrLinker.getDeclaration(KotlinIrLinker.kt:158)
        at org.jetbrains.kotlin.backend.common.extensions.IrPluginContextImpl.resolveSymbolCollection(IrPluginContextImpl.kt:93)
        at org.jetbrains.kotlin.backend.common.extensions.IrPluginContextImpl.referenceFunctions(IrPluginContextImpl.kt:130)
        at app.cash.zipline.kotlin.ZiplineApis.rewritePair(ZiplineApis.kt:189)
        at app.cash.zipline.kotlin.ZiplineApis.<init>(ZiplineApis.kt:179)
        at app.cash.zipline.kotlin.ZiplineIrGenerationExtension.generate(ZiplineIrGenerationExtension.kt:35)

We should find a fix. A workaround is to do a gradle clean.

@swankjesse
Copy link
Contributor Author

Obsolete.

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

1 participant