As mentioned in https://github.com/fatih/vim-go/issues/1932, vim-go has moved to a new version of gocode because of 1.10 and 1.11 incompatibilities, and YCM should too.
PR https://github.com/Valloric/ycmd/pull/1098 takes care of this.
I'll leave this up until the PR lands, then, to track and keep resubmissions down.
This has been merged into ycmd/master, closing PR
I was wrong. While this has landed in ycmd, YouCompleteMe is still broken.
@Valloric could you re-open?
We need to update the ycmd submodule.
Thanks, sorry for the churn.
What are the possible impacts of this before it is "fixed"?
I am running go 1.11, using MacVim as suggested, followed all the docs, etc and the auto-tiggers for go still don't seem to work.
A comment here mentions that that YouCompleteMe is "broken" due to this. <CTRL-Space> seems to work as does <C-x><C-o>. However, I should be able to type something like fmt. and start to see completions. That isn't happening.
Just go into YouCompleteMe/third_party/ycmd and pull the latest master if you need this fixed. With go 1.11 YCM is completely broken with an updated ycmd submodule. The <C-x><C-o> (or better said, omnifunc) is not something that YCM uses.
I'm certainly doing something wrong, or misunderstanding what's being said. Here's what I am doing:
:PluginClean command which deleted YCM from my system.:PluginInstall.~/.vim/bundle/YouCompleteMe/third_party/ycmd and did git checkout master && git pull~/.vim/bundle/YouCompleteMe and issued ./install.py --go-completer and I get the following error:can't load package: package github.com/mdempsky/gocode: no Go files in /Users/dnewman/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/go/src/github.com/mdempsky/gocode
Any idea as to what is up here?
Go back to YouCompleteMe/third_party/ycmd and do git submodule update --init --recursive. Then rebuild.
Thanks! This is working great now. Just to keep it easy, here are the steps.
Starting assumption:
install.py --go-completerOutcome:
Fix:
cd ~/.vim/bundle/YouCompleteMe/third_party/ycmd
git checkout master
git submodule update --init --recursive
install.py script:cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer --go-completer
NOTE: Your invocation of ./install.py may differ if you are enabling other completers.
Outcome:
You should be able to open a Go file and see autocomplete working.
Another note: Vundle's :PluginUpdate, if I remember correctly, will try to run git submodule update --init --recursive in YouCompleteMe directory and, since ycmd is a YouCompleteMe submodule, it will be reverted to a broken commit.
Most helpful comment
Thanks! This is working great now. Just to keep it easy, here are the steps.
Starting assumption:
install.py --go-completerOutcome:
Fix:
install.pyscript:NOTE: Your invocation of
./install.pymay differ if you are enabling other completers.Outcome:
You should be able to open a Go file and see autocomplete working.