Closed Karmenzind closed 4 years ago
From the link you posted:
"languageserver": {
"vimls": {
"command": "vim-language-server",
"args": ["--stdio"],
"initializationOptions": {
"iskeyword": "@,48-57,_,192-255,-#", // vim iskeyword option
"vimruntime": "", // $VIMRUNTIME option
"runtimepath": "", // vim runtime path separate by `,`
"diagnostic": {
"enable": true
},
"indexes": {
"runtimepath": true, // if index runtimepath's vim files this will effect the suggest
"gap": 100, // index time gap between next file
"count": 3, // count of files index at the same time
"projectRootPatterns" : ["strange-root-pattern", ".git", "autoload", "plugin"] // Names of files used as the mark of project root. If empty, the default value [".git", "autoload", "plugin"] will be used
},
"suggest": {
"fromVimruntime": true, // completionItems from vimruntime's vim files
"fromRuntimepath": false // completionItems from runtimepath's vim files, if this is true that fromVimruntime is true
}
},
"filetypes": [ "vim" ]
}
}
The initializationOptions
dictionary is what you can pass in { 'ls: <init options> }
from the extra conf.
Does that help?
I think this is resolved. At least there’s been no activity and we believe it should work via extra conf.
Hi, THank you for maintaining this plugin. I found it to be faster than its contemporaries. The :YcmCompleter GoToDefinition commands and RefactorRename commands work for me with the vim-language-server, but not symantic completion or signature help. My config is:
in ~/.vimrc:
let g:ycm_language_server = [
\{
\ 'name' : 'vim',
\ 'cmdline' : ['vim-language-server', '--stdio'],
\ 'filetypes' : ['vim'],
\ 'project_root_files' : [expand('%')]
\}
\]
And .ycm_extra_conf.py looks like:
def Settings(**kwargs):
if kwargs["language"] == "vim":
return {
"ls": {
"iskeyword": "@,48-57,_,192-255,-#",
"vimruntime": "",
"runtimepath": "",
"diagnostic": {"enable": True},
}
}
return {}
Is there a way to make semantic completion, or signature help work ?
my experience with vim-language-server is that it works for about 5 minutes then ends up stuck in an infinite loop and I have to kill it. I actually use vim-Verdin with YCM and it works well (via the omnifunc).
I mean we could look into why vim-language-server isn't working, but usually it is because it's sending snippets which YCM doesn't support. Do you have some diagnostics, like the log files ?
Check YCM's CONTRIBUTING.md for the kind of logs we require to debug.
Alright,
My minimal vimrc file:
set nocompatible
syntax on
filetype plugin indent on
" Youcompleteme
let g:ycm_clangd_binary_path = '/home/apathak/local/llvm_root_dir/bin/clangd'
let g:ycm_clangd_args = [
\ '--compile-commands-dir=../build',
\ '--completion-style=bundled',
\ '--fallback-style=Google',
\ '--header-insertion=iwyu',
\ '-header-insertion-decorators=1',
\ '--suggest-missing-includes'
\ ]
let g:ycm_language_server = [
\{
\ 'name' : 'vim',
\ 'cmdline' : ['vim-language-server', '--stdio'],
\ 'filetypes' : ['vim'],
\ 'project_root_files' : [expand('%')]
\}
\]
let g:ycm_auto_trigger = 1
let g:ycm_goto_buffer_command = 'split-or-existing-window'
let g:ycm_autoclose_preview_window_after_completion = 1
let g:ycm_show_diagnostics_ui = 1
packadd YouCompleteMe
Output of :YcmDebugInfo:
Printing YouCompleteMe debug information...
-- Client logfile: /tmp/ycm_402gng1j.log
-- Server Python interpreter: /usr/bin/python3
-- Server Python version: 3.6.9
-- Server has Clang support compiled in: False
-- Clang version: None
-- Extra configuration file found and loaded
-- Extra configuration path: /home/apathak/.ycm_extra_conf.py
-- GenericLSP completer debug information:
-- vimCompleter running
-- vimCompleter process ID: 16740
-- vimCompleter executable: ['/usr/local/bin/vim-language-server', '--stdio']
-- vimCompleter logfiles:
-- /tmp/vimcompleter_stderr7bjqrqo9.log
-- vimCompleter Server State: Initialized
-- vimCompleter Project Directory: /home/apathak/.vim
-- vimCompleter Settings: {
-- "diagnostic": {
-- "enable": true
-- },
-- "iskeyword": "@,48-57,_,192-255,-#",
-- "runtimepath": "",
-- "vimruntime": ""
-- }
-- Server running at: http://127.0.0.1:40171
-- Server process ID: 16611
-- Server logfiles:
-- /tmp/ycmd_40171_stdout_err2nyfi.log
-- /tmp/ycmd_40171_stderr_ssjgzgj2.log
The logfiles:
2020-04-13 20:41:14,153 - ERROR - HTTPConnectionPool(host='127.0.0.1', port=40171): Max retries exceeded with url: /ready (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8005f9d30>: Failed to establish a new connection: [Errno 111] Connection refused',))
2020-04-13 20:41:35,146 - ERROR - Error while handling server response
Traceback (most recent call last):
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/python/ycm/client/base_request.py", line 73, in HandleFuture
return _JsonFromFuture( future )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/python/ycm/client/base_request.py", line 256, in _JsonFromFuture
raise MakeServerException( response.json() )
ycmd.responses.ServerError: TypeError: 'NoneType' object is not iterable
2020-04-13 20:41:35,147 - ERROR - Error while handling server response
Traceback (most recent call last):
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/python/ycm/client/base_request.py", line 73, in HandleFuture
return _JsonFromFuture( future )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/python/ycm/client/base_request.py", line 256, in _JsonFromFuture
raise MakeServerException( response.json() )
ycmd.responses.ServerError: TypeError: 'NoneType' object is not iterable
2020-04-13 20:41:35,177 - ERROR - Error while handling server response
Traceback (most recent call last):
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/python/ycm/client/base_request.py", line 73, in HandleFuture
return _JsonFromFuture( future )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/python/ycm/client/base_request.py", line 256, in _JsonFromFuture
raise MakeServerException( response.json() )
ycmd.responses.ServerError: TypeError: 'NoneType' object is not iterable
2020-04-13 20:41:39,761 - ERROR - Error while handling server response
Traceback (most recent call last):
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/python/ycm/client/base_request.py", line 73, in HandleFuture
return _JsonFromFuture( future )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/python/ycm/client/base_request.py", line 256, in _JsonFromFuture
raise MakeServerException( response.json() )
ycmd.responses.ServerError: TypeError: 'NoneType' object is not iterable
[blank]
serving on http://localhost:40171
2020-04-13 20:41:14,258 - INFO - Received ready request
2020-04-13 20:41:14,265 - INFO - Received signature help available request
2020-04-13 20:41:14,269 - INFO - Received event notification
2020-04-13 20:41:14,272 - INFO - Received event notification
2020-04-13 20:41:14,272 - INFO - Adding buffer identifiers for file: /home/apathak/.vim/.vimtex_project.vim
Traceback (most recent call last):
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 868, in _handle
return route.call(**args)
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 1748, in wrapper
rv = callback(*a, **ka)
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/watchdog_plugin.py", line 97, in wrapper
return callback( *args, **kwargs )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/hmac_plugin.py", line 62, in wrapper
body = callback( *args, **kwargs )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/handlers.py", line 63, in EventNotification
event_handler )( request_data )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 1327, in OnFileReadyToParse
self._StartAndInitializeServer( request_data )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 1313, in _StartAndInitializeServer
self._extra_conf_dir = self._GetSettingsFromExtraConf( request_data )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 1282, in _GetSettingsFromExtraConf
module = extra_conf_store.ModuleForSourceFile( request_data[ 'filepath' ] )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/extra_conf_store.py", line 55, in ModuleForSourceFile
return Load( ModuleFileForSourceFile( filename ) )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/extra_conf_store.py", line 66, in ModuleFileForSourceFile
if Load( module_file ):
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/extra_conf_store.py", line 151, in Load
if not force and not _ShouldLoad( module_file, is_global ):
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/extra_conf_store.py", line 134, in _ShouldLoad
raise UnknownExtraConf( module_file )
ycmd.responses.UnknownExtraConf: Found /home/apathak/.ycm_extra_conf.py. Load?
(Question can be turned off with options, see YCM docs) 2020-04-13 20:41:14,375 - INFO - Received filetype completion available request 2020-04-13 20:41:16,141 - INFO - Received extra conf load request 2020-04-13 20:41:16,148 - INFO - Received event notification 2020-04-13 20:41:16,148 - INFO - Adding buffer identifiers for file: /home/apathak/.vim/.vimtex_project.vim 2020-04-13 20:41:16,149 - INFO - Starting vimCompleter: ['/usr/local/bin/vim-language-server', '--stdio'] 2020-04-13 20:41:16,154 - INFO - vimCompleter started 2020-04-13 20:41:16,851 - INFO - Language server requires sync type of Full 2020-04-13 20:41:16,852 - INFO - vim: Using trigger characters for semantic triggers: .,:,#,[,&,$,<,",' 2020-04-13 20:41:16,853 - INFO - vim: Using characters for signature triggers: (,, 2020-04-13 20:41:30,710 - INFO - Received event notification 2020-04-13 20:41:30,711 - INFO - Adding ONE buffer identifier for file: /home/apathak/.vim/.vimtex_project.vim 2020-04-13 20:41:31,997 - INFO - Received completion request 2020-04-13 20:41:32,001 - INFO - Received signature help available request 2020-04-13 20:41:32,088 - INFO - Received completion request 2020-04-13 20:41:32,091 - INFO - Received signature help request 2020-04-13 20:41:32,258 - INFO - Received completion request 2020-04-13 20:41:32,261 - INFO - Received signature help request 2020-04-13 20:41:32,381 - INFO - Received completion request 2020-04-13 20:41:32,384 - INFO - Received signature help request 2020-04-13 20:41:32,479 - INFO - Received event notification 2020-04-13 20:41:32,480 - INFO - Adding ONE buffer identifier for file: /home/apathak/.vim/.vimtex_project.vim 2020-04-13 20:41:32,482 - INFO - Received completion request 2020-04-13 20:41:32,484 - INFO - Received signature help request 2020-04-13 20:41:32,756 - INFO - Received completion request 2020-04-13 20:41:32,759 - INFO - Received signature help request 2020-04-13 20:41:33,084 - INFO - Received completion request 2020-04-13 20:41:33,087 - INFO - Received signature help request 2020-04-13 20:41:33,655 - INFO - Received completion request 2020-04-13 20:41:33,657 - INFO - Received signature help request 2020-04-13 20:41:33,902 - INFO - Received completion request 2020-04-13 20:41:33,904 - INFO - Received signature help request 2020-04-13 20:41:35,090 - INFO - Received completion request Traceback (most recent call last): File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 868, in _handle return route.call(args) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 1748, in wrapper rv = callback(*a, *ka) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/watchdog_plugin.py", line 97, in wrapper return callback( args, kwargs ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/hmac_plugin.py", line 62, in wrapper body = callback( args, kwargs ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/handlers.py", line 121, in GetCompletions completions = filetype_completer.ComputeCandidates( request_data ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/completer.py", line 283, in ComputeCandidates return self.DetailCandidates( request_data, candidates ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 974, in DetailCandidates request_data ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 1046, in _CandidatesFromCompletionItems self._ResolveCompletionItem( item ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 986, in _ResolveCompletionItem item.update( response[ 'result' ] ) TypeError: 'NoneType' object is not iterable 2020-04-13 20:41:35,168 - INFO - Received completion request Traceback (most recent call last): File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 868, in _handle return route.call(args) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 1748, in wrapper rv = callback(a, ka) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/watchdog_plugin.py", line 97, in wrapper return callback( *args, *kwargs ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/hmac_plugin.py", line 62, in wrapper body = callback( args, kwargs ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/handlers.py", line 121, in GetCompletions completions = filetype_completer.ComputeCandidates( request_data ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/completer.py", line 283, in ComputeCandidates return self.DetailCandidates( request_data, candidates ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 974, in DetailCandidates request_data ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 1046, in _CandidatesFromCompletionItems self._ResolveCompletionItem( item ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 986, in _ResolveCompletionItem item.update( response[ 'result' ] ) TypeError: 'NoneType' object is not iterable 2020-04-13 20:41:38,953 - INFO - Received completion request 2020-04-13 20:41:38,955 - INFO - Received signature help request 2020-04-13 20:41:39,752 - INFO - Received completion request 2020-04-13 20:41:39,755 - INFO - Received signature help request Traceback (most recent call last): File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 868, in _handle return route.call(args) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 1748, in wrapper rv = callback(*a, *ka) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/watchdog_plugin.py", line 97, in wrapper return callback( args, kwargs ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/hmac_plugin.py", line 62, in wrapper body = callback( *args, **kwargs ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/handlers.py", line 121, in GetCompletions completions = filetype_completer.ComputeCandidates( request_data ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/completer.py", line 283, in ComputeCandidates return self.DetailCandidates( request_data, candidates ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 974, in DetailCandidates request_data ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 1046, in _CandidatesFromCompletionItems self._ResolveCompletionItem( item ) File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 986, in _ResolveCompletionItem item.update( response[ 'result' ] ) TypeError: 'NoneType' object is not iterable 2020-04-13 20:41:41,159 - INFO - Received event notification 2020-04-13 20:41:41,159 - INFO - Adding buffer identifiers for file: /home/apathak/.vim/.vimtex_project.vim 2020-04-13 20:41:41,161 - INFO - Received event notification 2020-04-13 20:41:41,163 - INFO - Adding ONE buffer identifier for file: /home/apathak/.vim/.vimtex_project.vim 2020-04-13 20:41:46,564 - INFO - Received completion request 2020-04-13 20:41:46,566 - INFO - Received signature help request 2020-04-13 20:41:47,131 - INFO - Received completion request 2020-04-13 20:41:47,133 - INFO - Received signature help request 2020-04-13 20:41:47,344 - INFO - Received completion request 2020-04-13 20:41:47,346 - INFO - Received signature help request 2020-04-13 20:41:47,425 - INFO - Received completion request 2020-04-13 20:41:47,427 - INFO - Received signature help request 2020-04-13 20:41:47,596 - INFO - Received completion request 2020-04-13 20:41:47,598 - INFO - Received signature help request 2020-04-13 20:41:47,819 - INFO - Received completion request 2020-04-13 20:41:47,821 - INFO - Received signature help request 2020-04-13 20:41:47,914 - INFO - Received completion request 2020-04-13 20:41:47,916 - INFO - Received signature help request 2020-04-13 20:41:48,001 - INFO - Received completion request 2020-04-13 20:41:48,003 - INFO - Received signature help request 2020-04-13 20:41:48,909 - INFO - Received event notification 2020-04-13 20:41:48,910 - INFO - Adding ONE buffer identifier for file: /home/apathak/.vim/.vimtex_project.vim 2020-04-13 20:41:48,911 - INFO - Received completion request 2020-04-13 20:41:48,914 - INFO - Received signature help request 2020-04-13 20:41:54,466 - INFO - Received event notification 2020-04-13 20:41:54,467 - INFO - Adding buffer identifiers for file: /home/apathak/.vim/.vimtex_project.vim 2020-04-13 20:41:54,470 - INFO - Received event notification 2020-04-13 20:42:07,416 - INFO - Received completion request 2020-04-13 20:42:07,417 - INFO - Received signature help request 2020-04-13 20:42:11,080 - INFO - Received completion request 2020-04-13 20:42:11,082 - INFO - Received signature help request 2020-04-13 20:42:11,106 - INFO - Received completion request 2020-04-13 20:42:11,108 - INFO - Received signature help request 2020-04-13 20:42:11,281 - INFO - Received completion request 2020-04-13 20:42:11,282 - INFO - Received signature help request 2020-04-13 20:42:11,640 - INFO - Received event notification 2020-04-13 20:42:11,640 - INFO - Adding ONE buffer identifier for file: /home/apathak/.vim/.vimtex_project.vim 2020-04-13 20:42:11,641 - INFO - Received completion request 2020-04-13 20:42:11,645 - INFO - Received signature help request 2020-04-13 20:42:12,280 - INFO - Received completion request 2020-04-13 20:42:12,282 - INFO - Received signature help request 2020-04-13 20:42:13,655 - INFO - Received event notification 2020-04-13 20:42:13,656 - INFO - Adding buffer identifiers for file: /home/apathak/.vim/.vimtex_project.vim 2020-04-13 20:42:13,657 - INFO - Received event notification 2020-04-13 20:42:26,812 - INFO - Received defined subcommands request 2020-04-13 20:42:26,812 - INFO - No support for ExecuteCommand command in server for vim 2020-04-13 20:42:26,813 - INFO - No support for FixIt command in server for vim 2020-04-13 20:42:26,813 - INFO - Found definitionProvider support for command GoToDefinition in vim 2020-04-13 20:42:26,813 - INFO - Found definitionProvider support for command GoToDeclaration in vim 2020-04-13 20:42:26,813 - INFO - Found definitionProvider support for command GoTo in vim 2020-04-13 20:42:26,813 - INFO - No support for GoToType command in server for vim 2020-04-13 20:42:26,813 - INFO - No support for GoToImplementation command in server for vim 2020-04-13 20:42:26,813 - INFO - Found referencesProvider support for command GoToReferences in vim 2020-04-13 20:42:26,813 - INFO - Found renameProvider support for command RefactorRename in vim 2020-04-13 20:42:26,814 - INFO - No support for Format command in server for vim 2020-04-13 20:42:26,814 - INFO - Always supporting StopServer for vim 2020-04-13 20:42:26,814 - INFO - Always supporting RestartServer for vim 2020-04-13 20:42:26,814 - INFO - Always supporting GetHover for vim 2020-04-13 20:42:28,477 - INFO - Received defined subcommands request 2020-04-13 20:42:28,477 - INFO - No support for ExecuteCommand command in server for vim 2020-04-13 20:42:28,478 - INFO - No support for FixIt command in server for vim 2020-04-13 20:42:28,478 - INFO - Found definitionProvider support for command GoToDefinition in vim 2020-04-13 20:42:28,478 - INFO - Found definitionProvider support for command GoToDeclaration in vim 2020-04-13 20:42:28,478 - INFO - Found definitionProvider support for command GoTo in vim 2020-04-13 20:42:28,478 - INFO - No support for GoToType command in server for vim 2020-04-13 20:42:28,478 - INFO - No support for GoToImplementation command in server for vim 2020-04-13 20:42:28,478 - INFO - Found referencesProvider support for command GoToReferences in vim 2020-04-13 20:42:28,478 - INFO - Found renameProvider support for command RefactorRename in vim 2020-04-13 20:42:28,479 - INFO - No support for Format command in server for vim 2020-04-13 20:42:28,479 - INFO - Always supporting StopServer for vim 2020-04-13 20:42:28,479 - INFO - Always supporting RestartServer for vim 2020-04-13 20:42:28,479 - INFO - Always supporting GetHover for vim 2020-04-13 20:42:34,668 - INFO - Received command request 2020-04-13 20:42:34,669 - INFO - No support for ExecuteCommand command in server for vim 2020-04-13 20:42:34,669 - INFO - No support for FixIt command in server for vim 2020-04-13 20:42:34,669 - INFO - Found definitionProvider support for command GoToDefinition in vim 2020-04-13 20:42:34,669 - INFO - Found definitionProvider support for command GoToDeclaration in vim 2020-04-13 20:42:34,669 - INFO - Found definitionProvider support for command GoTo in vim 2020-04-13 20:42:34,670 - INFO - No support for GoToType command in server for vim 2020-04-13 20:42:34,670 - INFO - No support for GoToImplementation command in server for vim 2020-04-13 20:42:34,670 - INFO - Found referencesProvider support for command GoToReferences in vim 2020-04-13 20:42:34,670 - INFO - Found renameProvider support for command RefactorRename in vim 2020-04-13 20:42:34,670 - INFO - No support for Format command in server for vim 2020-04-13 20:42:34,670 - INFO - Always supporting StopServer for vim 2020-04-13 20:42:34,670 - INFO - Always supporting RestartServer for vim 2020-04-13 20:42:34,670 - INFO - Always supporting GetHover for vim 2020-04-13 20:42:39,015 - INFO - Received event notification 2020-04-13 20:42:39,015 - INFO - Adding buffer identifiers for file: /home/apathak/.vim/.vimtex_project.vim 2020-04-13 20:42:39,845 - INFO - Received event notification 2020-04-13 20:42:39,846 - INFO - Adding buffer identifiers for file: /home/apathak/.vim/.vimtex_project.vim 2020-04-13 20:42:40,119 - INFO - Received event notification 2020-04-13 20:42:40,119 - INFO - Adding buffer identifiers for file: /home/apathak/.vim/.vimtex_project.vim 2020-04-13 20:44:18,997 - INFO - Received debug info request 2020-04-13 20:44:49,309 - INFO - Received debug info request 2020-04-13 20:44:57,813 - INFO - Received debug info request 2020-04-13 20:45:30,709 - INFO - Received debug info request 2020-04-13 20:45:46,099 - INFO - Received debug info request 2020-04-13 20:46:16,363 - INFO - Received debug info request 2020-04-13 20:46:27,861 - INFO - Received debug info request 2020-04-13 20:46:38,341 - INFO - Received debug info request 2020-04-13 20:46:44,157 - INFO - Received debug info request 2020-04-13 20:46:58,502 - INFO - Received debug info request 2020-04-13 20:47:13,037 - INFO - Received debug info request 2020-04-13 20:48:52,550 - INFO - Received event notification 2020-04-13 20:48:52,552 - INFO - Received event notification 2020-04-13 20:48:52,553 - INFO - Adding buffer identifiers for file: /home/apathak/.minimal_vimrc.vim 2020-04-13 20:49:04,583 - INFO - Received event notification 2020-04-13 20:49:04,586 - INFO - Received event notification 2020-04-13 20:49:04,587 - INFO - Adding buffer identifiers for file: /home/apathak/.vim/.vimtex_project.vim 2020-04-13 20:49:10,766 - INFO - Received event notification 2020-04-13 20:49:10,769 - INFO - Received event notification 2020-04-13 20:49:10,769 - INFO - Adding buffer identifiers for file: /home/apathak/.minimal_vimrc.vim 2020-04-13 20:50:28,269 - INFO - Received event notification 2020-04-13 20:50:28,271 - INFO - Received event notification 2020-04-13 20:50:28,271 - INFO - Adding buffer identifiers for file: /home/apathak/.vim/.vimtex_project.vim 2020-04-13 20:50:33,363 - INFO - Received debug info request 2020-04-13 20:51:13,882 - INFO - Received health request 2020-04-13 20:51:54,701 - INFO - Received debug info request 2020-04-13 20:53:13,270 - INFO - Received debug info request 2020-04-13 20:54:24,550 - INFO - Received debug info request
yeah, this looks suspect:
2020-04-13 20:41:35,090 - INFO - Received completion request
Traceback (most recent call last):
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 868, in _handle
return route.call(**args)
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/third_party/bottle/bottle.py", line 1748, in wrapper
rv = callback(*a, **ka)
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/watchdog_plugin.py", line 97, in wrapper
return callback( *args, **kwargs )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/hmac_plugin.py", line 62, in wrapper
body = callback( *args, **kwargs )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/handlers.py", line 121, in GetCompletions
completions = filetype_completer.ComputeCandidates( request_data )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/completer.py", line 283, in ComputeCandidates
return self.DetailCandidates( request_data, candidates )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 974, in DetailCandidates
request_data )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 1046, in _CandidatesFromCompletionItems
self._ResolveCompletionItem( item )
File "/home/apathak/.vim/pack/minpac/opt/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 986, in _ResolveCompletionItem
item.update( response[ 'result' ] )
TypeError: 'NoneType' object is not iterable
it's returning None
to the resolve completion request.
Could you try with g:ycm_server_log_level
set to DEBUG
? That will allow us to see what the LS is sending to ycmd.
I have added the following variables in my minimal vimrc:
let g:ycm_log_level = 'debug'
let g:ycm_server_log_level = 'debug'
The output of :YcmDebugInfo
Printing YouCompleteMe debug information...
-- Client logfile: /tmp/ycm_tz2htjld.log
-- Server Python interpreter: /usr/bin/python3
-- Server Python version: 3.6.9
-- Server has Clang support compiled in: False
-- Clang version: None
-- Extra configuration file found and loaded
-- Extra configuration path: /home/apathak/.ycm_extra_conf.py
-- GenericLSP completer debug information:
-- vimCompleter running
-- vimCompleter process ID: 9348
-- vimCompleter executable: ['/usr/local/bin/vim-language-server', '--stdio']
-- vimCompleter logfiles:
-- /tmp/vimcompleter_stderrr6ebtzpm.log
-- vimCompleter Server State: Initialized
-- vimCompleter Project Directory: /home/apathak/.vim
-- vimCompleter Settings: {
-- "diagnostic": {
-- "enable": true
-- },
-- "iskeyword": "@,48-57,_,192-255,-#",
-- "runtimepath": "",
-- "vimruntime": ""
-- }
-- Server running at: http://127.0.0.1:32915
-- Server process ID: 9259
-- Server logfiles:
-- /tmp/ycmd_32915_stdout_i5f3nyej.log
-- /tmp/ycmd_32915_stderr_a0kkoue1.log
The logfiles: ycm_tz2htjld.log
ycmd_32915_stderr_a0kkoue1.log ycmd_32915_stdout_i5f3nyej.log
Yes, the server is returning null
for the completionItem/resolve
request, which is invalid according to:
https://microsoft.github.io/language-server-protocol/specification#completionItem_resolve
You should report this to the server vendor.
Thanks for taking the time to look at it.
@puremourning Is this resolved now?
yes.
Hi
vim-language-server
settings didn't work at all, neither completion or gotocmd.vim-language-server version: 1.3.1 installed with
npm install -g --production
I think there should be some extra config like the samples(for coc.nvim) in https://github.com/iamcco/vim-language-server . But I have no idea how to put this into .ycm_extra_conf. Any suggestions?
here is the log:
click to unfold