ycm-core / YouCompleteMe

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

while YcmServer start, Ycm posts request with filetypes of [""]. and YcmServer shutdown. #3517

Closed bbqz007 closed 5 years ago

bbqz007 commented 5 years ago

i compile ycm with --clang-completer --core-tests, and there is no error. but it can not work as a plugin to vim8.

the debug info shows: 2019-10-27 11:46:36,923 - DEBUG - GET b'http://127.0.0.1:49981/ready' {'content-type': 'application/json', 'x-ycm-hmac': b'UBLibtYL6lr8l/+56MnQBuGuZTkxExyH8su98O0f4E0='} 2019-10-27 11:46:36,932 - DEBUG - RX: True 2019-10-27 11:46:39,309 - DEBUG - POST b'http://127.0.0.1:49981/debug_info' {'content-type': 'application/json', 'x-ycm-hmac': b'+ZPAeDrHE/v7zCzPE/Ac9z5T+tT1bZTJuYdSNgtNw/o='} b'{"filepath": "/opt/z/pscp/vim8/test.cpp", "line_num": 1, "column_num": 1, "working_dir": "/opt/z/pscp/vim8", "file_data": {"/opt/z/pscp/vim8/test.cpp": {"contents": "\n", "filetypes": [""]}}}' 2019-10-27 11:46:39,340 - DEBUG - RX: {'python': {'executable': '/bin/python3', 'version': '3.6.8'}, 'clang': {'has_support': True, 'version': 'clang version 9.0.0 (tags/RELEASE_900/final)'}, 'extra_conf': {'path': '/opt/z/pscp/YouCompleteMe/third_party/ycmd/.ycm_extra_conf.py', 'is_loaded': True}, 'completer': None} 2019-10-27 11:46:41,561 - DEBUG - POST b'http://127.0.0.1:49981/run_completer_command' {'content-type': 'application/json', 'x-ycm-hmac': b'lEvZncjgGwbWwHZU3OzyL8pvDpb2KloPNnxlZf8BEyg='} b'{"filepath": "/opt/z/pscp/vim8/test.cpp", "line_num": 1, "column_num": 1, "working_dir": "/opt/z/pscp/vim8", "file_data": {"/opt/z/pscp/vim8/test.cpp": {"contents": "\n", "filetypes": [""]}}, "options": {"tab_size": 8, "insert_spaces": false}, "command_arguments": []}' 2019-10-27 11:46:41,588 - ERROR - Error while handling server response Traceback (most recent call last): File "/opt/z/pscp/YouCompleteMe/python/ycm/client/base_request.py", line 79, in HandleFuture result = _JsonFromFuture( future ) File "/opt/z/pscp/YouCompleteMe/python/ycm/client/base_request.py", line 263, in _JsonFromFuture raise MakeServerException( response.json() ) ycmd.responses.ServerError: ValueError: No semantic completer exists for filetypes: [''] 2019-10-27 11:46:45,769 - DEBUG - POST b'http://127.0.0.1:49981/shutdown' {'content-type': 'application/json', 'x-ycm-hmac': b'Aiv8sH6+jjhPZT3y7kOBjQePuYbGTxmJ/fGe4zE3+no='} b'' 2019-10-27 11:46:45,795 - DEBUG - RX: True

puremourning commented 5 years ago

Please see CONTRIBUTING.md