redhat-developer / redhat-developer/yaml-language-server

Failed to get language server version with node@23.3.0

Open
#999 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.