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

Absent --help

Open
#314 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
1.5k
Forks
352
Avg merge
2d 7h
Merged PRs (30d)
11

Description

Hi!

I'm trying to set this up, with LanguageClient-NeoVim — and it doesn't work — and I don't know why. Any help?

$ yaml-language-server --help
/usr/local/lib/node_modules/yaml-language-server/node_modules/vscode-languageserver/lib/main.js:700
        throw new Error("Connection input stream is not set. " + commandLineMessage);
        ^

Error: Connection input stream is not set. Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'
    at _createConnection (/usr/local/lib/node_modules/yaml-language-server/node_modules/vscode-languageserver/lib/main.js:700:15)
    at Object.createConnection (/usr/local/lib/node_modules/yaml-language-server/node_modules/vscode-languageserver/lib/main.js:647:12)
    at Object.<anonymous> (/usr/local/lib/node_modules/yaml-language-server/out/server/src/server.js:258:42)
    at Module._compile (internal/modules/cjs/loader.js:1076:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:941:32)
    at Function.Module._load (internal/modules/cjs/loader.js:782:14)
    at Module.require (internal/modules/cjs/loader.js:965:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/yaml-language-server/bin/yaml-language-server:3:1)

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

Start with the bin/yaml-language-server entry point and trace the command-line handling into out/server/src/server.js. Run yaml-language-server --help while following how the connection is created; done means the command prints usage information and exits without requiring a transport such as --stdio or --node-ipc.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.