client 2 quit with exit code 1 and signal 0 bash-language-server
See original GitHub issueI work with NVIM 0.7 on Ubuntu, using lsp-config and bashls. I got this error after opening a bash file. I checked the lsp log, and it shows following errors
.../vim/lsp/rpc.lua:420 "rpc" "bash-language-server" "stderr"
"/home/user/.local/share/nvim/lsp_servers/bashls/node_modules/bash-language-server/node_modules/vscode-jsonrpc/lib/common/linkedMap.js:40\n
return this._head?.value;\n
^\n\nSyntaxError: Unexpected token .\n
at Module._compile (internal/modules/cjs/loader.js:718:23)\n
at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)\n
at Module.load (internal/modules/cjs/loader.js:641:32)\n
at Function.Module._load (internal/modules/cjs/loader.js:556:12)\n
at Module.require (internal/modules/cjs/loader.js:681:19)\n
at require (internal/modules/cjs/helpers.js:16:16)\n
at Object.<anonymous> (/home/dd/.local/share/nvim/lsp_servers/bashls/node_modules/bash-language-server/node_modules/vscode-jsonrpc/lib/common/api.js:37:21)\n
at Module._compile (internal/modules/cjs/loader.js:774:30)\n
at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)\n
at Module.load (internal/modules/cjs/loader.js:641:32)\n"
I tried #339 solution, but it still not work
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
'Client 1 quit with exit code 1 and signal 0' (when I try to use an ...
I installed neovim 0.6.0 and then exactly folowed the instructions at https://github.com/neovim/nvim-lspconfig , did not change a single ...
Read more >Client 1 quit with exit code 1 and signal 0 jdtls #1837 - GitHub
It worked, deleted jdk and jdtls, cleared the cache, turned off the computer, turned it on, downloaded openjdk 17.0.2, and jdtls, entered a...
Read more >neovim/neovim - Gitter
"Client 1 quit with exit code 2 and signal 0" happens when closing an md and rust file. and js. And probably more...
Read more >Neovim nvim-jdtls Error Client 1 quit with exit code 13 and ...
i tried setting up my neovim with the nvim-jdtls plugin (https://github.com/mfussenegger/nvim-jdtls) But I always get a Client 1 quit with ...
Read more >homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter
aacgain 1.8 AAC‑supporting version of mp3gain
aalib 1.4rc5 Portable ASCII art graphics library
aamath 0.3 Renders mathematical expressions as ASCII art
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just had same issue on Ubuntu 22.04. I’m not practical with nodejs but it should mean that some token has been added in next version of nodejs (used by linkedMap.js). If you installed nodejs through apt package manager you should have version 12.22.9 and it doesn’t work. Maybe there’s a cleaner way but I solved with these steps, but be sure to have npm already installed:
Once
ncommand is done, it should tell you where it installed the new version of nodejs. Try following the output instructions. If they do not work andnode --versionstill shows12.22.9you could find the old executable(s) usingwhereis nodeand delete them. Beware, I’m not sure this can’t break something. I have not had time to test what’s the minimum version required but maybe README.md should be updated.I feel it a bit sketchy but it worked for me. Maybe someone knows a cleaner way to solve the problem.
The problem causes by node version, I close this issus.