redhat-developer / redhat-developer/yaml-language-server
Failed to get language server version with node@23.3.0
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 352
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 11
Description
Describe the bug
yamlls is attached to a buffer however does not work.
Expected Behavior
version info should be present in health checks.
Current Behavior
Currently a yaml file is not able to format
Steps to Reproduce
:lspinfo - will show you Failed to get version
lspconfig: require("lspconfig.health").check()
LSP configs active in this session (globally) ~
- Configured servers: lua_ls, terraformls, yamlls, jsonls, powershell_es, bashls
- OK Deprecated servers: (none)
LSP configs active in this buffer (bufnr: 1) ~
- Language client log: ~/.local/state/nvim/lsp.log
- Detected filetype: `yaml`
- 2 client(s) attached to this buffer
- Client: `yamlls` (id: 1, bufnr: [1])
root directory: ~/out/make/AD/ansible-avd-base/
filetypes: yaml, yaml.docker-compose, yaml.gitlab
cmd: ~/.local/share/nvim/mason/bin/yaml-language-server --stdio
version: `?` (Failed to get version) Tried:
`/Users/mysuer/.local/share/nvim/mason/bin/yaml-language-server --version`
`/Users/myuser/.local/share/nvim/mason/bin/yaml-language-server -version`
`/Users/myuser/.local/share/nvim/mason/bin/yaml-language-server version`
`/Users/myuser/.local/share/nvim/mason/bin/yaml-language-server --help`
executable: true
autostart: true
Environment
- Windows
- Mac
- Linux
- other (please specify)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the report with Node 23.3.0 using the yaml-language-server --version checks shown in the issue, then inspect the Neovim health output and language-server logs. Done means the YAML server reports a version in health checks and YAML formatting works for the reporter's setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100