kabouzeid / nvim-lspinstall

Provides the missing :LspInstall for nvim-lspconfig
MIT License
526 stars 67 forks source link

LspInstall typescript: Process Exited 122 #47

Open Kourpa opened 3 years ago

Kourpa commented 3 years ago

Unsure why I'm getting this error. Any idea what I might be missing?

Running the commands manually works fine.

image image image Installed packages

kabouzeid commented 3 years ago

no idea honestly :/ can you scroll up in the buffer to see the output before the error?

Kourpa commented 3 years ago

That is unfortunately the top of the buffer, unless I'm missing something silly. Does nvim-lspinstall have any log files I might be able to poke through?

Same result whenever attempting to install any language server. Tested with :LspInstall python Fails with the same error but I can navigate to the specified directory and run the NPM commands myself problem.

Kourpa commented 3 years ago

Looks like it's attempting to use bash for some reason, and I don't have bash installed so it dies. Any reasoning behind doing this and not just using whatever the default shell is? Or if you want to do this downgrade to sh as that's more likely to be installed.

🤷🏼‍♂️

https://github.com/kabouzeid/nvim-lspinstall/blob/471603f786c6b2aa9f667da99fc3dfef43de3e12/lua/lspinstall.lua#L34-L39

kabouzeid commented 3 years ago

I've been using this for downgrading because it doesn't work with fish. I opted for bash instead of sh because I was using [[ -f ]] which is not available in sh. I've since replaced it with test -f which should be available on sh. I don't have time to test compatibility with sh right now though :/

kabouzeid commented 3 years ago

Relevant line: https://github.com/kabouzeid/nvim-lspinstall/blob/471603f786c6b2aa9f667da99fc3dfef43de3e12/lua/lspinstall.lua#L36

Kourpa commented 3 years ago

Also Relevant: https://github.com/kabouzeid/nvim-lspinstall/blob/471603f786c6b2aa9f667da99fc3dfef43de3e12/lua/lspinstall.lua#L72