Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gopls: automated issue report (initialization) #1316

Closed
darrensapalo opened this issue Mar 12, 2021 · 3 comments
Closed

gopls: automated issue report (initialization) #1316

darrensapalo opened this issue Mar 12, 2021 · 3 comments
Labels
automatedReport Automatically created issues FrozenDueToAge

Comments

@darrensapalo
Copy link

Environment

gopls version: v0.6.4
gopls flags:
extension version: 0.23.1
environment: Visual Studio Code linux
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
manual restart count: 1
total start count: 2

Describe what you observed

I opened my Visual Studio IDE on an existing golang project that I had (which previously had no problems), and then an error showed that the gopls language server did not start properly.

There were no other actions that I did- I don't know if this error was caused by a silent update on the golang server.

Starting client failed
  Message: JSON RPC parse error: json: cannot unmarshal number into Go struct field RenameClientCapabilities.capabilities.textDocument.rename.prepareSupportDefaultBehavior of type bool: JSON RPC parse error
  Code: -32700 

More information

[Error - 12:48:53 pm] Starting client failed
  Message: JSON RPC parse error: json: cannot unmarshal number into Go struct field RenameClientCapabilities.capabilities.textDocument.rename.prepareSupportDefaultBehavior of type bool: JSON RPC parse error
  Code: -32700 
[Info  - 12:48:53 pm] 2021/03/12 12:48:53 server shutdown without initialization

[Error - 12:49:28 pm] Starting client failed
  Message: JSON RPC parse error: json: cannot unmarshal number into Go struct field RenameClientCapabilities.capabilities.textDocument.rename.prepareSupportDefaultBehavior of type bool: JSON RPC parse error
  Code: -32700 
@hyangah
Copy link
Contributor

hyangah commented Mar 12, 2021

Thanks for the report @darrensapalo
This is a duplicate of #1300 . Can you please update gopls following the instruction in the issue?
Sorry for the trouble.

@darrensapalo
Copy link
Author

darrensapalo commented Mar 12, 2021

Fixed by following #1300

@darrensapalo
Copy link
Author

Hey man, thanks :) I looked through the documentation and found it. Big help!

@hyangah hyangah closed this as completed Mar 12, 2021
@hyangah hyangah added the automatedReport Automatically created issues label Mar 13, 2021
@golang golang locked and limited conversation to collaborators Mar 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automatedReport Automatically created issues FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

3 participants