-
-
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: add support for experimental gocode #1988
Conversation
@bhcleek I'm out of town for one week, I'll try to debug it once I'm back. But if you have some spare times, you can also try it out (there is not much code). I posted the instructions. I think it might be due to the Unix socket name, which conflicts when |
@fatih, I'm also happy to take a look at this. It should be pretty similar to the change I made for VSCode. Thank you for starting it off! |
@fatih, I started looking at this, and it seems to be working ok for me. I don't use Vim often, so I may be making a mistake, but I basically tested it out by starting "gocode -s -debug" and "gocode-gomod -s -debug" and then coding in Vim in one $GOPATH directory and a different directory with a go.mod file. It seemed like the completions were being directed to the right version of gocode in both cases. The only thing I did notice was that to trigger gocode I had to enter the "C-x C-o" keybinding, whereas there were a few times when autocompletions just popped up on my screen. I would attribute this to some incorrect Vim setting on my part, but it did seem to be ~20% of the time those completions appeared, so I wonder if that's related? |
@fatih, overall this seems to work really well. One other thing to note, though: it's probably a good idea to also disable Like you and @stamblerre , I did see some instances where autocompletion couldn't find any candidates. It seemed to miss when it all exported identifiers from a package should have been returned (e.g. trying to autocomplete @stamblerre you should always have to use For any readers that may be concerned about running |
Paul Jolly shared the following notes:
|
Did Paul provide any expectations for how long |
No specific timelines from the tools team for now, no. |
Thanks, @myitcv. Fatih is going to put us in touch next week, and I'll be sure to have reviewed the docs by then. |
WIP. Somehow
gocode-gomod
only returns %20 of the time the candidates. To test it you can usegomodifytags
repo. First pen gocode-gomod in debug mode to see that it doesn't return any candidates:Clone gomodifytags and play around:
This doesn't work always, not sure why.
For more information see: microsoft/vscode-go#1932