Closed Malabarba closed 2 years ago
To me this seems to be a problem with how the peer dependencies were being installed. This was the faulty output from installing the graphql-lsp server
-*- mode: compilation; default-directory: "~/.emacs.d/.cache/lsp/npm/graphql-language-service-cli/lib/node_modules/graphql-language-service-cli/" -*-
Comint started at Fri Aug 26 11:14:12
/home/simon/.nvm/versions/node/v14.19.0/bin/npx --yes npm-install-peers
ERROR: You must supply a command.
... more irrelevant output
The culprit is the --yes
argument, which needs to come last. After I ran this manually in the ~/.emacs.d/.cache/lsp/npm/graphql-language-service-cli/lib/node_modules/graphql-language-service-cli
directory, lsp started up fine.
which needs to come last.
Actually, it's a flag that was added after one of node's ever-famous breaking changes that breaks compatibility with older versions of node.
Apparently there's a workaround that I'm looking at, though I would also recommend upgrading from a node version that's EOL in 7 months.
@altschuler @Malabarba please try the linked PR and see if that resolves the issue :)
@altschuler @Malabarba please try the linked PR and see if that resolves the issue :)
I've updated node, no problems since then. Thank you very much! :)
I've updated node, no problems since then. Thank you very much! :)
Okay, well feel free to reopen this if I've just unfixed it 😄
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
When installing graphql lsp, it runs
However, once the server is activated, it complains about a missing module
graphql-language-service
. Installing that directly (in the terminal) fixed the issue.I'd make a pull request, but I thought it best to report and let the experts do it. :smile:
Steps to reproduce
M-x lsp
I immediately got that message saying the server exited and suggesting I check the stderr buffer.
Expected behavior
The mode would turn on without erros
Which Language Server did you use?
graphql-language-service
OS
Linux
Error callstack
No response
Anything else?
Issue is fixed by installing graphql-language-service