You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using nvim LSP to run yaml-language-server with schema store.
When the server starts, with minimal configuration, I see this error:
[DEBUG][2022-05-14 14:30:22] .../vim/lsp/rpc.lua:454 "rpc.receive" {
jsonrpc = "2.0",
method = "telemetry/event",
params = {
name = "yaml.validation.error",
properties = "Error: Expected '1.1', '1.2' or null as first argument, but found: undefined\n at Document.setSchema (/Users/mavni/Repos/yaml-language-server/node_modules/yaml/dist/doc/Document.js:273:23)\n at new Document (/Users/mavni/Repos/yaml-language-server/node_modules/yaml/dist/doc/Document.js:53:14)\n at Object.composeDoc (/Users/mavni/Repos/yaml-language-server/node_modules/yaml/dist/compose/compose-doc.js:10:17)\n at Composer.next (/Users/mavni/Repos/yaml-language-server/node_modules/yaml/dist/compose/composer.js:149:40)\n at next (<anonymous>)\n at Composer.compose (/Users/mavni/Repos/yaml-language-server/node_modules/yaml/dist/compose/composer.js:131:25)\n at compose.next (<anonymous>)\n at Function.from (<anonymous>)\n at Object.parse (/Users/mavni/Repos/yaml-language-server/out/server/src/languageservice/parser/yamlParser07.js:45:28)\n at YamlDocuments.ensureCache (/Users/mavni/Repos/yaml-language-server/out/server/src/languageservice/parser/yaml-documents.js:224:40)",
type = "track"
}
}
Change the cmd (line 70) in minimal_init.lua to reflect the language server location on your machine
Run nvim (version 0.7 at least):
nvim -nu minimal_init.lua pod.yaml
See the error by reading this file:
$ grep "or null"$HOME/.cache/nvim/lsp.log
properties = "Error: Expected '1.1', '1.2' or null as first argument, but found: undefined at Document.setSchema (/Users/mavni/Repos/yaml-language-server/node_modules/yaml/dist/doc/Document.js:273:23) at new Document (/Users/mavni/Repos/yaml-language-server/node_modules/yaml/dist/doc/Document.js:53:14) at Object.composeDoc (/Users/mavni/Repos/yaml-language-server/node_modules/yaml/dist/compose/compose-doc.js:10:17) at Composer.next (/Users/mavni/Repos/yaml-language-server/node_modules/yaml/dist/compose/composer.js:149:40) at next (<anonymous>) at Composer.compose (/Users/mavni/Repos/yaml-language-server/node_modules/yaml/dist/compose/composer.js:131:25) at compose.next (<anonymous>) at Function.from (<anonymous>) at Object.parse (/Users/mavni/Repos/yaml-language-server/out/server/src/languageservice/parser/yamlParser07.js:45:28) at YamlDocuments.ensureCache (/Users/mavni/Repos/yaml-language-server/out/server/src/languageservice/parser/yaml-documents.js:224:40)",
Describe the bug
I'm using nvim LSP to run yaml-language-server with schema store.
When the server starts, with minimal configuration, I see this error:
Expected Behavior
Schema validation and completion to work
Steps to Reproduce
Change the cmd (line 70) in
minimal_init.lua
to reflect the language server location on your machineRun nvim (version 0.7 at least):
Settings
Environment
The text was updated successfully, but these errors were encountered: