-
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: temporarily revert the removal of Structured hoverkind #71879
Comments
Yes, I'd not seen this issue and just opened #71880 to track the revert. I'll close that as a dupe of this. We'll revert for [email protected], which should be released next week (ideally, on Monday). |
As described in fatih/vim-go#3701 (comment), we should revert this without a warning for now, since the setting is set internally to vim-go, and therefore users would not be able to avoid the warning. I will ask vim-go to stop using this setting, so that we can add a warning in [email protected], and finally actually remove this setting in [email protected]. |
Change https://go.dev/cl/651238 mentions this issue: |
As described in golang/go#71879, the removal of the experimental "Structured" hover kind unexpectedly broke vim-go. Reinstate support for this setting, with tests, so that we can proceed with its deprecation more cautiously. For golang/go#71879 Change-Id: I6d22852aa10126c84b66f4345fbbdcf4cefbd182 Reviewed-on: https://go-review.googlesource.com/c/tools/+/651238 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Alan Donovan <[email protected]> Auto-Submit: Robert Findley <[email protected]>
Change https://go.dev/cl/651239 mentions this issue: |
…red" hover kind As described in golang/go#71879, the removal of the experimental "Structured" hover kind unexpectedly broke vim-go. Reinstate support for this setting, with tests, so that we can proceed with its deprecation more cautiously. For golang/go#71879 Change-Id: I6d22852aa10126c84b66f4345fbbdcf4cefbd182 Reviewed-on: https://go-review.googlesource.com/c/tools/+/651238 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Alan Donovan <[email protected]> Auto-Submit: Robert Findley <[email protected]> (cherry picked from commit f2beb33) Reviewed-on: https://go-review.googlesource.com/c/tools/+/651239
This is released in [email protected].
|
Change https://go.dev/cl/651618 mentions this issue: |
In my haste to partially revert CL 635226 in 651238, I failed to add json struct tags. Add them back. For golang/go#71879 Change-Id: I45190cba5154eeed7b6a49db51d2a2a51999be7a Reviewed-on: https://go-review.googlesource.com/c/tools/+/651618 Auto-Submit: Robert Findley <[email protected]> Reviewed-by: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
Change https://go.dev/cl/651658 mentions this issue: |
…ags for hoverResult In my haste to partially revert CL 635226 in 651238, I failed to add json struct tags. Add them back. For golang/go#71879 Change-Id: I45190cba5154eeed7b6a49db51d2a2a51999be7a Reviewed-on: https://go-review.googlesource.com/c/tools/+/651618 Auto-Submit: Robert Findley <[email protected]> Reviewed-by: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> (cherry picked from commit 3d7c2e2) Reviewed-on: https://go-review.googlesource.com/c/tools/+/651658
This release fixes two bugs in the minmax algorithm of the modernize analyzer that caused it to generate incorrect fixes; and restores the experimental hoverKind=structured configuration setting that returned JSON output from Hover requests, as vim-go was relying on it (golang/go#71879).
gopls version
golang.org/x/tools/gopls v0.18.0
go env
What did you do?
Updated to gopls v0.18.0.
What did you see happen?
gopls v0.18.0 removed structured hover results, breaking vim-go. Vim-go has a few features that depended on the structured result:
:GoDoc
, hover balloon documentation, and:GoDocBrowser
all depended on that structure (and not all for the same reason).fatih/vim-go#3701 was created this morning, but only documents one of the issues that this change caused.
Is it possible to revert? If not, where can I find a clear definition of the data and its structure that each of the
hoverKind
values will return, especiallyFullDocumentation
?What did you expect to see?
Documentation
Editor and settings
Vim w/ vim-go
Logs
No response
The text was updated successfully, but these errors were encountered: