vscode-go icon indicating copy to clipboard operation
vscode-go copied to clipboard

gopls: automated issue report (initialization)

Open zhuangms opened this issue 1 year ago • 2 comments

gopls version: v0.16.1/go1.22.5 gopls flags: -remote=auto”、“-logfile=auto”、“-debug=:0”、“-rpc.trace update flags: proxy extension version: 0.42.0 environment: Visual Studio Code linux initialization error: Error: Pending response rejected since connection got disposed issue timestamp: Mon, 29 Jul 2024 11:59:11 GMT restart history: Mon, 29 Jul 2024 11:53:28 GMT: activation (enabled: true) Mon, 29 Jul 2024 11:59:02 GMT: config change (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": 13352, "TestdataFiles": 4476, "GoFiles": 6621, "ModFiles": 58, "Dirs": 4541 }, "GOARCH": "amd64", "GOOS": "linux", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.22.5", "GoplsVersion": "v0.16.1", "InitialWorkspaceLoadDuration": "97.24767ms", "MemStats": { "HeapAlloc": 4670696, "HeapInUse": 6979584, "TotalAlloc": 12006832 }, "WorkspaceStats": { "Files": { "Total": 0, "Largest": 0, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.5", "AllPackages": { "Packages": 0, "LargestPackage": 0, "CompiledGoFiles": 0, "Modules": 0 }, "WorkspacePackages": { "Packages": 0, "LargestPackage": 0, "CompiledGoFiles": 0, "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.

<OPTIONAL: ATTACH LOGS HERE>

zhuangms avatar Jul 29 '24 11:07 zhuangms

@zhuangms Looks like the setting around the "go.languageServerFlags" setting has errors. Can you open the settings.json file, correct the errors, and reload the window?

hyangah avatar Aug 04 '24 23:08 hyangah

Thank you for your reply. Please forgive me for my poor English. I found that the vscode go plugin v0.42.0 version does not have the "go docs tool" setting option, so I first changed the go version to 1.13.1. Secondly, I changed the plugin version to 0.34.0 and set go.Docs tool to solve the problem. 

1180300226-庄舒漫 @.***

 

------------------ 原始邮件 ------------------ 发件人: "Hyang-Ah Hana @.>; 发送时间: 2024年8月5日(星期一) 上午7:54 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [golang/vscode-go] gopls: automated issue report (initialization) (Issue #3474)

@zhuangms Looks like the setting around the "go.languageServerFlags" setting has errors. Can you open the settings.json file, correct the errors, and reload the window?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

zhuangms avatar Aug 12 '24 15:08 zhuangms