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
{{ message }}
Repository navigation
x/tools/gopls: deprecate the "experimentalUseInvalidMetadata" setting #54180
Discovered while investigating #54147: with "experimentalUseInvalidMetadata" set, we may diagnose a package with invalid metadata, and not re-diagnose when new metadata arrives. This can lead to diagnostics which are stale until you begin typing again.
We could fix this by re-diagnosing after each metadata load, but more generally we should reconsider whether it is worth landing this feature:
Pros:
when the workspace is totally broken, gopls will continue to work
Cons:
though gopls will continue to work, it may have inconsistent or confusing state
users should generally fix broken workspaces before doing anything else
we really don't want users to have to restart gopls, so in all other respects we are trying to avoid places where gopls "remembers history"
changed the title [-]x/tools/gopls: reconsider the experimental feature to use invalid metadata[/-][+]x/tools/gopls: deprecate the "experimentalUseInvalidMetadata" setting[/+]on Sep 22, 2022
Activity
gopherbot commentedon Aug 3, 2022
Change https://go.dev/cl/420956 mentions this issue:
internal/lsp/cache: invalid packages should not be workspace packagesinternal/lsp/cache: invalid packages should not be workspace packages
findleyr commentedon Sep 22, 2022
CC @adonovan
Unless anyone objects, I propose that we remove this setting. We should avoid any cases where gopls' state is path-dependent.
[-]x/tools/gopls: reconsider the experimental feature to use invalid metadata[/-][+]x/tools/gopls: deprecate the "experimentalUseInvalidMetadata" setting[/+]gopherbot commentedon Sep 26, 2022
Change https://go.dev/cl/434640 mentions this issue:
gopls: deprecate three experimental featuresgopherbot commentedon Nov 18, 2022
Change https://go.dev/cl/452057 mentions this issue:
gopls/internal/lsp/cache: eliminate obsolete invalidation stepgopls/internal/lsp/cache: eliminate obsolete invalidation step
gopls: update to 0.11.0
gopls: update to 0.11.0
Bump golang.org/x/tools from 0.9.3 to 0.10.0 (#360)
⬆️ Bump golang.org/x/tools from 0.9.3 to 0.10.0 in /src (#3633)
chore(deps): Bump golang.org/x/tools from 0.9.3 to 0.10.0 in /package…
chore(deps): Bump golang.org/x/tools from 0.9.3 to 0.10.0 in /package…
build(deps): bump golang.org/x/tools from 0.9.3 to 0.10.0 (#122)
Merge #29
chore(deps): bump golang.org/x/tools from 0.9.3 to 0.10.0 in /tools (#…
build(deps): Bump golang.org/x/tools from 0.9.3 to 0.10.0 (#455)
gopls: deprecate three experimental features