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
Please answer these questions before submitting your issue. Thanks!
What did you do?
In repository https://github.com/wingyplus/wire-tut. I have 2 InitializeEvent functions, one come from me write by my hand (di.go) and one generated from google/wire command.
When I ran gopls check ./di.go.
What did you expect to see?
No report anything because InitializeEvent in di.go has a wireinject build tag.
What did you see instead?
gopls report:
$ gopls check ./di.go
/Users/thanabodee/workspace/wire-tut/di.go:7:6-21: InitializeEvent redeclared in this block
This is because gopls does not very good at coping with build tags
we are tracking that in #29202 and although this is an interestingly different symptom I don't think it a different root cause.
Please answer these questions before submitting your issue. Thanks!
What did you do?
In repository https://github.com/wingyplus/wire-tut. I have 2
InitializeEvent
functions, one come from me write by my hand (di.go
) and one generated from google/wire command.When I ran
gopls check ./di.go
.What did you expect to see?
No report anything because
InitializeEvent
indi.go
has awireinject
build tag.What did you see instead?
gopls
report:Build info
Go info
The text was updated successfully, but these errors were encountered: