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
After Release v0.45.1, every time I save a non .go file in my project (for example, a .json or Makefile) I receive the error Command 'gopls.package_symbols' failed: Error: no package metadata for file {filename}
Steps to reproduce the behavior:
Save any non .go file (for example a .json) inside a Go project.
Screenshots or recordings
Command 'gopls.package_symbols' failed: Error: no package metadata for file file:///{filepath}/{filename}.json.
The text was updated successfully, but these errors were encountered:
I had the same problem.
Solved it by switching "Go for Visual Studio Code" extension from pre-release version to release (v0.44.0).
I don't know if you want to stay on the pre-release version, but I had to get rid of those error messages somehow.
I had the same problem. Solved it by switching "Go for Visual Studio Code" extension from pre-release version to release (v0.44.0). I don't know if you want to stay on the pre-release version, but I had to get rid of those error messages somehow.
Yeah I had to leave the pre-release due this error.
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.-go1.23.6 darwin/arm64
gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
After Release v0.45.1, every time I save a non
.go
file in my project (for example, a.json
orMakefile
) I receive the errorCommand 'gopls.package_symbols' failed: Error: no package metadata for file {filename}
Steps to reproduce the behavior:
.go
file (for example a .json) inside a Go project.Screenshots or recordings
The text was updated successfully, but these errors were encountered: