ycm-core / lsp-examples

Use any language server with YouCompleteMe.
https://ycm-core.github.io/YouCompleteMe
Apache License 2.0
83 stars 26 forks source link

vim-language-server settings didn't work #9

Closed Karmenzind closed 4 years ago

Karmenzind commented 5 years ago

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

...
      \ {"name": "vim", "filetypes": ["vim"], "cmdline": ["vim-language-server", '--stdio'] },
...

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

2019-10-29 17:27:33,024 - DEBUG - Global extra conf not loaded or no function YcmCorePreload
2019-10-29 17:27:33,121 - INFO - Received ready request
2019-10-29 17:27:33,170 - INFO - Received event notification
2019-10-29 17:27:33,170 - DEBUG - Event name: BufferVisit
2019-10-29 17:27:33,221 - INFO - Received event notification
2019-10-29 17:27:33,222 - DEBUG - Event name: FileReadyToParse
2019-10-29 17:27:33,222 - INFO - Adding buffer identifiers for file: /tmp/x.vim
2019-10-29 17:27:33,231 - INFO - Starting vimCompleter: ['/usr/local/bin/vim-language-server', '--stdio']
2019-10-29 17:27:33,235 - INFO - vimCompleter started
2019-10-29 17:27:33,235 - DEBUG - TX: Sending message: b'Content-Length: 689\r\n\r\n{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"completion":{"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}}}},"initializationOptions":{"css":{},"emmet":{},"html":{"suggest":{}},"javascript":{"format":{}},"stylusSupremacy":{},"typescript":{"format":{}},"vetur":{"completion":{"autoImport":false,"useScaffoldSnippets":false},"format":{"defaultFormatter":{"js":"prettier","ts":"prettier"},"defaultFormatterOptions":{},"scriptInitialIndent":false,"styleInitialIndent":false},"validation":{"script":true,"style":true,"template":true}}},"processId":23564,"rootPath":"/tmp","rootUri":"file:///tmp"}}'
2019-10-29 17:27:33,324 - INFO - Received filetype completion available request
2019-10-29 17:27:33,382 - INFO - Received completion request
2019-10-29 17:27:33,382 - DEBUG - Using filetype completion: False
2019-10-29 17:27:33,442 - INFO - Received completion request
2019-10-29 17:27:33,442 - DEBUG - Using filetype completion: False
2019-10-29 17:27:33,535 - INFO - Received completion request
2019-10-29 17:27:33,536 - DEBUG - Using filetype completion: False
2019-10-29 17:27:33,597 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":1,"result":{"capabilities":{"textDocumentSync":1,"hoverProvider":true,"completionProvider":{"triggerCharacters":[".",":","#","[","&","$","<","\\"","\'"],"resolveProvider":true},"signatureHelpProvider":{"triggerCharacters":["(",","]},"definitionProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true}}}}'
2019-10-29 17:27:33,597 - INFO - Language server requires sync type of Full
2019-10-29 17:27:33,598 - DEBUG - vim: Server declares trigger characters: ['.', ':', '#', '[', '&', '$', '<', '"', "'"]
2019-10-29 17:27:33,598 - INFO - vim: Using trigger characters for semantic triggers: .,:,#,[,&,$,<,",'
2019-10-29 17:27:33,598 - DEBUG - TX: Sending notification: b'Content-Length: 52\r\n\r\n{"jsonrpc":"2.0","method":"initialized","params":{}}'
2019-10-29 17:27:33,598 - DEBUG - TX: Sending notification: b'Content-Length: 480\r\n\r\n{"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"css":{},"emmet":{},"html":{"suggest":{}},"javascript":{"format":{}},"stylusSupremacy":{},"typescript":{"format":{}},"vetur":{"completion":{"autoImport":false,"useScaffoldSnippets":false},"format":{"defaultFormatter":{"js":"prettier","ts":"prettier"},"defaultFormatterOptions":{},"scriptInitialIndent":false,"styleInitialIndent":false},"validation":{"script":true,"style":true,"template":true}}}}}'
2019-10-29 17:27:33,598 - DEBUG - Refreshing file /tmp/x.vim: State is Open/action Open
2019-10-29 17:27:33,598 - DEBUG - TX: Sending notification: b'Content-Length: 146\r\n\r\n{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"vim","text":"\\n","uri":"file:///tmp/x.vim","version":1}}}'
2019-10-29 17:27:33,705 - INFO - Received event notification
2019-10-29 17:27:33,705 - DEBUG - Event name: CurrentIdentifierFinished
2019-10-29 17:27:33,706 - INFO - Adding ONE buffer identifier for file: /tmp/x.vim
2019-10-29 17:27:33,709 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///tmp/x.vim","diagnostics":[]}}'
2019-10-29 17:27:33,709 - INFO - Received completion request
2019-10-29 17:27:33,710 - DEBUG - Using filetype completion: False
2019-10-29 17:27:33,852 - INFO - Received completion request
2019-10-29 17:27:33,852 - DEBUG - Using filetype completion: False
2019-10-29 17:27:33,944 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"parser: child_log: Index Workspace Error: /tmp/**/*.vim\\nError => Error: EACCES: permission denied, scandir \'/tmp/ssh-xcIgWjTK0LaS\'"}}'
2019-10-29 17:27:33,944 - INFO - Server reported: parser: child_log: Index Workspace Error: /tmp/**/*.vim
Error => Error: EACCES: permission denied, scandir '/tmp/ssh-xcIgWjTK0LaS'
2019-10-29 17:27:33,997 - INFO - Received event notification
2019-10-29 17:27:33,998 - DEBUG - Event name: CurrentIdentifierFinished
2019-10-29 17:27:34,001 - INFO - Received completion request
2019-10-29 17:27:34,002 - DEBUG - Using filetype completion: False
2019-10-29 17:27:34,107 - INFO - Received completion request
2019-10-29 17:27:34,108 - DEBUG - Using filetype completion: False
2019-10-29 17:27:34,189 - INFO - Received completion request
2019-10-29 17:27:34,189 - DEBUG - Using filetype completion: False
2019-10-29 17:27:34,421 - INFO - Received completion request
2019-10-29 17:27:34,422 - DEBUG - Using filetype completion: False
2019-10-29 17:27:35,717 - INFO - Received completion request
2019-10-29 17:27:35,717 - DEBUG - Using filetype completion: True
2019-10-29 17:27:35,718 - DEBUG - Refreshing file /tmp/x.vim: State is Open/action Change
2019-10-29 17:27:35,718 - DEBUG - TX: Sending notification: b'Content-Length: 164\r\n\r\n{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"text":"let a = {\\"\\"}\\n"}],"textDocument":{"uri":"file:///tmp/x.vim","version":2}}}'
2019-10-29 17:27:35,720 - DEBUG - TX: Sending message: b'Content-Length: 150\r\n\r\n{"id":2,"jsonrpc":"2.0","method":"textDocument/completion","params":{"position":{"character":10,"line":0},"textDocument":{"uri":"file:///tmp/x.vim"}}}'
2019-10-29 17:27:35,727 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":2,"result":[]}'
2019-10-29 17:27:35,837 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///tmp/x.vim","diagnostics":[]}}'
2019-10-29 17:27:36,991 - INFO - Received completion request
2019-10-29 17:27:36,992 - DEBUG - Using filetype completion: False
2019-10-29 17:27:37,710 - INFO - Received completion request
2019-10-29 17:27:37,711 - DEBUG - Using filetype completion: True
2019-10-29 17:27:37,711 - DEBUG - Refreshing file /tmp/x.vim: State is Open/action Change
2019-10-29 17:27:37,712 - DEBUG - TX: Sending notification: b'Content-Length: 166\r\n\r\n{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"text":"let a = {\\"x\\":}\\n"}],"textDocument":{"uri":"file:///tmp/x.vim","version":3}}}'
2019-10-29 17:27:37,712 - DEBUG - TX: Sending message: b'Content-Length: 150\r\n\r\n{"id":3,"jsonrpc":"2.0","method":"textDocument/completion","params":{"position":{"character":13,"line":0},"textDocument":{"uri":"file:///tmp/x.vim"}}}'
2019-10-29 17:27:37,715 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":3,"result":[]}'
2019-10-29 17:27:37,817 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///tmp/x.vim","diagnostics":[{"message":"unexpected token: }","range":{"start":{"line":0,"character":13},"end":{"line":0,"character":14}},"severity":1}]}}'
2019-10-29 17:27:37,930 - INFO - Received completion request
2019-10-29 17:27:37,931 - DEBUG - Using filetype completion: False
2019-10-29 17:27:38,238 - INFO - Received completion request
2019-10-29 17:27:38,239 - DEBUG - Using filetype completion: True
2019-10-29 17:27:38,239 - DEBUG - Refreshing file /tmp/x.vim: State is Open/action Change
2019-10-29 17:27:38,239 - DEBUG - TX: Sending notification: b'Content-Length: 171\r\n\r\n{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"text":"let a = {\\"x\\": \\"\\"}\\n"}],"textDocument":{"uri":"file:///tmp/x.vim","version":4}}}'
2019-10-29 17:27:38,240 - DEBUG - TX: Sending message: b'Content-Length: 150\r\n\r\n{"id":4,"jsonrpc":"2.0","method":"textDocument/completion","params":{"position":{"character":15,"line":0},"textDocument":{"uri":"file:///tmp/x.vim"}}}'
2019-10-29 17:27:38,241 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":4,"result":[]}'
2019-10-29 17:27:38,343 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///tmp/x.vim","diagnostics":[]}}'
2019-10-29 17:27:38,540 - INFO - Received completion request
2019-10-29 17:27:38,541 - DEBUG - Using filetype completion: False
2019-10-29 17:27:39,601 - INFO - Received event notification
2019-10-29 17:27:39,602 - DEBUG - Event name: FileReadyToParse
2019-10-29 17:27:39,602 - INFO - Adding buffer identifiers for file: /tmp/x.vim
2019-10-29 17:27:39,602 - DEBUG - Refreshing file /tmp/x.vim: State is Open/action Change
2019-10-29 17:27:39,603 - DEBUG - TX: Sending notification: b'Content-Length: 172\r\n\r\n{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"text":"let a = {\\"x\\": \\"y\\"}\\n"}],"textDocument":{"uri":"file:///tmp/x.vim","version":5}}}'
2019-10-29 17:27:39,609 - INFO - Received event notification
2019-10-29 17:27:39,610 - DEBUG - Event name: InsertLeave
2019-10-29 17:27:39,705 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///tmp/x.vim","diagnostics":[]}}'
2019-10-29 17:27:39,905 - INFO - Received event notification
2019-10-29 17:27:39,905 - DEBUG - Event name: CurrentIdentifierFinished
2019-10-29 17:27:40,283 - INFO - Received completion request
2019-10-29 17:27:40,284 - DEBUG - Using filetype completion: False
2019-10-29 17:27:40,445 - INFO - Received event notification
2019-10-29 17:27:40,445 - DEBUG - Event name: CurrentIdentifierFinished
2019-10-29 17:27:40,456 - INFO - Received completion request
2019-10-29 17:27:40,456 - DEBUG - Using filetype completion: True
2019-10-29 17:27:40,457 - DEBUG - Refreshing file /tmp/x.vim: State is Open/action Change
2019-10-29 17:27:40,457 - DEBUG - TX: Sending notification: b'Content-Length: 176\r\n\r\n{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"text":"let a = {\\"x\\": \\"y\\"}\\na.\\n"}],"textDocument":{"uri":"file:///tmp/x.vim","version":6}}}'
2019-10-29 17:27:40,457 - DEBUG - TX: Sending message: b'Content-Length: 149\r\n\r\n{"id":5,"jsonrpc":"2.0","method":"textDocument/completion","params":{"position":{"character":2,"line":1},"textDocument":{"uri":"file:///tmp/x.vim"}}}'
2019-10-29 17:27:40,462 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":5,"result":[{"label":"a","kind":6,"sortText":"00003","documentation":"User defined variable","insertText":"a","insertTextFormat":1,"data":[{"name":"a","startLine":1,"startCol":5}]}]}'
2019-10-29 17:27:40,463 - DEBUG - TX: Sending message: b'Content-Length: 236\r\n\r\n{"id":6,"jsonrpc":"2.0","method":"completionItem/resolve","params":{"data":[{"name":"a","startCol":5,"startLine":1}],"documentation":"User defined variable","insertText":"a","insertTextFormat":1,"kind":6,"label":"a","sortText":"00003"}}'
2019-10-29 17:27:40,464 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":6,"result":null}'
2019-10-29 17:27:40,465 - ERROR - Exception from semantic completer (using general)
Traceback (most recent call last):
  File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/handlers.py", line 100, in GetCompletions
    .ComputeCandidates( request_data ) )
  File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/completer.py", line 238, in ComputeCandidates
    return self.DetailCandidates( request_data, candidates )
  File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 953, in DetailCandidates
    request_data )
  File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 1025, in _CandidatesFromCompletionItems
    self._ResolveCompletionItem( item )
  File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 965, in _ResolveCompletionItem
    item.update( response[ 'result' ] )
TypeError: 'NoneType' object is not iterable
2019-10-29 17:27:40,559 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///tmp/x.vim","diagnostics":[]}}'
2019-10-29 17:27:42,808 - INFO - Received completion request
2019-10-29 17:27:42,809 - DEBUG - Using filetype completion: False
2019-10-29 17:27:43,035 - INFO - Received event notification
2019-10-29 17:27:43,035 - DEBUG - Event name: CurrentIdentifierFinished
2019-10-29 17:27:46,908 - INFO - Received completion request
2019-10-29 17:27:46,908 - DEBUG - Using filetype completion: False
2019-10-29 17:27:47,140 - INFO - Received completion request
2019-10-29 17:27:47,141 - DEBUG - Using filetype completion: False
2019-10-29 17:27:47,305 - INFO - Received completion request
2019-10-29 17:27:47,306 - DEBUG - Using filetype completion: False
2019-10-29 17:27:47,439 - INFO - Received completion request
2019-10-29 17:27:47,440 - DEBUG - Using filetype completion: False
2019-10-29 17:27:47,614 - INFO - Received event notification
2019-10-29 17:27:47,614 - DEBUG - Event name: CurrentIdentifierFinished
2019-10-29 17:27:47,615 - INFO - Adding ONE buffer identifier for file: /tmp/x.vim
2019-10-29 17:27:47,621 - INFO - Received completion request
2019-10-29 17:27:47,622 - DEBUG - Using filetype completion: False
2019-10-29 17:27:47,796 - INFO - Received completion request
2019-10-29 17:27:47,797 - DEBUG - Using filetype completion: False
2019-10-29 17:27:47,967 - INFO - Received completion request
2019-10-29 17:27:47,968 - DEBUG - Using filetype completion: False
2019-10-29 17:27:48,034 - INFO - Received completion request
2019-10-29 17:27:48,035 - DEBUG - Using filetype completion: False
2019-10-29 17:27:48,375 - INFO - Received completion request
2019-10-29 17:27:48,375 - DEBUG - Using filetype completion: False
2019-10-29 17:27:48,639 - INFO - Received completion request
2019-10-29 17:27:48,640 - DEBUG - Using filetype completion: False
2019-10-29 17:27:48,817 - INFO - Received completion request
2019-10-29 17:27:48,818 - DEBUG - Using filetype completion: False
2019-10-29 17:27:49,079 - INFO - Received completion request
2019-10-29 17:27:49,080 - DEBUG - Using filetype completion: False
2019-10-29 17:27:49,199 - INFO - Received completion request
2019-10-29 17:27:49,199 - DEBUG - Using filetype completion: False
2019-10-29 17:27:49,721 - INFO - Received completion request
2019-10-29 17:27:49,721 - DEBUG - Using filetype completion: False
2019-10-29 17:27:49,932 - INFO - Received completion request
2019-10-29 17:27:49,933 - DEBUG - Using filetype completion: False
2019-10-29 17:27:52,043 - INFO - Received event notification
2019-10-29 17:27:52,043 - DEBUG - Event name: CurrentIdentifierFinished
2019-10-29 17:27:52,044 - INFO - Adding ONE buffer identifier for file: /tmp/x.vim
2019-10-29 17:27:52,055 - INFO - Received completion request
2019-10-29 17:27:52,055 - DEBUG - Using filetype completion: False
2019-10-29 17:27:53,036 - INFO - Received event notification
2019-10-29 17:27:53,036 - DEBUG - Event name: FileReadyToParse
2019-10-29 17:27:53,036 - INFO - Adding buffer identifiers for file: /tmp/x.vim
2019-10-29 17:27:53,037 - DEBUG - Refreshing file /tmp/x.vim: State is Open/action Change
2019-10-29 17:27:53,037 - DEBUG - TX: Sending notification: b'Content-Length: 191\r\n\r\n{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"text":"let a = {\\"x\\": \\"y\\"}\\necho substitute()\\n"}],"textDocument":{"uri":"file:///tmp/x.vim","version":7}}}'
2019-10-29 17:27:53,045 - INFO - Received event notification
2019-10-29 17:27:53,045 - DEBUG - Event name: InsertLeave
2019-10-29 17:27:53,141 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///tmp/x.vim","diagnostics":[]}}'
2019-10-29 17:27:56,255 - INFO - Received debug info request
2019-10-29 17:27:57,149 - INFO - Received debug info request

bstaletic commented 5 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?

puremourning commented 5 years ago

https://github.com/ycm-core/ycmd#lsp-based-completers

puremourning commented 4 years ago

I think this is resolved. At least there’s been no activity and we believe it should work via extra conf.

patashish704 commented 4 years ago

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 ?

puremourning commented 4 years ago

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.

patashish704 commented 4 years ago

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:

  1. /tmp/ycm_402gng1j.log:
    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
  2. /tmp/vimcompleter_stderr7bjqrqo9.log
    [blank]
  3. /tmp/ycmd_40171_stdout_err2nyfi.log
    serving on http://localhost:40171
  4. /tmp/ycmd_40171_stderr_ssjgzgj2.log
    
    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

puremourning commented 4 years ago

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.

patashish704 commented 4 years ago

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

puremourning commented 4 years ago

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.

patashish704 commented 4 years ago

Thanks for taking the time to look at it.

bstaletic commented 4 years ago

@puremourning Is this resolved now?

puremourning commented 4 years ago

yes.