Skip to content

gopls failed to start #1748

@huww98

Description

@huww98

What happened?

LSP server gopls failed to start: Error: JSON RPC parse error: json: cannot unmarshal object into Go struct field WorkspaceClientCapabilities.XInitializeParams.capabilities.workspace.workspaceFolders of type bool
at JsonRpcConnection.routeMessage (file:///opt/homebrew/lib/node_modules/@qwen-code/qwen-code/cli.js:244782:28)
at JsonRpcConnection.handleData (file:///opt/homebrew/lib/node_modules/@qwen-code/qwen-code/cli.js:244768:18)
at Socket. (file:///opt/homebrew/lib/node_modules/@qwen-code/qwen-code/cli.js:244656:45)
at Socket.emit (node:events:508:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)

% gopls version
golang.org/x/tools/gopls v0.21.0

What did you expect to happen?

gopls (Go LSP) should work

Client information

Qwen Code: 0.9.1 (302ed9a)
运行环境: Node.js v25.2.1 / npm 11.6.2
IDE 客户端: VS Code
操作系统: darwin arm64 (25.2.0)
认证: openai (https://idealab.alibaba-inc.com/api/openai/v1)
模型: glm-4.7
会话 ID: 90e57c26-84e9-4545-abbc-718850bd6c62
沙箱: no sandbox
代理: no proxy
内存使用: 211.6 MB

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/needs-triageIssue needs to be triaged and labeledtype/bugSomething isn't working as expected

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions