ycm-core / YouCompleteMe

A code-completion engine for Vim
http://ycm-core.github.io/YouCompleteMe/
GNU General Public License v3.0
25.44k stars 2.81k forks source link

Vim startup error #2549

Closed 0x62ash closed 7 years ago

0x62ash commented 7 years ago

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside the brackets) before filing your issue:

Issue Details

Today I updated YouCompleteMe with git submodule update --recursive --remote and got error on vim startup:

Error detected while processing function youcompleteme#Enable[5]..<SNR>96_SetUpPython:
line   39:
WARNING: No Jinja2 template support. Skipping tests.
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Enable[5]..<SNR>96_SetUpPython:
line   39:
WARNING: No Mako template support. Skipping tests.
Press ENTER or type command to continue
/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/bottle/test/__init__.pyc     

git update log:

$ git submodule update --recursive --remote                                                                                                                                                                                          [16:28:16]
Submodule path 'third_party/requests-futures': checked out '37ed6306650e7d2a9f8daa029e3bb0ef7e1f8f42'
Submodule path 'third_party/ycmd': checked out 'e17bcee8aafa0842e5cbc2a8d3d558412cbd3d4b'
Submodule path 'third_party/ycmd/third_party/JediHTTP/vendor/bottle': checked out '5a6fc77c9c57501b08e5b4f9161ae07d277effa9'
Submodule path 'third_party/ycmd/third_party/JediHTTP/vendor/jedi': checked out '68c6f8dd0329fce5682bb0d3a5e3e8bf6453ef9d'
Submodule path 'third_party/ycmd/third_party/JediHTTP/vendor/waitress': checked out '76b34b8411cc84ef808f4ab266271bf6a77a1071'
Submodule path 'third_party/ycmd/third_party/OmniSharpServer/NRefactory': checked out 'cbb7fdc0dbf451cfbedde41238f2cd49ac7b1e06'
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), done.
From https://github.com/jbevain/cecil
   4a27a0c..7f2ea29  master     -> origin/master
Submodule path 'third_party/ycmd/third_party/OmniSharpServer/cecil': checked out '7f2ea29930f3d7ea771411eff4a23c9f7c18c272'
Submodule path 'third_party/ycmd/third_party/bottle': checked out '5a6fc77c9c57501b08e5b4f9161ae07d277effa9'
Submodule path 'third_party/ycmd/third_party/frozendict': checked out 'c5d16bafcca7b72ff3e8f40d3a9081e4c9233f1b'
remote: Counting objects: 15, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 15 (delta 4), reused 3 (delta 3), pack-reused 2
Unpacking objects: 100% (15/15), done.
From https://github.com/nsf/gocode
   72aad91..f54790e  master     -> origin/master
Submodule path 'third_party/ycmd/third_party/gocode': checked out 'f54790e5d4386b60b80d0c6f9e59db345839d7cc'
Submodule path 'third_party/ycmd/third_party/godef': checked out 'f90a99664522cad305e072e594a262ae1fcdd256'
Submodule path 'third_party/ycmd/third_party/python-future': checked out 'ecf112163ce9aaa7715c1d777a79e1c66d509e8f'
Submodule path 'third_party/ycmd/third_party/racerd': checked out 'e3f3ff010fce2c67195750d9a6a669ffb3c2ac5f'
Submodule path 'third_party/ycmd/third_party/requests': checked out 'd6f4818c0b40bc6c00433c013b7daaea83b2cd51'
Submodule path 'third_party/ycmd/third_party/waitress': checked out '76b34b8411cc84ef808f4ab266271bf6a77a1071'

Started vim without errors

Include description of the observed behaviour, including actual output, screenshots, etc.

Diagnostic data

$ vim --version                                                                                                                                                                                                                     [16:37:58]
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 16 2017 04:51:36)
MacOS X (unix) version
Included patches: 1-329
Compiled by travis@Traviss-Mac-592.local
Huge version with MacVim GUI.  Features included (+) or not (-):
+acl             +find_in_path    -mouse_sysmouse  -tag_any_white
+arabic          +float           +mouse_urxvt     -tcl
+autocmd         +folding         +mouse_xterm     +termguicolors
+balloon_eval    -footer          +multi_byte      +terminfo
+browse          +fork()          +multi_lang      +termresponse
++builtin_terms  +fullscreen      -mzscheme        +textobjects
+byte_offset     -gettext         +netbeans_intg   +timers
+channel         -hangul_input    +num64           +title
+cindent         +iconv           +odbeditor       +toolbar
+clientserver    +insert_expand   +packages        +transparency
+clipboard       +job             +path_extra      +user_commands
+cmdline_compl   +jumplist        +perl/dyn        +vertsplit
+cmdline_hist    +keymap          +persistent_undo +virtualedit
+cmdline_info    +lambda          +postscript      +visual
+comments        +langmap         +printer         +visualextra
+conceal         +libcall         +profile         +viminfo
+cryptv          +linebreak       +python/dyn      +vreplace
+cscope          +lispindent      +python3/dyn     +wildignore
+cursorbind      +listcmds        +quickfix        +wildmenu
+cursorshape     +localmap        +reltime         +windows
+dialog_con_gui  +lua/dyn         +rightleft       +writebackup
+diff            +menu            +ruby/dyn        -X11
+digraphs        +mksession       +scrollbind      -xfontset
+dnd             +modify_fname    +signs           +xim
-ebcdic          +mouse           +smartindent     -xpm
+emacs_tags      +mouseshape      +startuptime     -xsmp
+eval            +mouse_dec       +statusline      -xterm_clipboard
+ex_extra        -mouse_gpm       -sun_workshop    -xterm_save
+extra_search    -mouse_jsbterm   +syntax
+farsi           +mouse_netterm   +tag_binary
+file_in_path    +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"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang   -L. -fstack-protector -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib  -L. -fstack-protector -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib   -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon       -lm  -lncurses -liconv -framework Cocoa   -fstack-protector  -L/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE

Output of YcmDebugInfo

:YcmDebugInfo
Printing YouCompleteMe debug information...
-- Client logfile: /var/folders/s4/hsxd9s550pgb9xh0c7f33rc80000gn/T/ycm__TOG7B.log
-- Server errored, no debug info from server
-- Server running at: http://127.0.0.1:59986
-- Server process ID: 78797
-- Server logfiles:
--   /var/folders/s4/hsxd9s550pgb9xh0c7f33rc80000gn/T/ycmd_59986_stdout_iNKfKZ.log
--   /var/folders/s4/hsxd9s550pgb9xh0c7f33rc80000gn/T/ycmd_59986_stderr__eow22.log

Contents of YCM, ycmd and completion engine logfiles

2017-02-19 16:41:37,683 - ERROR - Error while handling server response
Traceback (most recent call last):
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 196, in HandleServerException
    yield
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/debug_info_request.py", line 39, in Start
    self._response = self.PostDataToHandler( request_data, 'debug_info' )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 84, in PostDataToHandler
    timeout ) )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 163, in JsonFromFuture
    _ValidateResponseObject( response )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 239, in _ValidateResponseObject
    their_hmac = ToBytes( b64decode( response.headers[ _HMAC_HEADER ] ) )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/requests/requests/structures.py", line 54, in __getitem__
    return self._store[key.lower()][1]
KeyError: u'x-ycm-hmac'
2017-02-19 16:41:37,847 - ERROR - Error while handling server response
Traceback (most recent call last):
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 196, in HandleServerException
    yield
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/youcompleteme.py", line 350, in ServerBecomesReady
    'ready' )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 74, in GetDataFromHandler
    timeout ) )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 163, in JsonFromFuture
    _ValidateResponseObject( response )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 239, in _ValidateResponseObject
    their_hmac = ToBytes( b64decode( response.headers[ _HMAC_HEADER ] ) )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/requests/requests/structures.py", line 54, in __getitem__
    return self._store[key.lower()][1]
KeyError: u'x-ycm-hmac'
2017-02-19 16:41:37,852 - ERROR - Error while handling server response
Traceback (most recent call last):
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 196, in HandleServerException
    yield
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/completer_available_request.py", line 42, in Start
    'semantic_completion_available' )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 84, in PostDataToHandler
    timeout ) )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 163, in JsonFromFuture
    _ValidateResponseObject( response )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 239, in _ValidateResponseObject
    their_hmac = ToBytes( b64decode( response.headers[ _HMAC_HEADER ] ) )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/requests/requests/structures.py", line 54, in __getitem__
    return self._store[key.lower()][1]
KeyError: u'x-ycm-hmac'
<h1>Critical error while processing request: /semantic_completion_available</h1>2017-02-19 16:43:05,827 - INFO - Received debug info request
2017-02-19 16:43:05,828 - ERROR - No semantic completer exists for filetypes: [u'']
Traceback (most recent call last):
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/handlers.py", line 243, in DebugInfo
    request_data ).DebugInfo( request_data )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/handlers.py", line 290, in _GetCompleterForRequestData
    return _server_state.GetFiletypeCompleter( request_data[ 'filetypes' ] )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 90, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'']
<h1>Critical error while processing request: /debug_info</h1>2017-02-19 16:43:11,282 - INFO - Received debug info request
2017-02-19 16:43:11,282 - ERROR - No semantic completer exists for filetypes: [u'']
Traceback (most recent call last):
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/handlers.py", line 243, in DebugInfo
    request_data ).DebugInfo( request_data )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/handlers.py", line 290, in _GetCompleterForRequestData
    return _server_state.GetFiletypeCompleter( request_data[ 'filetypes' ] )
  File "/Users/bash/.dotfiles/vim/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 90, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'']
<h1>Critical error while processing request: /debug_info</h1>

OS version, distribution, etc.

macOS 10.12.3

0x62ash commented 7 years ago

Sorry, misuse of git submodules