redhat-developer / redhat-developer/lsp4ij

Error while consuming 'textDocument/implementation' with language server 'Go Language Server'

Open
#829 9 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

I always encounter this using go lang and my editor doesn't recognize and color.
I am using WebStorm 2024.3.2.1 and LSP4IJ 0.10.0

Error while consuming 'textDocument/implementation' with language server 'Go Language Server'

org.eclipse.lsp4j.jsonrpc.ResponseErrorException: nil is a nil, not a type
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:209)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:193)
	at com.redhat.devtools.lsp4ij.LanguageServerWrapper.lambda$start$5(LanguageServerWrapper.java:330)
	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1491)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2073)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2035)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)

I followed all the instructions here: https://github.com/redhat-developer/lsp4ij/blob/main/docs/user-defined-ls/gopls.md

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

Start with docs/user-defined-ls/gopls.md and reproduce textDocument/implementation using WebStorm 2024.3.2.1, LSP4IJ 0.10.0, and the Go Language Server. Trace the response through LanguageServerWrapper.java; done means the request no longer produces the nil-type error and the editor recognizes and colorizes Go code.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, java
Domain
developer-experience, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.