Has anyone else run into ```> Task :core:compil...
# javascript
l
Has anyone else run into
Copy code
> Task :core:compileTestDevelopmentExecutableKotlinJs FAILED
e: java.lang.IllegalStateException: IrClassSymbolImpl is unbound. Signature: kotlin.js/Promise|null[0]
For me this happens during running tests and happens randomly, re running
./gradlew jsBrowserTest
usually solves the issue but not sure why it happens. Stacktrace didn't seem helpful to me but adding in thread for reference.
stacktrace:
Copy code
> Task :core:compileTestDevelopmentExecutableKotlinJs FAILED
e: java.lang.IllegalStateException: IrClassSymbolImpl is unbound. Signature: kotlin.js/Promise|null[0]
        at org.jetbrains.kotlin.ir.symbols.impl.IrSymbolBase.getOwner(IrSymbolImpl.kt:37)
        at org.jetbrains.kotlin.ir.types.IrTypesKt.getDefaultType(irTypes.kt:173)
        at org.jetbrains.kotlin.ir.backend.js.lower.TestGenerator.generateCodeForTestMethod(TestGenerator.kt:206)
        at org.jetbrains.kotlin.ir.backend.js.lower.TestGenerator.generateTestCalls(TestGenerator.kt:120)
        at org.jetbrains.kotlin.ir.backend.js.lower.TestGenerator.createTestContainer$lambda$5$lambda$4(TestGenerator.kt:67)
        at org.jetbrains.kotlin.ir.backend.js.WholeWorldStageController.restrictTo(WholeWorldStageController.kt:29)
        at org.jetbrains.kotlin.ir.backend.js.lower.TestGenerator.createTestContainer(TestGenerator.kt:66)
        at org.jetbrains.kotlin.ir.backend.js.lower.TestGeneratorKt.generateJsTests(TestGenerator.kt:42)
        at org.jetbrains.kotlin.ir.backend.js.JsIrCompilerWithIC.compile(compilerWithIC.kt:94)
        at org.jetbrains.kotlin.ir.backend.js.ic.CacheUpdater.compileDirtyFiles(CacheUpdater.kt:716)
        at org.jetbrains.kotlin.ir.backend.js.ic.CacheUpdater.loadIrAndMakeIrFragmentGenerators(CacheUpdater.kt:816)
        at org.jetbrains.kotlin.ir.backend.js.ic.CacheUpdater.actualizeCaches(CacheUpdater.kt:848)
        at org.jetbrains.kotlin.cli.js.IcCachesKt.prepareIcCaches(IcCaches.kt:118)
        at org.jetbrains.kotlin.cli.pipeline.web.WebBackendPipelinePhase.executePhase(WebBackendPipelinePhase.kt:69)
        at org.jetbrains.kotlin.cli.pipeline.web.WebBackendPipelinePhase.executePhase(WebBackendPipelinePhase.kt:30)
        at org.jetbrains.kotlin.cli.pipeline.PipelinePhase.phaseBody(PipelinePhase.kt:68)
        at org.jetbrains.kotlin.cli.pipeline.PipelinePhase.phaseBody(PipelinePhase.kt:58)
        at org.jetbrains.kotlin.config.phaser.SimpleNamedCompilerPhase.phaseBody(CompilerPhase.kt:215)
        at org.jetbrains.kotlin.config.phaser.NamedCompilerPhase.invoke(CompilerPhase.kt:111)
        at org.jetbrains.kotlin.backend.common.phaser.CompositePhase.invoke(PhaseBuilders.kt:28)
        at org.jetbrains.kotlin.config.phaser.CompilerPhaseKt.invokeToplevel(CompilerPhase.kt:62)
        at org.jetbrains.kotlin.cli.pipeline.AbstractCliPipeline.runPhasedPipeline(AbstractCliPipeline.kt:106)
        at org.jetbrains.kotlin.cli.pipeline.AbstractCliPipeline.execute(AbstractCliPipeline.kt:65)
        at org.jetbrains.kotlin.cli.js.K2JSCompiler.doExecutePhased(K2JSCompiler.kt:63)
        at org.jetbrains.kotlin.cli.js.K2JSCompiler.doExecutePhased(K2JSCompiler.kt:49)
        at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:80)
        at org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.kt:337)
        at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1700)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:360)
        at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
        at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:714)
        at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
        at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:598)
        at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:844)
        at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:721)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
        at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:720)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
        at java.base/java.lang.Thread.run(Thread.java:1583)
b
Hi! Could you please file an issue at kotl.in/issue? If you're able to share your project, it will be helpful too.
l
Project is the official org project which i might not be able to share, and i am not able to reproduce this in a personal project of mine. Even in org project this happens sometimes. I have created the issue and added the relevant project details, can add any more specific details if required as well.
b
Thank you!
t
Pill - remove build caches :(
👍 2
e
Yes I have! A temporary solution is to clear the build cache (or avoid using it), but it always comes back at some point. I couldn't figure out why it's happening.
👍 1
Have you tried upgrading to 2.2.0+? I cannot right now as I have some blockers.
t
Problem is still here in
2.2.0
😞
e
Ah, damn.