-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
GOPACKAGESDRIVER with bzlmod breaks #3659
Comments
After I downgrade the |
UPDATEAfter carefully investigating the issue, I found that the problem appears to be related to the
The problems stem from the fact that VSCode only passes the "apparent name" to the driver. Update DetailsTo address these issues, I applied a patch to the Patch:
However, it's important to note that this patch is currently hard-coded and doesn't account for the old |
Assuming you're correct that this is specific to the bzlmod context, I think this is a more accurate description of the problem than what's written in #3604 comments. I am using bzlmod and also experiencing this issue, as described in my comment on #3604. |
Interesting, we do have logic that is supposed to handle this: https://github.com/bazelbuild/rules_go/blob/f64211a8687352323b973f9a1e6457a60478b061/go/tools/gopackagesdriver/BUILD.bazel#L36 Could you post the exact labels that would be correct and the ones that are emitted? Edit: Looks like ec5a27c could actually have made this worse? |
This is what I got:
|
This needs to be solved in Bazel. I will submit a PR and try to get it into 6.4.0. |
Thanks a lot! |
What version of rules_go are you using?
0.41.0
What version of gazelle are you using?
0.32.0
What version of Bazel are you using?
Does this issue reproduce with the latest releases of all the above?
Yes. All the above are the latest releases.
What operating system and processor architecture are you using?
OS: WSL Ubuntu-22.04 (Microsoft Windows 11 Home 10.0.22621 Build 22621)
Arch: amd64
Any other potentially useful information about your toolchain?
No. I just created a brand new project with local running Bazel.
What did you do?
MODULE.bazel
Editor
Follow the instructions from the Editor Setup section in the Wiki.
With the lines changed:
tools/gopackagesdriver.sh
.vscode/settings.json
What did you expect to see?
The errors gone in VSCode, and be able to interact with
gopls
.What did you see instead?
The error message is copied from the error notification:
(Manual line breaks, some of them might be wrong)
The text was updated successfully, but these errors were encountered: