Closed unavaliabl3 closed 3 years ago
Thanks for the report. This is usually due to other plugins or auto commands interfering with the VimLeave auto command. Can you confirm the command you used to test with the minimal vimrc (just to rule out any interference).
IF not, could you please provide the ycmd log file with;
let g:ycm_keep_logfiles = 1
let g:ycm_log_level = 'debug'
command:
vim -Nu \tmp\.vimrc
set encoding=utf-8 "YCM requires UTF-8 encoding
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim' "Plugin Manager
Plugin 'ycm-core/YouCompleteMe'
call vundle#end()
filetype plugin indent on
let g:ycm_keep_logfiles = 1
let g:ycm_log_level = 'debug'
Logs
ycm.log
2020-08-17 00:04:05,438 - DEBUG - GET b'http://127.0.0.1:7685/ready' (None) {'content-type': 'application/json', 'x-ycm-hmac': b'LdVbjKmdYo9IUnxVRV3uvNyEvgfJmuks+3TPzJUO++8='} 2020-08-17 00:04:05,534 - ERROR - HTTPConnectionPool(host='127.0.0.1', port=7685): Max retries exceeded with url: /ready (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001A5FBE5BFA0>, 'Connection to 127.0.0.1 timed out. (connect timeout=0.01)')) 2020-08-17 00:04:05,646 - DEBUG - GET b'http://127.0.0.1:7685/ready' (None) {'content-type': 'application/json', 'x-ycm-hmac': b'LdVbjKmdYo9IUnxVRV3uvNyEvgfJmuks+3TPzJUO++8='} 2020-08-17 00:04:05,678 - ERROR - HTTPConnectionPool(host='127.0.0.1', port=7685): Max retries exceeded with url: /ready (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001A5FBE7A880>, 'Connection to 127.0.0.1 timed out. (connect timeout=0.01)')) 2020-08-17 00:04:05,778 - DEBUG - GET b'http://127.0.0.1:7685/ready' (None) {'content-type': 'application/json', 'x-ycm-hmac': b'LdVbjKmdYo9IUnxVRV3uvNyEvgfJmuks+3TPzJUO++8='} 2020-08-17 00:04:05,806 - DEBUG - RX: <Response [200]> true 2020-08-17 00:04:11,093 - DEBUG - POST b'http://127.0.0.1:7685/debug_info' {'content-type': 'application/json', 'x-ycm-hmac': b'On2zB3jHYTaHC0e1Y7VSSJSXbH5ujOA8nVKGhs/Tci0='} b'{"filepath": "C:\\\\Users\\\\Ubuntu\\\\1", "line_num": 1, "column_num": 1, "working_dir": "C:\\\\Users\\\\Ubuntu", "file_data": {"C:\\\\Users\\\\Ubuntu\\\\1": {"contents": "\\n", "filetypes": [""]}}}' 2020-08-17 00:04:11,110 - DEBUG - RX: <Response [200]> {"python":{"executable":"C:\\Users\\Ubuntu\\AppData\\Local\\Programs\\Python\\Python38\\python.exe","version":"3.8.5"},"clang":{"has_support":false,"version":null},"extra_conf":{"path":null,"is_loaded":false},"completer":null} 2020-08-17 00:04:42,215 - DEBUG - POST b'http://127.0.0.1:7685/debug_info' {'content-type': 'application/json', 'x-ycm-hmac': b'On2zB3jHYTaHC0e1Y7VSSJSXbH5ujOA8nVKGhs/Tci0='} b'{"filepath": "C:\\\\Users\\\\Ubuntu\\\\1", "line_num": 1, "column_num": 1, "working_dir": "C:\\\\Users\\\\Ubuntu", "file_data": {"C:\\\\Users\\\\Ubuntu\\\\1": {"contents": "\\n", "filetypes": [""]}}}' 2020-08-17 00:04:42,218 - DEBUG - RX: <Response [200]> {"python":{"executable":"C:\\Users\\Ubuntu\\AppData\\Local\\Programs\\Python\\Python38\\python.exe","version":"3.8.5"},"clang":{"has_support":false,"version":null},"extra_conf":{"path":null,"is_loaded":false},"completer":null} 2020-08-17 00:05:07,520 - DEBUG - POST b'http://127.0.0.1:7685/shutdown' {'content-type': 'application/json', 'x-ycm-hmac': b'DM7q9uPJMimrIcY0domMd5BL8NhiNiprm3mqsoFlhwg='} b'' 2020-08-17 00:05:07,525 - DEBUG - RX: <Response [200]> true
ycmd_stderr.log
2020-08-17 00:04:05,657 - DEBUG - No global extra conf, not calling method YcmCorePreload 2020-08-17 00:04:05,805 - INFO - Received ready request 2020-08-17 00:04:11,095 - INFO - Received debug info request 2020-08-17 00:04:11,096 - ERROR - Error retrieving completer debug info Traceback (most recent call last): File "C:\Users\Ubuntu\.vim\bundle\YouCompleteMe\third_party\ycmd\ycmd\handlers.py", line 280, in DebugInfo response[ 'completer' ] = _GetCompleterForRequestData( File "C:\Users\Ubuntu\.vim\bundle\YouCompleteMe\third_party\ycmd\ycmd\handlers.py", line 347, in _GetCompleterForRequestData return _server_state.GetFiletypeCompleter( request_data[ 'filetypes' ] ) File "C:\Users\Ubuntu\.vim\bundle\YouCompleteMe\third_party\ycmd\ycmd\server_state.py", line 91, in GetFiletypeCompleter raise ValueError( 'No semantic completer exists for filetypes: {0}'.format( ValueError: No semantic completer exists for filetypes: [''] 2020-08-17 00:04:42,216 - INFO - Received debug info request 2020-08-17 00:04:42,216 - ERROR - Error retrieving completer debug info Traceback (most recent call last): File "C:\Users\Ubuntu\.vim\bundle\YouCompleteMe\third_party\ycmd\ycmd\handlers.py", line 280, in DebugInfo response[ 'completer' ] = _GetCompleterForRequestData( File "C:\Users\Ubuntu\.vim\bundle\YouCompleteMe\third_party\ycmd\ycmd\handlers.py", line 347, in _GetCompleterForRequestData return _server_state.GetFiletypeCompleter( request_data[ 'filetypes' ] ) File "C:\Users\Ubuntu\.vim\bundle\YouCompleteMe\third_party\ycmd\ycmd\server_state.py", line 91, in GetFiletypeCompleter raise ValueError( 'No semantic completer exists for filetypes: {0}'.format( ValueError: No semantic completer exists for filetypes: [''] 2020-08-17 00:05:07,522 - INFO - Received shutdown request 2020-08-17 00:05:07,524 - DEBUG - No global extra conf, not calling method VimClose 2020-08-17 00:05:07,524 - DEBUG - No global extra conf, not calling method Shutdown
ycmd_stdout.log
serving on http://memyself:7685
Is that the full log even after closing vim ?
How are you closing Vim ?
sorry, I forgot to close it. Already edited.
2020-08-17 00:05:07,520 - DEBUG - POST b'http://127.0.0.1:7685/shutdown' {'content-type': 'application/json', 'x-ycm-hmac': b'DM7q9uPJMimrIcY0domMd5BL8NhiNiprm3mqsoFlhwg='} b'' 2020-08-17 00:05:07,525 - DEBUG - RX: <Response [200]>
So YCM has sent the shutdown request and even received the response...
It "sometimes" does not kill the python. And when python hangs there, the log file is blank.
just fond a log file from another hanging python that is not blank, but unfortunately, it has only one line
2020-08-17 00:49:03,878 - DEBUG - No global extra conf, not calling method YcmCorePreload
I don't think it's useful.
There’s a watchdog. Do the ycmd processes exit after an hour?
Do you mean those python processes? I have to kill them manually. I think it probably won't exit after one hour because when I first noticed them in process explorer, they have run hours.
I mean the ones that are running ycmd. Can you check the command line of the leftover processes?. Need to know if it is ycmd or some spawn of Jedi.
For the record we do have regression tests for ycmd shut down, and unless we can repro it will be hard to diagnose.
C:\Users\Ubuntu\AppData\Local\Programs\Python\Python38\python.exe C:\Users\Ubuntu\.vim\bundle\YouCompleteMe\python\ycm\..\..\third_party\ycmd\ycmd --port=11244 --options_file=C:\Users\Ubuntu\AppData\Local\Temp\tmpu2p44lpm --log=debug --idle_suicide_seconds=1800 --stdout=C:\Users\Ubuntu\AppData\Local\Temp\ycmd_11244_stdout_826kj_lt.log --stderr=C:\Users\Ubuntu\AppData\Local\Temp\ycmd_11244_stderr_0wkhced3.log
And that’s been wedged for more than 1800 seconds?
20min
Let us know if it doesn’t die after 1 hour as that’s an important data point.
--idle_suicide_seconds=1800
means 30 minutes.
they dead. does that counter stop when I put the computer into sleep?
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
inside the brackets) before filing your issue:vim --version
.:YcmDebugInfo
.:YcmToggleLogs
command.vim -Nu /path/to/YCM/vimrc_ycm_minimal
, including what I expected to happen and what actually happened.install.py
(orcmake
/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.
Issue Details
contents of ycm_vimrc_minimal
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
Output of
YcmDiags
Output of
git rev-parse HEAD
in YouCompleteMe installation directoryOS version, distribution, etc.