Skip to content

Crash when Close the Kotlin File #1363

@Wadamzmail

Description

@Wadamzmail

Stack trace:
kotlinx.coroutines.channels.ClosedReceiveChannelException: Channel was closed
at kotlinx.coroutines.channels.BufferedChannel.getReceiveException(BufferedChannel.kt:1762)
at kotlinx.coroutines.channels.BufferedChannel.resumeWaiterOnClosedChannel(BufferedChannel.kt:2204)
at kotlinx.coroutines.channels.BufferedChannel.resumeReceiverOnClosedChannel(BufferedChannel.kt:2193)
at kotlinx.coroutines.channels.BufferedChannel.cancelSuspendedReceiveRequests(BufferedChannel.kt:2186)
at kotlinx.coroutines.channels.BufferedChannel.completeClose(BufferedChannel.kt:1963)
at kotlinx.coroutines.channels.BufferedChannel.isClosed(BufferedChannel.kt:2242)
at kotlinx.coroutines.channels.BufferedChannel.isClosedForSend0(BufferedChannel.kt:2217)
at kotlinx.coroutines.channels.BufferedChannel.isClosedForSend(BufferedChannel.kt:2214)
at kotlinx.coroutines.channels.BufferedChannel.completeCloseOrCancel(BufferedChannel.kt:1935)
at kotlinx.coroutines.channels.BufferedChannel.closeOrCancelImpl(BufferedChannel.kt:1828)
at kotlinx.coroutines.channels.BufferedChannel.close(BufferedChannel.kt:1787)
at kotlinx.coroutines.channels.SendChannel$DefaultImpls.close$default(Channel.kt:263)
at com.itsaky.androidide.utils.KeyedDebouncingAction$ActionEntry.cancel(KeyedDebouncingAction.kt:33)
at com.itsaky.androidide.utils.KeyedDebouncingAction.cancelPending(KeyedDebouncingAction.kt:45)
at com.itsaky.androidide.lsp.kotlin.compiler.CompilationEnvironment.onFileClosed(CompilationEnvironment.kt:448)
at com.itsaky.androidide.lsp.kotlin.KotlinLanguageServer.onDocumentClose(KotlinLanguageServer.kt:307)
at java.lang.reflect.Method.invoke(Native Method)
at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:534)
at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:528)
at org.greenrobot.eventbus.AsyncPoster.run(AsyncPoster.java:45)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:929)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [CoroutineName(CompilationEnv[default]), StandaloneCoroutine{Cancelling}@817eda4, Dispatchers.Default]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions