redhat-developer / redhat-developer/yaml-language-server
Containerized Language Server needs tweak
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 352
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 11
Description
vscode-languageserver has long standing issue with working in container.
Watchdog kills server soon after start because cannot reach parent pid.
Just exit with code 1, without any log messages.
See:
https://github.com/microsoft/vscode-languageserver-node/issues/857
https://github.com/neovim/neovim/issues/14504
For example this nvim plugin mentions solutions:
- container must work in host pid namespace
- client must not set "processId"
https://github.com/lspcontainers/lspcontainers.nvim?tab=readme-ov-file#process-id
So, this pitfall is worth to mention next to docker image.
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
No documentation file or test is named; start by locating the documentation next to the Docker image and review how container usage is described. Document the process-ID and host PID namespace pitfall, including the referenced solutions, so users can avoid the watchdog exiting silently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, typescript
- Domain
- devtools, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100