-
-
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
Use visualfc/gocode #2134
Use visualfc/gocode #2134
Conversation
There are multiple versions of gocode now - the original nsf/gocode but it's deprecated in favor of mdempsky/gocode. The latter is not maintained anymore and doesn't support modules so there are multiple versions of gocode with support for modules - stamblerre/gocode and visualfc/gocode. The stamblerre was used as a separate binary gocode-gomod alas it's not working all the time (see for example end of the discussion microsoft/vscode-go#1932). Meanwhile, visualfc/gocode is working great both for GOPATH code and modules code so there is no need to support 2 binaries. In these changes we switch to visualfc/gocode, remove stamblerre/gocode version and also remove unnecessary choise of binary. Fixes #1906.
Thank you for contributing. There's more changes necessary, though, than just simply swapping out the binaries, because @stamblerre can you weigh in on the concerns about stamblerre/gocode? |
CI Test failuresI was trying to investigate on why completion test failed but had no luck - I couldn't trace the invocation of Also, it would be great to write tests for completion with go modules enabled (outside of GOPATH) because now I see the Also also I have no clue why debug_test.vim failed in neovim environment (working in other) but as far as I can it is currently broken on master so I guess we can ignore it here. |
Regarding stamblerre/gocode I couldn't even see the invocation of |
I can't speak to why gocode-gomod wouldn't be invoked from Vim, but stamblerre/gocode should work for |
@stamblerre I was just wondering if the problems that @dzeban mentioned with stamblerre/gocode are real and/or if they're still a problem. I'm working on the golsp integration for vim-go, and I'm not concerned about having two binaries. If |
@bhcleek: The only potential issue with stamblerre/gocode is that it's slower in $GOPATH mode, but that's solved by having the other binary. What other problems are you referring to? |
|
Completion for unsaved imports has worked since stamblerre/gocode#21, which I think is the issue discussed in that conversation. |
Ok, it seems that something is utterly broken on my side as now completion doesn't work at all. I'm closing this and try to investigate on my own. Sorry for bothering. |
There are multiple versions of gocode now - the original nsf/gocode but
it's deprecated in favor of mdempsky/gocode. The latter is not
maintained anymore and doesn't support modules so there are multiple
versions of gocode with support for modules - stamblerre/gocode and
visualfc/gocode. The stamblerre was used as a separate binary
gocode-gomod alas it's not working all the time (see for example end of
the discussion microsoft/vscode-go#1932).
Meanwhile, visualfc/gocode is working great both for GOPATH code and modules
code so there is no need to support 2 binaries.
In these changes we switch to visualfc/gocode, remove stamblerre/gocode
version and also remove the unnecessary choice of binary.
ref: #1906.