-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
gopls v0.18.0 deprecated hoverKind=Structured #3701
Comments
I was just about to open exactly this same issue. I locally changed the option to |
This doesn't work for me. When I change the let l:config = {
\ 'buildFlags': [],
\ 'hoverKind': 'FullDocumentation',
\ } ... I get a JSON decoder error:
|
Following @bgarber , I did the same and it fixed the problem on my environment.
Source : https://github.com/golang/tools/blob/master/gopls/internal/settings/settings.go#L794 Change : golang/tools@8127761 |
Hi, removing this setting so hastily was our mistake as gopls maintainers. I'm going to add it back for [email protected], which we will in all likelihood release on Monday. In order to minimize disruption, I'm going to add it back without a warning in [email protected], so that your users don't get a popup. I would ask, however, that you do remove your usage of it, so that we can add a warning in [email protected], and remove it in [email protected]. Tracked in https://go.dev/issue/71879 Sorry for the breakage. |
Thank you, @findleyr; I appreciate the fast turnaround. I'll work to refactor vim-go to use |
We've cut a prerelease with the revert:
Could someone verify that this fixes vim-go? |
in the initial hover were json tags and now it's SingleLine instead of singleLine on the hoverResult struct: if i change that for the hover result it's working but the spelling might break other parts of vim-go ? Where it's required lowerCamelCase ? |
Oof, thank you for testing @matthiashapp, in my haste to fix, I overlooked the struct tags 🤦. I'll fix. |
Once more, if you don't mind. It's too late in the day to cut another prerelease, but you can install off the release branch:
Thanks again. |
The setting is now reinstated in [email protected]: https://github.com/golang/tools/releases/tag/gopls%2Fv0.18.1 |
gopls v0.18.1 fixes this. vim-go: fatih/vim-go#3701 gopls: https://go.dev/issue/71879 This reverts commit d0710fd.
gopls v0.18.0 just got released and deprecated the
hoverKind
valueStrctured
which vim-go uses:Can someone look into this which value should be used instead? If I understood the original deprecation issue right,
FullDocumentation
(which is the default) is recommended to use instead.Observation
:PluginUpdate
:GoUpdateBinaries
Looking into the vim-go repo, this deprecated setting is used at least once:
The text was updated successfully, but these errors were encountered: