-
-
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
get info from gocode asynchronously #1697
Conversation
* Refactor autoload/go/complete.vim so that gocode will be called asynchronously to get type information in vim8. * Instead of writing the current buffer to disk and passing the filename, pass the current buffer to gocode via stdin. * Use go#util#Exec instead of go#util#System. * Return an empty list instead of nothing from s:gocodeCommand when gocode can't be found.
Codecov Report
@@ Coverage Diff @@
## master #1697 +/- ##
==========================================
- Coverage 19.7% 19.57% -0.14%
==========================================
Files 57 57
Lines 4735 4787 +52
==========================================
+ Hits 933 937 +4
- Misses 3802 3850 +48
Continue to review full report at Codecov.
|
I used this in the last few days, and It only seems to happen in larger more complicated files. I can't create an easily reproducible test cas; I noted a particular case earlier when I was working, but now that I return to it, it works fine :-/ But mostly it's in cases where you have something like:
And you try to edit/complete something on I'm not 100% sure that this branch is even at fault – perhaps I'm just more attentive to possible defects – and it hasn't happened very often (2 or 3 times in total). As far as I'm concerned it doesn't have to prevent merging this, but just wanted to note it. |
🤔 this PR actually changes very little on that code path, but there's one aspect of that code path that I've wondered if it's correct (though I should point out that it's not something that was altered here). That code path is the one place that uses |
I can verify that the garbage character issue is gone with this. Also I haven't seen any completion related issues yet, but will add here if I find anything (I also just use |
Hello Guys, i have this issue since few days :
each time i open a go file. it's doesn't appear if i put :
or using guru :
in my ~/.vimrc i'm using :
Any idea ? Regards, |
The version of Vim that you're using doesn't support the In the future, please create a new issue instead of commenting on a closed PR or issue; it will help other users and keeps your comment from getting lost. |
Thanks, you are right, this outdated version from ubuntu repository is at fault. It's working very well on version 1-1605. Do you want me to open an issue or PR to make it appears clearly ? |
No description provided.