Repository navigation
Closed
Description
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
angelozerr commentedon Jan 3, 2026
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
saidtahali commentedon Jan 3, 2026
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
angelozerr commentedon Jan 3, 2026
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?
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?
angelozerr commentedon Feb 2, 2026
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.
d-biehl commentedon Feb 2, 2026
@saidtahali where did you find this exception? In a popup or in the log files or ...? And what did you do before?
angelozerr commentedon Mar 30, 2026
@saidtahali I think I have a fix to avoid this error, but except this error, is your language server is working?
angelozerr commentedon Apr 8, 2026
@d-biehl @saidtahali could you install please https://github.com/redhat-developer/lsp4ij?tab=readme-ov-file#testing-nightly-builds and tell me if it is working better. Thanks.
d-biehl commentedon Apr 10, 2026
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.
angelozerr commentedon Apr 10, 2026
Thanks @d-biehl for your feedback.
angelozerr commentedon Apr 22, 2026
It should be fixed in 0.19.3, if you have again the problem please reopen it.