You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest releases of all the above?
I believe so.
What operating system and processor architecture are you using?
linux/amd64
Any other potentially useful information about your toolchain?
Remote caching
What did you do?
Use gopackagesdriver with Go 1.23.3 + VS Code
What did you expect to see?
Type checking & hints to work properly for VS Code
What did you see instead?
Errors for all standard library imports, saying that the go/packages driver was unable to load the package, and that there is missing metadata. As well, inside of the gopls console, the following logs are visible:
We've internally forked the gopackagesdriver at @devzero-inc to fix this. It turns out that it's just as easy as setting CompiledGoFiles = GoFiles for all standard library imports. I've also taken the liberty to go ahead and move the driver to using the official driver structs - as called out by @sluongng in #3962. I'm currently waiting on approval to upstream these fixes, but thought I might make an issue to track this and bring it to everyone's attention.
The text was updated successfully, but these errors were encountered:
What version of rules_go are you using?
0.51.0-rc1 (a985583)
What version of gazelle are you using?
0.37.0
What version of Bazel are you using?
7.4.1
Does this issue reproduce with the latest releases of all the above?
I believe so.
What operating system and processor architecture are you using?
linux/amd64
Any other potentially useful information about your toolchain?
Remote caching
What did you do?
Use gopackagesdriver with Go 1.23.3 + VS Code
What did you expect to see?
Type checking & hints to work properly for VS Code
What did you see instead?
Errors for all standard library imports, saying that the go/packages driver was unable to load the package, and that there is missing metadata. As well, inside of the gopls console, the following logs are visible:
We've internally forked the gopackagesdriver at @devzero-inc to fix this. It turns out that it's just as easy as setting
CompiledGoFiles = GoFiles
for all standard library imports. I've also taken the liberty to go ahead and move the driver to using the official driver structs - as called out by @sluongng in #3962. I'm currently waiting on approval to upstream these fixes, but thought I might make an issue to track this and bring it to everyone's attention.The text was updated successfully, but these errors were encountered: