Skip to content

IntelliJ Windsurf Plugin constantly raises an error about being unable to remove document listener #252

@damonsutherland

Description

@damonsutherland

The issue is in Windsurf 2.8.* and every version of IntelliJ from 2024.3.* to the latest 2025.* (I have tried every combination)...

java.lang.Throwable: Can't remove document listener (com.codeium.intellij.completion.CompletionProvider$attachInlineAcceptListener$listener$1@2777253c). Registered listeners: [com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl$1@453a27e1, 3192, 0, Multicaster, 474, 875, 82, 0, 71, 28, 39, 51, 85, 0, 0, 0, 0, [], com.intellij.openapi.editor.impl.view.LogicalPositionCache@31e0ed91, com.intellij.openapi.editor.impl.view.TextLayoutCache@22ae78cb, com.intellij.openapi.editor.ex.util.LexerEditorHighlighter(com.intellij.json.highlighting.JsonHighlightingLexer) '{ ... can't send you this part, it is proprietary code ... }', use soft wraps: false, tab width: 4, additional columns: false, update in progress: false, bulk update in progress: false, dirty: true, deferred regions: []
appliance manager state: recalculation in progress: false; event being processed: null, available width: 1396, visible width: 0, dirty: true
soft wraps mapping info: Soft wraps affected by current update: []
soft wraps: [], com.intellij.openapi.editor.impl.view.EditorSizeManager@71283e83, com.intellij.openapi.editor.impl.CaretModelImpl@750da5a1, com.intellij.openapi.editor.impl.InlayModelImpl@76708c85, com.intellij.openapi.editor.impl.EditorImpl$EditorDocumentAdapter@42807c6c, Multicaster, com.intellij.openapi.editor.impl.event.EditorEventMulticasterImpl$1@77d25a0f, com.intellij.openapi.editor.impl.ScrollingModelImpl$1@6992cf0c, EditorMarkupModel for EditorImpl[file:///Users/dsutherland/develop/auth0-aws-terraform/env/prd1/core.json], com.intellij.codeInsight.codeVision.CodeVisionHost$subscribeForDocumentChanges$1@7d83e8f0, com.intellij.openapi.vcs.ex.DocumentTracker$MyDocumentListener@3ca19830, com.intellij.openapi.vcs.ex.ChangelistsLocalLineStatusTracker$MyUndoDocumentListener@5946bf89, com.intellij.codeInsight.inline.completion.listeners.InlineCompletionDocumentListener@2653e102, com.intellij.ml.llm.inlinePromptDetector.promo.AICodeGenerationPromoDocumentListener@44f54950, com.intellij.ml.llm.completion.cloud.nextEdit.DocumentEventListener@74a539e6, com.intellij.openapi.fileEditor.impl.text.TextEditorComponent$MyDocumentListener@18f37a0c, com.intellij.openapi.actionSystem.impl.FloatingToolbar$DocumentChangeListener@2111c3e1, com.intellij.openapi.editor.impl.EditorComponentImpl$AccessibleEditorComponentImpl@4f40b15a, com.intellij.codeInsight.hint.LocalHintManager$4@1277cb5d]
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
at com.intellij.openapi.editor.impl.DocumentImpl.removeDocumentListener(DocumentImpl.java:1028)
at com.codeium.intellij.completion.CompletionProvider.clearInlineSuggestionState(CompletionProvider.kt:1172)
at com.codeium.intellij.completion.CompletionProvider.cleanup(CompletionProvider.kt:1151)
at com.codeium.intellij.completion.CompletionProvider.getSuggestion(CompletionProvider.kt:497)
at com.codeium.intellij.completion.CompletionProvider$getSuggestion$1.invokeSuspend(CompletionProvider.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)

Also, I love your stacktraces, but I can't really send you a stack trace that contains my code (or in this case configuration). If you need more details, feel free to reach out to me.

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