vscode-go
vscode-go copied to clipboard
gopls: automated issue report (initialization)
gopls version: v0.9.1 (go1.13.8) gopls flags: update flags: proxy extension version: 0.34.1 go version: 1.13.8 environment: Visual Studio Code win32 initialization error: Error: command 'gopls.add_dependency' already exists issue timestamp: Sat, 16 Jul 2022 04:55:13 GMT restart history: Sat, 16 Jul 2022 04:14:24 GMT: activation (enabled: true) Sat, 16 Jul 2022 04:54:36 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: unrecognized crash pattern.
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>
My guess is a race while restarting the language server --
From the restart history and the issue timestamp, it looks like the language server restarted as as a result of installation (or update). And the new language server session attempted to register the gopls.add_dependency command before the previous session completed unregistration of the command.