-
-
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
gocode: switch to https://github.com/mdempsky/gocode #1853
Conversation
Continuation of #1851 |
@fatih I can't get this to work at all. I never get autocompletion results and type info is never displayed when Without the As a reminder to myself (and anyone else that tests): when testing, it's important to make sure to kill any running gocode processes before trying the other gocode fork. With nsf/gocode, the command is Here's the basic test procedure:
|
I'm getting inconsistent results. Sometimes autocomplete with mdempsky/gocode works, and sometimes it doesn't; I'll try to create some reproducible failures in a simple file. |
The problem I was experiencing was that I hadn't done Without the I see four possibilities to resolve these concerns:
Technically, this PR lgtm, but I don't think we should merge it due to the usability concerns. |
I see that I could live with that if the author (nfs) had any intentions to fix the issue, but it's not. If we go this way, we'll end up having a crippled, not maintained autocompletion daemon. It will hurt more in the long term. I totally understand that missing autobuild or other features sucks, but at least the project is active. The Go team also actively works on improving the current loaders and tools. Which means things like It's a double edged sword, but I think it should be merged because nfs/gocode is broken, doesn't work and going forward will be not fixed in any case. |
Let's merge it then and deal with the problems it introduces. Before you do that, though, I only have one quick question: have you tried running the nsf/gocode server with the |
It's weird. After installing |
I am very glad to have found this thread. I want to share some of my findings from the Go plugin to VS Code's perspective
In conclusion, I do wish we had a unified solution here, but there isnt seem to be any. I am gate crashing this thread in hopes of being notified of further discussions in this space. |
Although we didn't see performance issues specifically related to
Yes, the |
FWIW, I've had to switch to |
@joshuarubin thank you for the tip. We've been discussing the work that needs to be done to vim-go to support modules. |
I'm currently experiencing a severe slowdown in performance from using For now I've disabled autobuild, otherwise gocode has become completely unusable for me. |
Builtins are now supported again, so I've added that option back in. The source mode is slow on big projects, but is easier to work with, because packages don't have to be installed manually. I've added an option to use it source mode, but it's disabled by default so that users can opt-in. |
@fatih Given that nsf/gocode panics on Go 1.11 packages due to changes in the export format, I think it's time to merge this. WDYT? |
nsf/gocode is not working well with Go 1.10. I just encountered it myself again. The author of original gocode also states and recommends the mdempsky/gocode fork over nsf/gocode: https://github.com/nsf/gocode#an-autocompletion-daemon-for-the-go-programming-language We actually [moved once](#1814), but because we didn't removed the obsolote settings, we weren't prepared for issues that were [reported](#1817), and hence [reverted it back](#1823) This PR also removes all settings. The reason is that the new gocode doesn't support settings anymore. The author decided not the support it. * For `autobuild`, this was removed because the author believe it's not worth tackling it inside `gocode`: mdempsky/gocode#13 * For `propose builtins`, this is actually still supported but disabled in the source code, we need to add it back again in the future: mdempsky/gocode@787cfae * For `unimported packages`: this was just removed and I couldn't find upcoming plans for it Going forward this package seems to be more stable and is a better bet. Most important, as I stated nfs/gocode is not 1.10 compatible and the author has no intentions to fix it.
lgtm @bhcleek let's do it. nfs is a dead end. There is not much we can do here as we know. Let's continue with mdempsky's fork. |
awesome! Thats 3 out of 3. Now vim-go, go-plus and vscode-go all use mdempsky's fork. Meaning we all will see the same issues and can look into finding solutions. |
nsf/gocode is not working well with Go 1.10. I just encountered it
myself again. The author of original gocode also states and recommends
the mdempsky/gocode fork over nsf/gocode:
https://github.com/nsf/gocode#an-autocompletion-daemon-for-the-go-programming-language
We actually moved once, but
because we didn't removed the obsolote settings, we weren't prepared for
issues that were
reported, and hence
reverted it back
This PR also removes all settings. The reason is that the new gocode
doesn't support settings anymore. The author decided not the support it.
autobuild
, this was removed because the author believe it's notworth tackling it inside
gocode
: auto install doesn't always work mdempsky/gocode#13propose builtins
, this is actually still supported but disabled inthe source code, we need to add it back again in the future:
mdempsky/gocode@787cfae
unimported packages
: this was just removed and I couldn't findupcoming plans for it
Going forward this package seems to be more stable and is a better bet.
Most important, as I stated nfs/gocode is not 1.10 compatible and the
author has no intentions to fix it.