josa42 / coc-sh

SH language server extension using bash-language-server for coc.nvim.
MIT License
209 stars 4 forks source link

bash-language-server/bin/main.js not found #5

Closed doronbehar closed 5 years ago

doronbehar commented 5 years ago

Hey,

I'm very pleased someone has been putting his time into creating this extension. Thanks!

I keep getting the following error message though, for every sh file I open:

Error: Command "/home/doron/.config/coc/extensions/node_modules/coc-sh/node_modules/bash-language-server/bin/main.js" of bash-language-server is not executable: Error: not found: /home/doron/.config/coc/extensions/node_modules/coc-sh/node_modules/bash-language-server/bin/main.js
    at LanguageClient.createMessageTransports (/home/doron/.files/.config/nvim/bundle/coc/lib/language-client/index.js:344:23)

I guess there's a problem with this line:

https://github.com/josa42/coc-sh/blob/653a48873d240bb080cd9da3da1897cf26d47810/src/extension.ts#L10

When I go to /home/doron/.config/coc/extensions/node_modules/coc-sh, I see in node_modules/ only the following:

$ tree -a node_modules
node_modules
└── .bin
    └── bash-language-server -> ../../../bash-language-server/bin/main.js

1 directory, 1 file

Any idea why is this happening?

doronbehar commented 5 years ago

Thanks! I tested.