Closed TamaMcGlinn closed 3 years ago
I should not that yarn run diagnostic-languageserver
does work, so I tried adding an executable file called diagnostic-languageserver to /usr/bin/
with these contents:
#!/usr/bin/env bash
yarn run diagnostic-languageserver $@
Now, for the same example shell script from the readme, :CocRestart
says:
Uncaught exception: Header must provide a Content-Length property.
{ // diagnostic-languageserver "diagnostic-languageserver.filetypes": { "sh": "shellcheck" } }
This is config of coc-diagnostic
instead of this LSP server. if use coc-diagnostic
and it's no need to install this LSP server.
It still isn't possible to run diagnostic-languageserver from the commandline.
Have no idea, yarn should link the bin script after install.
Did you add global bin folder to PATH?
export PATH="$(yarn global bin):$PATH"
Thank you lucax88x; that's what should be added to the readme.
After running the installation procedure in the README:
It still isn't possible to run
diagnostic-languageserver
from the commandline. Which is why trying to run e.g. shellcheck through diagnostic-languageserver fails with this message:To Reproduce
Expected behavior I expected the diagnostic messages to be shown as in the readme.
Screenshots https://imgur.com/S9nCEQG
Desktop (please complete the following information):
Linux tardis 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux
Log: