Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yaml-language-server initialize failed #649

Closed
jfcherng opened this issue Jul 14, 2019 · 1 comment
Closed

yaml-language-server initialize failed #649

jfcherng opened this issue Jul 14, 2019 · 1 comment
Labels

Comments

@jfcherng
Copy link
Contributor

I am trying to use yaml-language-server but LSP simply shows LSP: Request initialize failed with message: Cannot read property 'dynamicRegistration' of undefined in ST's console.

Configuration

"yaml-lsp": {
    // https://github.com/redhat-developer/yaml-language-server
    // yarn global add yaml-language-server
    "enabled": true,
    "command": [
        "yaml-language-server",
        "--stdio",
    ],
    "scopes": ["source.yaml"],
    "syntaxes": ["Packages/YAML/YAML.sublime-syntax"],
    "languageId": "yaml",
},

Log

LSP: starting ['yaml-language-server.cmd', '--stdio']
LSP:  --> initialize
LSP: window 2 added session yaml-lsp
LSP:      None
LSP: Request initialize failed with message: Cannot read property 'dynamicRegistration' of undefined
@tomv564
Copy link
Contributor

tomv564 commented Jul 18, 2019

Ah, we didn't announce our support for workspace/symbol, which is an optional field they hardcoded a check for 'dynamicRegistration' through: https://github.com/redhat-developer/yaml-language-server/blob/06929e3849bbfe3a6b2cf512ccd1061a1cc26a89/src/server.ts#L348

Will add the client capability now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants