-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/gopls: didConfigurationChange does not trigger recalculation of diagnostics #35548
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
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.
Milestone
Comments
myitcv
added a commit
to govim/govim
that referenced
this issue
Nov 25, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR.
myitcv
added a commit
to govim/govim
that referenced
this issue
Nov 25, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Nov 25, 2019
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Nov 25, 2019
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Nov 26, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Nov 26, 2019
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Nov 27, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Nov 27, 2019
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 2, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 2, 2019
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 2, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
Change https://golang.org/cl/209418 mentions this issue: |
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 5, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 5, 2019
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 7, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 7, 2019
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 8, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 8, 2019
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 9, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 9, 2019
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 9, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 16, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 16, 2019
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 16, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 16, 2019
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 20, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Dec 20, 2019
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to myitcvforks/govim
that referenced
this issue
Dec 22, 2019
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes govim#555
myitcv
added a commit
to myitcvforks/govim
that referenced
this issue
Dec 22, 2019
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 23, 2020
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 23, 2020
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 26, 2020
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 26, 2020
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 26, 2020
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 26, 2020
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 26, 2020
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 27, 2020
gopls can be configured with an environment, an environment which is passed to go/packages. For example, setting GOOS and GOARCH, or setting GOFLAGS=-tags=other to set a build tag. Therefore we define a govim config key, "GoplsEnv", for setting this environment. For example: govim#config#Set("GoplsEnv", {"GOFLAGS": "-mod=readonly"}) As part of this add a test that verifies the behaviour of the above setting. Setting of build tags does not current work; that is blocked on golang/go#35548 and will be tested in a follow up PR. Fixes #555
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 27, 2020
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 28, 2020
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 28, 2020
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 29, 2020
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 30, 2020
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 30, 2020
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Jan 30, 2020
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Feb 1, 2020
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Feb 1, 2020
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
myitcv
added a commit
to govim/govim
that referenced
this issue
Feb 10, 2020
We currently support the setting of GOFLAGS with values like -mod=readonly. But because of golang/go#35548 have been unable to supported (in a tested way) the setting of build tags as part of GOFLAGS. Add such a test to verify the gopls fix works.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
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.
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?
govim/govim#583 introduces support in
govim
to set the"env"
configuration that is used bygopls
. It builds on thedidConfigurationChange
support added in https://go-review.googlesource.com/c/tools/+/206148.The test added as part of govim/govim#583 aims to change the environment variable
GOFLAGS
whilstgovim
andgopls
are running in order to verify that diagnostics etc update accordingly.The files involved in the test are
main.go
:and
other.go
:govim
(and hencegopls
) is initially started with no environment. Hence we expect to receive the diagnostic equivalent to:We receive this diagnostic so all is good.
Then we change the
gopls
environment, settingGOFLAGS=-tags=other
. At this point we wait to receive updated diagnostics to verify that there are no longer any diagnostics formain.go
(because the constraint inother.go
is now satisfied)However we do not receive any updated diagnostics, and hence the
govim
test fails.gopls
log as follows:gopls.log
What did you expect to see?
Updated diagnostics to be sent when config is changed that might influence that set of diagnostics.
What did you see instead?
No update in diagnostics. Similarly I do not see
staticcheck
analyses being run if I change thestaticcheck
config from off to on.cc @stamblerre @ianthehat
The text was updated successfully, but these errors were encountered: