x/tools/gopls: intellisense dropdown not working with log/slog package in VSCode #71866
Labels
BugReport
Issues describing a possible bug in the Go implementation.
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
gopls version
Build info
golang.org/x/tools/gopls v0.18.0
golang.org/x/tools/[email protected] h1:oBmnrmi0Uk7Ea+ZPK16BdcjnpEJX8ciBCSp9S90GULo=
github.com/BurntSushi/[email protected] h1:pxW6RcqyfI9/kWtOwnv/G+AzdKuy2ZrqINhenH4HyNs=
github.com/google/[email protected] h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
golang.org/x/exp/[email protected] h1:1xaZTydL5Gsg78QharTwKfA9FY9CZ1VQj6D/AZEvHR0=
golang.org/x/[email protected] h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM=
golang.org/x/[email protected] h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
golang.org/x/[email protected] h1:L2k9GUV2TpQKVRGMjN94qfUMgUwOFimSQ6gipyJIjKw=
golang.org/x/[email protected] h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
golang.org/x/[email protected] h1:4+it9JYqVd2wIAapscAb5mUAI1yHY0u4B4idYPigWeE=
golang.org/x/[email protected] h1:NPGnvPOTgnjBc9HTaUx+nj+EaUYxl5SJOWqaDYGaFYw=
honnef.co/go/[email protected] h1:4bH5o3b5ZULQ4UrBmP+63W9r7qIkqJClEA9ko5YKx+I=
mvdan.cc/[email protected] h1:bg91ttqXmi9y2xawvkuMXyvAA/1ZGJqYAEGjXuP0JXU=
mvdan.cc/xurls/[email protected] h1:lyBNOm8Wo71UknhUs4QTFUNNMyxy2JEIaKKo0RWOh+8=
go: go1.24.0
go env
What did you do?
Happened with both Go 1.23.6 installed via Arch package repository and Go 1.24.0 installed via go.dev instructions.
Open any project, start typing in
slog.*
where slog project used and imported.What did you see happen?
No intellisense display of available identifiers in
log/slog
package.What did you expect to see?
All identifiers being displayed. Happens with every other single Go package except
unsafe
(which even then exposes identifiers as "words"), which I suppose is expected.log
package intellisense works.Editor and settings
{
"workbench.sideBar.location": "right",
"workbench.colorTheme": "GitHub Dark High Contrast",
"explorer.confirmDelete": false,
"gopls":{
"verboseOutput": true,
},
}
Logs
The instructions to enable logging and the serve flag are unclear. I enabled verbose output:
The text was updated successfully, but these errors were encountered: