redhat-developer / redhat-developer/lsp4ij

java.util.concurrent.CompletionException: com.redhat.devtools.lsp4ij.server.CannotStartProcessException:

Open
#1,600 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
344
Forks
113
Avg merge
5h 22m
Merged PRs (30d)
15

Description

java.util.concurrent.CompletionException: com.redhat.devtools.lsp4ij.server.CannotStartProcessException: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "gopls": CreateProcess error=2, The system cannot find the file specified
	at java.base/java.util.concurrent.CompletableFuture.wrapInCompletionException(CompletableFuture.java:323)
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:376)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:391)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:657)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:531)
	at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2221)
	at com.redhat.devtools.lsp4ij.LanguageServerWrapper.lambda$start$16(LanguageServerWrapper.java:539)
	at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:1011)
	at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:995)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:531)
	at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2221)
	at com.redhat.devtools.lsp4ij.LanguageServerWrapper.lambda$start$5(LanguageServerWrapper.java:433)
	at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:381)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
	at com.intellij.util.concurrency.ContextCallable.lambda$call$1(ContextCallable.java:86)
	at com.intellij.concurrency.ThreadContext.installThreadContext(threadContext.kt:305)
	at com.intellij.util.concurrency.ContextCallable.lambda$call$2(ContextCallable.java:83)
	at com.intellij.util.concurrency.ContextCallable.call(ContextCallable.java:96)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
	at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:192)
	at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:192)
	at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:198)
	at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:192)
	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:1090)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:649)
	at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: com.redhat.devtools.lsp4ij.server.CannotStartProcessException: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "gopls": CreateProcess error=2, The system cannot find the file specified
	at com.redhat.devtools.lsp4ij.server.OSProcessStreamConnectionProvider.start(OSProcessStreamConnectionProvider.java:130)
	at com.redhat.devtools.lsp4ij.LanguageServerWrapper.lambda$start$5(LanguageServerWrapper.java:418)
	... 18 more
Caused by: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "gopls": CreateProcess error=2, The system cannot find the file specified
	at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:436)
	at com.intellij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:85)
	at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:45)
	at com.redhat.devtools.lsp4ij.server.OSProcessStreamConnectionProvider$1.<init>(OSProcessStreamConnectionProvider.java:114)
	at com.redhat.devtools.lsp4ij.server.OSProcessStreamConnectionProvider.start(OSProcessStreamConnectionProvider.java:114)
	... 19 more
Caused by: java.io.IOException: Cannot run program "gopls": CreateProcess error=2, The system cannot find the file specified
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1112)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1046)
	at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:583)
	at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:599)
	at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:446)
	at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:416)
	... 23 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
	at java.base/java.lang.ProcessImpl.create(Native Method)
	at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:485)
	at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:146)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1078)
	... 28 more

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The failure is reported through LanguageServerWrapper and OSProcessStreamConnectionProvider when IntelliJ cannot start the gopls process. Start by tracing those stack-frame entry points and reproducing the missing-executable condition; completion requires a confirmed, actionable outcome for this startup failure, which the issue does not specify.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, java
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.