Closed artivilla closed 4 years ago
This is actually an issue in the Go standard library, and it will be fixed in Go 1.15 (see https://golang.org/cl/229801). If you're interested in trying it out now, you can download Go from source (https://golang.org/doc/install/source) and rebuild gopls
with it. Otherwise, this fix will be released approximately 3 months from now (in keeping with Go's 6 month release cycle).
What version of Go, VS Code & VS Code Go extension are you using?
Run
go version
to get version of Gogo version go1.14.2 darwin/amd64
Run
code -v
orcode-insiders -v
to get version of VS Code or VS Code InsidersCode Insiders
Go Extension Nightly
Run
go env GOOS GOARCH
to get the operating system and processor architecture detailsdarwin amd64
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 thego.
or["go"]
prefixes.Describe the bug
Improve Error Messaging. When a pointer based type has all the interface methods defined, the messaging in the editor is incorrect.
Run the following error in the shared playground: https://play.golang.org/p/l7YETLSrYeL
Expected Error (shown in playground):
Actual Error from VS Nightly Code Editor: