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

gopls: automated issue report (crash)

Open SafwanAhmed08 opened this issue 1 year ago • 4 comments

gopls version: v0.15.1/go1.21.6 gopls flags: update flags: proxy extension version: 0.41.1 environment: Visual Studio Code win32 initialization error: undefined issue timestamp: Tue, 05 Mar 2024 19:38:15 GMT restart history: Tue, 05 Mar 2024 19:29:27 GMT: activation (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.

gopls stats -anon { "DirStats": { "Files": 12, "TestdataFiles": 0, "GoFiles": 12, "ModFiles": 0, "Dirs": 1 }, "GOARCH": "amd64", "GOOS": "windows", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.21.6", "GoplsVersion": "v0.15.1", "InitialWorkspaceLoadDuration": "29.8101ms", "MemStats": { "HeapAlloc": 2650624, "HeapInUse": 5021696, "TotalAlloc": 11654200 }, "WorkspaceStats": { "Files": { "Total": 0, "Largest": 0, "Errs": 0 }, "Views": null } }

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>

SafwanAhmed08 avatar Mar 05 '24 19:03 SafwanAhmed08

Thanks for the report. Can you please share the log you see in the gopls output channel and tell us when you observed this popup (e.g. I was updating gopls, I just opened the vscode, I did refactoring, ...)? Screen Shot 2021-01-27 at 2 53 49 PM

hyangah avatar Mar 05 '24 20:03 hyangah

Hey, Unfortunately after that, my gopls got corrupted and hasn't worked since. This was shortly before or after updating it to version 0.15 (sorry, I'm not able to recall). Thanks for the early reply.

On Wed, 6 Mar 2024 at 01:41, Hyang-Ah Hana Kim @.***> wrote:

Thanks for the report. Can you please share the log you see in the gopls output channel and tell us when you observed this popup (e.g. I was updating gopls, I just opened the vscode, I did refactoring, ...)? [image: Screen Shot 2021-01-27 at 2 53 49 PM] https://user-images.githubusercontent.com/4999471/106151310-3899a680-614a-11eb-9be7-42f2ae0592c9.png

— Reply to this email directly, view it on GitHub https://github.com/golang/vscode-go/issues/3225#issuecomment-1979548477, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2OPH27DIYMBRUNCN4UJWZTYWYRHRAVCNFSM6AAAAABEHX23CKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZZGU2DQNBXG4 . You are receiving this because you authored the thread.Message ID: @.***>

SafwanAhmed08 avatar Mar 07 '24 04:03 SafwanAhmed08

Can you share the output of the following command:

$ go version $(which gopls)

I suggest you restart VS Code and describe what happens. If the problem persists, share the gopls server log as indicates in the post from @hyangah.

adonovan avatar Mar 07 '24 21:03 adonovan

You may also want to try installing the prerelease of the next gopls version, which fixes a couple crashes:

go install golang.org/x/tools/[email protected]

findleyr avatar Mar 08 '24 20:03 findleyr