Please complete these steps and check these boxes (by putting an x inside
the brackets) _before_ filing your issue:
vim --version.:YcmDebugInfo.:YcmToggleLogs command.install.py (or cmake/make/ninja) including its invocationThank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.
Provide a clear description of the problem, including the following key
questions:
:PluginUpdateInclude steps to reproduce here.
Include description of a minimal test case, including any actual code required
to reproduce the issue.
:PluginUpdate I got an error:> Include description of the expected behaviour.
* What actually happened?
> Include description of the observed behaviour, including actual output,
> screenshots, etc.
# Diagnostic data
## Output of `vim --version`
```VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 18 2019 03:49:48)
macOS version
Included patches: 1-2050
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl -farsi -mouse_sysmouse -tag_any_white
+arabic +file_in_path +mouse_urxvt -tcl
+autocmd +find_in_path +mouse_xterm +termguicolors
+autochdir +float +multi_byte +terminal
-autoservername +folding +multi_lang +terminfo
-balloon_eval -footer -mzscheme +termresponse
+balloon_eval_term +fork() +netbeans_intg +textobjects
-browse +gettext +num64 +textprop
++builtin_terms -hangul_input +packages +timers
+byte_offset +iconv +path_extra +title
+channel +insert_expand +perl -toolbar
+cindent +job +persistent_undo +user_commands
-clientserver +jumplist +postscript +vartabs
+clipboard +keymap +printer +vertsplit
+cmdline_compl +lambda +profile +virtualedit
+cmdline_hist +langmap -python +visual
+cmdline_info +libcall +python3 +visualextra
+comments +linebreak +quickfix +viminfo
+conceal +lispindent +reltime +vreplace
+cryptv +listcmds +rightleft +wildignore
+cscope +localmap +ruby +wildmenu
+cursorbind +lua +scrollbind +windows
+cursorshape +menu +signs +writebackup
+dialog_con +mksession +smartindent -X11
+diff +modify_fname -sound -xfontset
+digraphs +mouse +spell -xim
-dnd -mouseshape +startuptime -xpm
-ebcdic +mouse_dec +statusline -xsmp
+emacs_tags -mouse_gpm -sun_workshop -xterm_clipboard
+eval -mouse_jsbterm +syntax -xterm_save
+ex_extra +mouse_netterm +tag_binary
+extra_search +mouse_sgr -tag_old_static
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X -DMACOS_X_DARWIN -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/[email protected]/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -o vim -lncurses -liconv -lintl -framework AppKit -L/usr/local/opt/lua/lib -llua5.3 -mmacosx-version-min=10.14 -fstack-protector-strong -L/usr/local/lib -L/usr/local/Cellar/perl/5.30.0/lib/perl5/5.30.0/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc -L/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin -lpython3.7m -framework CoreFoundation -lruby.2.6
Place the output here, or a link to a gist.
YcmDebugInfoPrinting YouCompleteMe debug information...
-- Client logfile: /var/folders/dz/2rq020cn4mq2xmmb46z8jn440000gn/T/ycm_lrhn_3xe.log
-- Server Python interpreter: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
-- Server Python version: 2.7.16
-- Server has Clang support compiled in: True
-- Clang version: clang version 7.0.0 (tags/RELEASE_700/final)
-- No extra configuration file found
-- Python completer debug information:
-- Python interpreter: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
-- Python path: [u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', u'/System
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', u'/System/Library/F
rameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', u'/System/Libra
ry/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', u'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', u'/Library/Python/2.7/site
-packages', u'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', u'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC']
-- Python version: 2.7.16
-- Jedi version: 0.13.3
-- Parso version: 0.3.4
-- Server running at: http://127.0.0.1:61886
-- Server process ID: 13156
-- Server logfiles:
-- /var/folders/dz/2rq020cn4mq2xmmb46z8jn440000gn/T/ycmd_61886_stdout_90vu1i2l.log
-- /var/folders/dz/2rq020cn4mq2xmmb46z8jn440000gn/T/ycmd_61886_stderr_51ichm3f.log
Place the output here, or a link to a gist.
Add
let g:ycm_log_level = 'debug'to vimrc, restart Vim, reproduce the
issue, and include link here to a gist containing the entire logfiles for
ycm, ycmd and any completer logfiles listed by:YcmToggleLogs.
MacOS 10.15 (19A578c) Catalina
Xcode 11.0
Include system information here.
Include link to a gist containing the invocation and entire output of
install.pyif reporting an installation issue.
You need to do the following:
cd ~/.vim/bundle/YouCompleteMegit submodule sync --recursivegit submodule update --init --recursiveIf that _also_ throws an error, then:
cd third_party/ycmdgit submodule sync --recursivegit submodule update --init --recursiveWe changed the remote url for some submodules which Vundle (and, frankly, git) doesn't handle well.
Yeah... Sorry for this stupid question...
It's not a stupid question at all. I had this problem myself a number of times.
Also the git submodule sync --recursive can be done from YouCompleteMe directory, no need to descend into ycmd.
--recursive did it! Thank you!
Why doesn't YCM do a git submodule sync --recursive by default before the git submodule update --init --recursive?
Because YCM never touches its own git repository for obvious reasons
Most helpful comment
You need to do the following:
cd ~/.vim/bundle/YouCompleteMegit submodule sync --recursivegit submodule update --init --recursiveIf that _also_ throws an error, then:
cd third_party/ycmdgit submodule sync --recursivegit submodule update --init --recursiveWe changed the remote url for some submodules which Vundle (and, frankly, git) doesn't handle well.