Skip to content

getting constant exception on Intellij #1407

Closed

Description

@saidtahali

the exception i am constantly getting is as follows:

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

Environment information
OS: MacOS 15.7.2 (24G325)
IDE: Intellij IntelliJ IDEA 2025.3.1 (253.29346.138)
Installed Plugin: RobotCode 2.2.0

Activity

  1. angelozerr commented on Jan 3, 2026

    @angelozerr
    Contributor

    It seems the problem comes from the start of the robotcode language server

    Please report this issue to robotcode intellij plugin.
    If there is something to do in lsp4ij please tell me but before please report the issue to robotcode intellij plugin

  2. saidtahali commented on Jan 3, 2026

    @saidtahali
    Author

    please would you clarify? is this only an assumption? or there is some specific line of the exception log that explecitely? what should i report exactly to robotcode? in my point of view, Intellij is reporting this plugin to be the issue, and asking clearly to report it here.
    Regards

  3. angelozerr commented on Jan 3, 2026

    @angelozerr
    Contributor

    please would you clarify? is this only an assumption? or there is some specific line of the exception log that explecitely?

    Your issue is that you see in the error popup a CancellableException? If yes I know this problem but I dont know how to fix it.

    If you see traces, process is terminated, which stops the language server and cancel all lsp requests.

    Is it normal that process is terminated? If no, my suggestion is to report this issue to robotcode.

    Have you this error with other language servers?

    what should i report exactly to robotcode? in my point of view, Intellij is reporting this plugin to be the issue, and asking clearly to report it here.

    First I need to understand more your usecase. Do you stop language servers by closing all files for instance? Or do you have this issue sometimes, every time? Is broke lsp features?

    Regards

  4. angelozerr commented on Feb 2, 2026

    @angelozerr
    Contributor

    what should i report exactly to robotcode? in my point of view, Intellij is reporting this plugin to be the issue, and asking clearly to report it here.

    The stack trace seems showing that when robotcode language server tries to start, it fails. So the problem for me is the start of robotcode language server. This start is done by some classes from LSP4IJ to start the server but for some reason the process is terminated after it starts.

    @d-biehl could you please take care of this issue.

  5. d-biehl commented on Feb 2, 2026

    @d-biehl
    Contributor

    @saidtahali where did you find this exception? In a popup or in the log files or ...? And what did you do before?

  6. angelozerr commented on Mar 30, 2026

    @angelozerr
    Contributor

    @saidtahali I think I have a fix to avoid this error, but except this error, is your language server is working?

  7. angelozerr commented on Apr 8, 2026

    @angelozerr
    Contributor
  8. added
    bug
    on Apr 8, 2026
  9. d-biehl commented on Apr 10, 2026

    @d-biehl
    Contributor

    It works fine on my end, but I’ve never actually been able to reproduce the error and haven’t received any other error messages regarding this. I’ll be releasing a new update with the latest versions in the next few days; let’s see if anyone else reports this issue.

  10. angelozerr commented on Apr 10, 2026

    @angelozerr
    Contributor

    Thanks @d-biehl for your feedback.

  11. added this to the 0.19.3 milestone on Apr 22, 2026
  12. angelozerr commented on Apr 22, 2026

    @angelozerr
    Contributor

    It should be fixed in 0.19.3, if you have again the problem 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