Skip to content
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: enable type error analyses #38212

stamblerre opened this issue Apr 2, 2020 · 1 comment

x/tools/gopls: enable type error analyses #38212

stamblerre opened this issue Apr 2, 2020 · 1 comment


Copy link

@stamblerre stamblerre commented Apr 2, 2020

Since these are fairly new analyzers, they will be disabled by default in gopls/v0.4.0 release. They should be enabled by gopls/v0.5.0.

/cc @ridersofrohan

@stamblerre stamblerre added this to the gopls/v0.5.0 milestone Apr 2, 2020
Copy link

@gopherbot gopherbot commented Apr 2, 2020

Change mentions this issue: internal/lsp: temporarily disable type error analyzers by default

gopherbot pushed a commit to golang/tools that referenced this issue Apr 2, 2020
If we release gopls/v0.4.0 soon, we should keep these new analyzers off
by default. They were just merged, so they haven't been used enough to
be enabled, I think. We'll turn them on by default for gopls/v0.5.0.

Also, ended up creating a helper function to check if analysis has been
abled (which fixed a small bug in FindAnalysisError), and another helper
function to enable all analyses for testing purposes.

Updates golang/go#38212

Change-Id: I5ee94b3582dfc0863978650fc6ce51bfa0606c13
Run-TryBot: Rebecca Stambler <>
TryBot-Result: Gobot Gobot <>
Reviewed-by: Rohan Challa <>
@stamblerre stamblerre closed this Apr 28, 2020
@stamblerre stamblerre modified the milestones: gopls/v0.5.0, gopls/v0.4.1 May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.