Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neovim: client quit with exit code 1 and signal 0 #1021

Open
rickywu opened this issue Nov 2, 2023 · 2 comments
Open

Neovim: client quit with exit code 1 and signal 0 #1021

rickywu opened this issue Nov 2, 2023 · 2 comments

Comments

@rickywu
Copy link

rickywu commented Nov 2, 2023

Code editor

Neovim

Platform

Windows

Version

5.0.0

What steps will reproduce the bug?

Install bashls by Mason in Neovim,
package all the runtime include nvim and nvim-data to another offline system and open shell script got error
the runtime include neovim nvim-data nvim dots, nodejs, python and compilers, keep the same.

How often does it reproduce? Is there a required condition?

stoped after start 1st time

What is the expected behavior?

bashls should be one lsp running in neovmim

What do you see instead?

client quit with exit code 1 and signal 0
LspLog:

[ERROR][2023-11-02 13:01:54] .../vim/lsp/rpc.lua:734 "rpc" "d:\\DevTools\\Neovim\\nvim-data\\mason\\bin\\bash-language-server.CMD" "stderr" "d:\\DevTools\\Neovim\\nvim-data\\mason\\packages\\bash-language-server\\node_modules\\bash-language-server\\node_modules\\vscode-jsonrpc\\lib\\common\\linkedMap.js:40\r\n return this._head?.value;\r\n ^\r\n\r\nSyntaxError: Unexpected token .\r\n at Module._compile (internal/modules/cjs/loader.js:721:23)\r\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)\r\n at Module.load (internal/modules/cjs/loader.js:653:32)\r\n at tryModuleLoad (internal/modules/cjs/loader.js:593:12)\r\n at Function.Module._load (internal/modules/cjs/loader.js:585:3)\r\n at Module.require (internal/modules/cjs/loader.js:690:17)\r\n at require (internal/modules/cjs/helpers.js:25:18)\r\n at Object.<anonymous> (d:\\DevTools\\Neovim\\nvim-data\\mason\\packages\\bash-language-server\\node_modules\\bash-language-server\\node_modules\\vscode-jsonrpc\\lib\\common\\api.js:37:21)\r\n at Module._compile (internal/modules/cjs/loader.js:776:30)\r\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)\r\n"

Additional information

The env which installed by mason works well
also null-ls installed by mason works well, but bashls exited

@underwoodtan
Copy link

Please ensure you have node version 16 or newer (node --version).

@rickywu
Copy link
Author

rickywu commented Nov 10, 2023

I'm using node 20.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants