-
Notifications
You must be signed in to change notification settings - Fork 129
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
Linux: Can't find bash-language-server on your PATH. #96
Comments
I just ran into this! If you updated your version of nodejs since installing bash-language-server, you might need to rebuild the extension or one of it's supporting extensions. You can see the error if you run Make sure everything is up to date with If you still see an error, you can rebuild your extensions with |
It didn't help me. I did the following $ npm update -g
$ npm rebuild -g
$ bash-language-server start But nothing happens, there is no output and no error, the cursor keeps blinking.
|
@anishmittal2020 are you running Windows and WSL Ubuntu? I am, and I was having the same experience. My integrated terminal is set to WSL bash, with nvm/npm enabled. Until I saw this comment in Issue #41. Ran from my home directory, not project workspace. ~$ nvm use --lts
Now using node v10.15.3 (npm v6.4.1)
~$ npm i -g bash-language-server tree-sitter tree-sitter-bash --unsafe-perm
....
~$ which bash-language-server
/home/virgil/.nvm/versions/node/v10.15.3/bin/bash-language-server |
@anishmittal2020 did you figure it out? |
Hi, |
Would it be possible to add a config property to point to the path of bash-language-server in vscode? I am no NixOS and I also have this problem. I have no problem starting the language server manually .. |
It is already there as |
Hi @skovhus , I have the same issue (Ubuntu 18.04; code 1.34.0). |
Hi @anishmittal2020, First over all, I use Gentoo and ASDF, so there may be slight difference in between my case and your case. I didn't add
#!/usr/bin/env node
... I think, due to I added |
Hi, I was going to open same issue but I saw this to I better chip in here. I am using Solus OS and am having same issue. I initially installed I am still getting same popup, that bash-language-server is not found on my PATH. I was hoping that at manually setting the path should work but it doesn't. I can't understand why. |
If you open a shell and run |
@skovhus For me the problem got solved eventually (may be due to the updates that you might have made). I am using: $ bash-language-server --version
Version is 1.5.6 |
@skovhus Since I have switched back to yarn, Also I manually added the path in vscode setting, @anishmittal2020 Since I installed it yesterday after reading setup for this extension, mine is up to date too. I don't know why you closed it on me when this issue isn't resolved yet.
|
@Abhinav1217 I will reopen, I had closed because the issue was resolved. @skovhus Should I reopen this? |
```console
$ which bash-language-server
/home/virgil/.yarn/bin/bash-language-server
```
Virgil
…On Wed, 31 Jul 2019 at 16:06, Kenneth Skovhus ***@***.***> wrote:
If you open a shell and run which bash-language-server, what is the
output? If it isn’t there, then you are having trouble installing it. If it
is there, then we cannot find it in vs code due to path issues.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#96>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABBFJHSM7LK3RHFYCSIB2J3QCETU3ANCNFSM4GM26GQQ>
.
|
|
For me, Linux, Manjaro (Arch based), I had to add Bash.idepath to settings.json, even though:
|
OS: Ubuntu 18.04
I have installed the language server as follows
Path:
$ type bash-language-server bash-language-server is /home/nikhil/.nvm/versions/node/v10.15.0/bin/bash-language-server
VS Code settings.json
But I keep getting this error:
The text was updated successfully, but these errors were encountered: