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
Files with //line directives confuse gopls, for instance no hover returned, and no diagnostics generated.
In
//line a.y:1
package main
func main() {
var err error
err.Error()
}
hovering on Error returns nothing, but it hovers fine without the //line comment.
Likewise, in (the -- <name> -- headers say what the contents of are)
-- a.go --
package consts
const a = 1
-- b.go --
package consts
//line gen.go:5
const a = 2
no errors are generated for b.go as it stands (although the definition in a.go is described as the 'other' definition), while errors are generated correctly without the //line comment.
The text was updated successfully, but these errors were encountered:
gopherbot
added
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls
Issues related to the Go language server, gopls.
labels
Oct 15, 2020
go1.15.1 darwin/amd64
Files with //line directives confuse gopls, for instance no hover returned, and no diagnostics generated.
In
hovering on
Error
returns nothing, but it hovers fine without the//line
comment.Likewise, in (the
-- <name> --
headers say what the contents of are)no errors are generated for
b.go
as it stands (although the definition ina.go
is described as the 'other' definition), while errors are generated correctly without the//line
comment.The text was updated successfully, but these errors were encountered: