golang / vscode-go

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

gopls: automated issue report (initialization) #3067

Closed JalalDA closed 9 months ago

JalalDA commented 9 months ago

gopls version: v0.14.2 (go1.21.1) gopls flags: true update flags: proxy extension version: 0.40.0 go version: 1.21.1 environment: Visual Studio Code darwin initialization error: Error: Pending response rejected since connection got disposed issue timestamp: Mon, 27 Nov 2023 07:13:35 GMT restart history: Mon, 27 Nov 2023 07:08:48 GMT: activation (enabled: true) Mon, 27 Nov 2023 07:09:39 GMT: installation (enabled: true) Mon, 27 Nov 2023 07:10:30 GMT: installation (enabled: true) Mon, 27 Nov 2023 07:11:23 GMT: installation (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

Please attach the stack trace from the crash. A window with the error message should have popped up in the lower half of your screen. Please copy the stack trace and error messages from that window and paste it in this issue. Failed to auto-collect gopls trace: no gopls log. 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 9 months ago

Hi, can you share more about what you're trying to do, and what is happening?

Since you are on Darwin, and this is an initialization problem, you may be encountering golang/go#63997. Can you try re-signing your gopls binary?

codesign -f -s - $(which gopls)