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
$ go version
go version devel +8e0be05ec7 Sun Jan 19 14:04:09 2020 +0000 linux/amd64
$ go list -m golang.org/x/tools
golang.org/x/tools v0.0.0-20200121200311-d456b1cd8c86
$ go list -m golang.org/x/tools/gopls
golang.org/x/tools/gopls v0.1.8-0.20200121200311-d456b1cd8c86
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
The text was updated successfully, but these errors were encountered:
myitcv
added
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
gopls
Issues related to the Go language server, gopls.
labels
Jan 24, 2020
Yes, this is is coming from go/parser. A minimal repro can be found here: https://play.golang.org/p/ca24wvyr5Wl. This seems like an instance where go/parser's errors should be updated to match the compiler's. I'll change the issue title to reflect this.
stamblerre
changed the title
x/tools/gopls: misleading diagnostic for badly formed func literal
go/parser: bad error message for a badly formed func literal
Mar 12, 2020
stamblerre
removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls
Issues related to the Go language server, gopls.
labels
Mar 12, 2020
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
The diagnostic for the following file is misleading:
We get:
Contrast what we get from the compiler:
What did you expect to see?
A better diagnostic.
What did you see instead?
Per above
Marking as
gopls/v1.0.0
because this isn't critical forv0.3.0
.cc @stamblerre
FYI @leitzler
The text was updated successfully, but these errors were encountered: