Hi! I'm trying to setup YouCompleteMe to use the yaml-language-server. Managed to make the setup, but every time I ask for completion, I receive the following error:
ResponseFailedException: Request failed: -32603: Request textDocument/completion failed with message: Cannot read properties of undefined (reading 'filter')
My .vimrc snippet setting up the yaml ls is just as in the ycm-core examples:
\ {
\ 'name': 'yaml',
\ 'cmdline': [ 'yaml-language-server', '--stdio' ],
\ 'filetypes': [ 'yaml' ],
\ 'capabilities': { 'textDocument': { 'completion': { 'completionItem': { 'snippetSupport': v:true } } } },
\ },
I also tried to use the Kubernetes schema by setting up a .ycm_extra_conf.py in my home directory (which gets executed, as I added logs in it). The same error occurs regardless of the presence of .ycm_extra_conf.py:
def Settings(**kwargs):
if kwargs["language"] == "yaml":
return {
"ls": {
"yaml.schemas": {
"kubernetes": "/*.yaml"
},
}
}
Any idea what might be wrong or missing in the setup?