golang / vscode-go

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

gopls: automated issue report (crash) #3130

Closed Y-xiaohang closed 5 months ago

Y-xiaohang commented 6 months ago

gopls version: v0.14.2/go1.21.5 gopls flags: update flags: proxy extension version: 0.40.1 environment: Visual Studio Code darwin initialization error: undefined issue timestamp: Mon, 15 Jan 2024 15:21:42 GMT restart history: Mon, 15 Jan 2024 15:21:25 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: incomplete panic trace.
gopls stats -anon gopls stats -anon failed after running for 1046ms
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 6 months ago

@Y-xiaohang Can you check if you were affected by https://github.com/golang/go/issues/63997 ?

The instruction is here https://github.com/golang/vscode-go/issues/3085#issuecomment-1850368404

Or, alternatively, you can try the prerelease that avoids the problem

go install golang.org/x/tools/gopls@v0.15.0-pre.1
1moeses commented 6 months ago

@Y-xiaohang Can you check if you were affected by golang/go#63997 ?

The instruction is here #3085 (comment)

Or, alternatively, you can try the prerelease that avoids the problem

go install golang.org/x/tools/gopls@v0.15.0-pre.1

That worked for me! Thanks!

gopherbot commented 5 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.)