Skip to content

Concurrent Cancellation Exception #1426

Closed

Description

@mattheck
java.util.concurrent.CompletionException: java.util.concurrent.CancellationException
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:636)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
	at java.base/java.util.concurrent.CompletableFuture.cancel(CompletableFuture.java:2512)
	at com.redhat.devtools.lsp4ij.internal.CancellationSupport.cancel(CancellationSupport.java:284)
	at com.redhat.devtools.lsp4ij.LanguageServerWrapper.stop(LanguageServerWrapper.java:1548)
	at com.redhat.devtools.lsp4ij.LanguageServerWrapper.lambda$start$2(LanguageServerWrapper.java:345)
	at com.redhat.devtools.lsp4ij.server.LSPProcessListener.processTerminated(LSPProcessListener.java:112)
	at com.intellij.execution.process.ProcessHandler$2.processTerminated(ProcessHandler.java:274)
	at com.intellij.execution.process.ProcessHandler.lambda$notifyTerminated$2(ProcessHandler.java:219)
	at com.intellij.execution.process.ProcessHandler$TasksRunner.execute(ProcessHandler.java:337)
	at com.intellij.execution.process.ProcessHandler.notifyTerminated(ProcessHandler.java:202)
	at com.intellij.execution.process.ProcessHandler.notifyProcessTerminated(ProcessHandler.java:198)
	at com.intellij.execution.process.BaseProcessHandler.onOSProcessTerminated(BaseProcessHandler.java:108)
	at com.intellij.execution.process.OSProcessHandler.onOSProcessTerminated(OSProcessHandler.java:188)
	at com.intellij.execution.process.BaseOSProcessHandler$1.lambda$startNotified$0(BaseOSProcessHandler.java:82)
	at com.intellij.execution.process.ProcessWaitFor.lambda$new$0(ProcessWaitFor.java:45)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:249)
	at com.intellij.execution.process.ProcessWaitFor.lambda$new$1(ProcessWaitFor.java:23)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:167)
	at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:167)
	at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:173)
	at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:167)
	at com.intellij.util.concurrency.ContextRunnable.lambda$run$0(ContextRunnable.java:26)
	at com.intellij.concurrency.ThreadContext.resetThreadContext(threadContext.kt:294)
	at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:25)
	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.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.util.concurrent.CancellationException
	at java.base/java.util.concurrent.CompletableFuture.cancel(CompletableFuture.java:2510)
	... 31 more

Activity

  1. angelozerr commented on Feb 24, 2026

    @angelozerr
    Contributor

    @mattheck which language server are you using? Robotcode?

    It seems it is the same issue than #1407

  2. mattheck commented on Mar 6, 2026

    @mattheck
    Author

    The only lsp i have running is Tailwind CSS Language Server. This does look similar to the stack trace in #1407 though.

  3. angelozerr commented on Mar 30, 2026

    @angelozerr
    Contributor

    Except this error, is your language server is working?

    Could you share your config by exporting the language server please

  4. angelozerr commented on Apr 8, 2026

    @angelozerr
    Contributor
  5. added
    bug
    on Apr 8, 2026
  6. added this to the 0.19.3 milestone on Apr 22, 2026
  7. angelozerr commented on Apr 22, 2026

    @angelozerr
    Contributor

    @mattheck please try to install 0.19.3 if it doesn't fix your issue please reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions