golang / vscode-go

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

gopls: automated issue report (initialization) #3188

Closed yangyang0810 closed 3 months ago

yangyang0810 commented 4 months ago

gopls version: v0.14.2/go1.22.0 gopls flags: true update flags: proxy extension version: 0.41.1 environment: Visual Studio Code win32 initialization error: Error: Pending response rejected since connection got disposed issue timestamp: Fri, 23 Feb 2024 02:11:13 GMT restart history: Fri, 23 Feb 2024 02:11:13 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 { "DirStats": { "Files": 1, "TestdataFiles": 0, "GoFiles": 1, "ModFiles": 0, "Dirs": 1 }, "GOARCH": "amd64", "GOOS": "windows", "GoVersion": "go1.22.0", "GoplsVersion": "v0.14.2", "InitialWorkspaceLoadDuration": "5.2867912s", "MemStats": { "HeapAlloc": 8035992, "HeapInUse": 13778944, "TotalAlloc": 92004760 }, "WorkspaceStats": { "Files": { "Total": 446, "Largest": 210104, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.0", "AllPackages": { "Packages": 51, "LargestPackage": 148, "CompiledGoFiles": 445, "Modules": 0 }, "WorkspacePackages": { "Packages": 1, "LargestPackage": 1, "CompiledGoFiles": 1, "Modules": 0 }, "Diagnostics": 0 } ] } }
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.
findleyr commented 4 months ago

Hi, could you please try upgrading to gopls@v0.15.1, and let us know if the issue continues?

go install golang.org/x/tools/gopls@latest
gopherbot commented 3 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.)