-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls: errors with non-existent directory in a multi-folder workspace #41255
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
Comments
In this case, does |
It does seem to work. But I remember I had an issue with it also not working, but that might have been caused by something else as I'm not currently able to reproduce it not working. If I'll manage to reproduce a case where this specifically causes something to not work, I'll update here. |
I just had a workspace where I had a missing folder and gopls will not respond to changes to any go file and refresh build errors when that happened. Though that can always be VS Code itself or gopls bugging out for an unrelated reason. Using gopls 0.5.1 and VS Code 1.50.0. |
Thank you for the update, but unfortunately it's difficult to investigate without a log or a concrete repro case. Instructions on how to capture a log can be found here: https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md#capturing-logs. |
Closing, as there has not been any activity on this issue for over a month. |
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?
What did you expect to see?
It should just ignore that folder. It's common to end up in a situation like that when working on multiple branches.
A workaround for now is to create that directory, leaving it empty. But that has to be done again from time to time when moving between branches.
What did you see instead?
It errors.
The text was updated successfully, but these errors were encountered: