-
-
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
GoInfo not working and always calls 'guru' instead of 'gopls' #2308
Comments
I'm not sure why you're seeing
edit: remove incorrect information |
Does #2311 resolve this for you? |
Not really. I see what you mean now, so the issue is that the message is showing as multiline but my info window is only one line tall, correct? I did the bundle update but I'm still not seeing the info. |
Did you update to the PR I linked, or did you just update to latest master? |
I think I only updated to the latest master. How can I update to this specific PR? I use the Vundle. |
I assume the vundle docs explain it. |
I can confirm that it fixes this problem. Thanks! |
What did you do? (required: The issue will be closed when not provided)
Run "GoInfo" in the vim
What did you expect to happen?
When I use GoInfo, vim-go uses gopls instead of guru to show the information of the method my cursor is on.
What happened instead?
There is no info showing. And vim-go calls guru instead of gopls.
I used let g:go_debug=['shell-commands'], and then check the messages every time I tried to run 'GoInfo', every time the message I saw is
vim-go: job command: ['/Users/kunli/Work/golang//bin/guru', '-tags', '', '-json', 'what', '/Users/kunli/Work/golang/src/github.com/stryd/cloud/backend/handler_activity.go:#39399']
Even though I set the go_info_mode to be
gopls
.Configuration (MUST fill this out):
let g:go_fmt_command = 'goimports' " vim-go
let g:go_def_mode = 'gopls' " vim-go
let g:go_auto_sameids = 1 " vim-go
let g:go_info_mode = 'gopls' " vim-go
let g:go_auto_type_info = 1 " vim-go
set updatetime=200 " Used for sameids and type_info from go-vim
vim-go version:
Latest
Vim version (first three lines from
:version
):VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 19 2019 12:07:03)
macOS version
Included patches: 1-950
Go version (
go version
):go version go1.12.4 darwin/amd64
Go environment
go env
Output:The text was updated successfully, but these errors were encountered: