golang / vscode-go

Go extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=golang.Go
Other
3.8k stars 730 forks source link

gopls: automated issue report (initialization) #3099

Closed shmily1012 closed 6 months ago

shmily1012 commented 7 months ago

gopls version: v0.5.1 (undefined) gopls flags: update flags: proxy extension version: 0.40.0 go version: 1.13.4 environment: Visual Studio Code win32 initialization error: Error: JSON RPC parse error: json: cannot unmarshal number into Go struct field RenameClientCapabilities.capabilities.textDocument.rename.prepareSupportDefaultBehavior of type bool: JSON RPC parse error issue timestamp: Wed, 20 Dec 2023 02:03:50 GMT restart history: Wed, 20 Dec 2023 02:03:32 GMT: activation (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

Please attach the stack trace from the crash. A window with the error message should have popped up in the lower half of your screen. Please copy the stack trace and error messages from that window and paste it in this issue. Failed to auto-collect gopls trace: unrecognized crash pattern. OPTIONAL: If you would like to share more information, you can attach your complete gopls logs. NOTE: THESE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR CODEBASE. DO NOT SHARE LOGS IF YOU ARE WORKING IN A PRIVATE REPOSITORY.
hyangah commented 7 months ago

@shmily1012 Can you please update gopls and go, and then restart the editor? go1.13 and gopls v0.5.1 are no longer supported.

For go, visit https://go.dev/dl. After installing a newer go, install the latest gopls: go install golang.org/x/tools/gopls@latest

gopherbot commented 6 months ago

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)