-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/gopls: autocomplete - unstoppable import #54296
Comments
Woah. I've never seen anything like that before. I'm not sure what mechanism would even cause a loop like that: perhaps some interaction with auto-saving in vs code. Needless to say, we'd really like to get to the bottom of this. If you could help us investigate it would be extremely helpful. To start, are you able to capture rpc logs for a minimal repro? |
BTW, when I initially read the issue, I thought you said "It happens since 0.8.4" (which is a recent gopls version), but you said It happens since 1.18.4, which is a recent go version. Are you sure this started happening when you updated Go? I would be very surprised if that were the case. |
Could you also please share your vscode settings.json, and whether or not you have any other extensions installed that may format Go files? |
Putting this in the v0.10.0 milestone as given more information we'd like to fix this bug expediently. However, since we can't repro it will be very hard for us to fix this without more information. |
The issue is gone after vscode v1.70. Can still reproduce in the older version.
|
If the issue is resolved by a vscode update, that points to bad interaction of gopls edits with other vs code edits. Is it reliably reproducible with the older version of vs code? |
Thanks for confirming. I think this is probably a VS Code issue, as AFAIK there's nothing in gopls that would lead to this behavior. Please reopen if this is reproducible at the latest VS Code version. |
What version of Go are you using (
go version
)?It happens since
1.18.4
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Simply using more than one dependency.
What did you expect to see?
Not freezing vscode
What did you see instead?
gopls
keep importing the same packagesThe text was updated successfully, but these errors were encountered: