-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
gopls does not support file suffixes #31499
Comments
Using build tags like |
Files in go only accept a single GOOS suffix, so that filename is equivalent to having the build tag |
That doesn't seem like desirable behavior. It's not because I'm developing on Mac that I'm also deploying on Mac.
I could certainly see it not being a high priority but this is an open-source project, you could leave the bug open and mark it as welcome for contributions or something. Closing a ticket is saying "we're not doing this" rather than "this isn't a priority right now". |
Sorry, I forgot to also add a link to the other bug, making gopls work for other build tag combinations is already being tracked in #29202 |
Ahh perfect, thank you! |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I'm using the latest version of gopls, which has the issue.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Opened a file:
virtualenvironment_darwin_windows_test.go
and triggered code completions (using vscode)What did you expect to see?
Code completions
What did you see instead?
Nothing. The error log showed:
The text was updated successfully, but these errors were encountered: