-
Notifications
You must be signed in to change notification settings - Fork 88
Go1.11 Hangs when -source
flag is provided
#67
Comments
Do you have your $GOROOT set? I've noticed it works fine when I set a GOROOT, but I am able to reproduce this when I don't. |
Another question: Are you using a developer version of Go? I found that if I synced to before this change (golang/go@9f78aa7), then I had no problems, even if my GOROOT isn't set. Temporarily syncing to Go 1.11 or before that change may fix the problem. Edit: The fix is to build |
Hey @stamblerre ! Thanks for the tips. I have actually recompiled every thing with go1.11 and I still get this issue. But I haven't tried the $GOROOT thing, I will give the a go :D I originally had the classic Will report back with my GOROOT findings ! I do compile Go from source, so I could very well be making things hard for myself 😂 EDIT: My $GOROOT is set appropriately :( |
Hm, so I would recommend syncing to head on the Go source in your $GOROOT and then re-building |
So I just:
And then I get this: 🤔 It doesn't stall anymore at least. Just still don't get any suggestions. |
The Do you mind running |
@stamblerre good shout! I actually get suggestions shown in the debug output:
🤔 does this mean the problem is likely further upstream? Somewhere between gocode and vim? |
Did you trigger the autocompletion through Vim? It seems strange that Vim wouldn't show these results. What other settings do you have for gocode in Vim? |
None that is the weirdest thing. The only setting that triggers the lack of a suggestion in vim is the |
Hm, so sounds like this must be a https://github.com/fatih/vim-go bug. I'd recommend filing your case there and linking this discussion there. I'm going to close this for now. |
Thank you for your time 🙇 |
See: fatih/vim-go#2001
I have the same issues here as @pavannaganna and I have an almost identical setup (r.e. Go version and OS).
For me it actually hangs and gives 0 suggestions. The only fix being to turn off the source flag via the
g:go_gocode_propose_source = 0
.I only raise this issue as prior to moving to go1.11 I never even knew this option existed and now I depend on it. Otherwise, the hang up talking to gocode constantly messes up my vim buffer.
The text was updated successfully, but these errors were encountered: