golang / vscode-go

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

gopls: automated issue report (initialization) #3221

Closed sidtri closed 3 months ago

sidtri commented 4 months ago

gopls version: undefined/undefined gopls flags: update flags: proxy extension version: 0.41.1 environment: Visual Studio Code linux initialization error: Error: Pending response rejected since connection got disposed issue timestamp: Sun, 03 Mar 2024 04:37:50 GMT restart history: Sun, 03 Mar 2024 04:37:50 GMT: activation (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

gopls client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
gopls stats -anon gopls stats -anon failed after running for 43ms
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 4 months ago

@sidtri Can you please check if you can run gopls stats from your workspace directory? Looks like the VS Code Go extension tried to run 'gopls' but couldn't.