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: language features fail for first file opened in module's workspace #37276
Comments
Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here. |
Can you share the |
Oddly enough, I now cannot reproduce the issue in VS Code using 0.3.2; however, it is still reproducible
|
This does sound like a Sublime-specific issue to me, so I would suggest opening an issue on that repository. My immediate guess, based on a quick glance at this log, is that the issue is that the |
Great, will do. Thanks for taking a look! |
Thanks for filing the Sublime issue! I'll close this issue, but please feel free to re-open if the bug is determined to be in |
What version of Go are you using (
go version
)?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?
Using either VS Code with the Go extension, or Sublime with the LSP extension, I opened a directory containing a Go module, and opened one of the module's Go files. This file had none of the expected language server features working in any capacity.
Subsequently opened Go files are unaffected by this issue. Only the first file is affected, and remains affected no matter if the file is closed and opened at a later time.
This issue is not specific to any file, nor any Go module; it has affected every first file opened during a text editing session for every Go module's workspace.
Downgrading
gopls
to 0.3.0 resolves the issue.What did you expect to see?
Language server features working for the first opened Go file.
What did you see instead?
Language server features not working for the first opened Go file.
The text was updated successfully, but these errors were encountered: