golang / vscode-go

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

gopls: automated issue report (initialization) #3110

Open ramenaru opened 9 months ago

ramenaru commented 9 months ago

gopls version: v0.14.2 gopls flags: extension version: 0.40.1 environment: Code - OSS linux initialization error: Error: JSON RPC parse error: json: cannot unmarshal bool into Go struct field RenameClientCapabilities.capabilities.textDocument.rename.prepareSupportDefaultBehavior of type protocol.PrepareSupportDefaultBehavior manual restart count: 0 total start count: 1

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

Starting client failed
  Message: JSON RPC parse error: json: cannot unmarshal bool into Go struct field RenameClientCapabilities.capabilities.textDocument.rename.prepareSupportDefaultBehavior of type protocol.PrepareSupportDefaultBehavior
  Code: -32700 
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 9 months ago

@Ramenaru Do you still see gopls not running? The error was caused by an old version of Go extension, but it looks like the extension was already updated before the issue was filed.

hyangah commented 9 months ago

@Ramenaru Can you please tell us how you installed the Go extension? Even though the report claims the extension version is 0.40.1, the issue template doesn't seem to match what 0.40.1 uses. Looks like https://github.com/golang/vscode-go/issues/3105 is strange too (from VSCodium).

Can you please uninstall the Go extension and install it again to see if it helps?

ramenaru commented 9 months ago

i installed many go extension like golang rich, go by 'gatty', is that the reason why i get that error, too many golang extension ??

hyangah commented 9 months ago

@Ramenaru Can you try to turn off all extension but this extension "golang.go", and see if it's reproducible?