-
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
"Can't find bash-language-server on your PATH...." on Windows #41
Comments
Thanks for reporting this. It might be related to #40 |
Nope, still having the same issue.
|
@mads-hartmann As far as I understand it, finding the path to the executable is not the problem: PS C:\Windows\system32> &"$(Join-Path "$(npm.cmd bin -g)" "bash-language-server.cmd")" -v
Version is 1.3.1 (if that's what vscode-client/src/util.ts does) |
I have the same issue:
Running it from shell I get this error:
|
Just to clarify, this issue is supposed to be open. |
I think this is failing to require the
this is my setup with npm:6.1.0 node:v10.2.1 on ubuntu |
This thread could be conflating 2 issues here. I think that you can build However the ability of VSCode or Atom to launch it is a separate issue. Despite the Building on WindowsFirst you need to install python and windows build tools via npm in Powershell (Administrator mode)... per https://www.npmjs.com/package/windows-build-tools
Then install bash-language-server
Launching from VSCode or AtomFor Atom, I think it's happening here in main.js. Maybe "spawn" isn't smart enough to find the npm package in windows Similar "spawn" issues on SO:
Possible alternatives to Node spawn on windows: |
Hi, I am on Linux, not Windows. Thank you |
Having the same issue on mac :/ |
@pryorda I think that might be an unrelated issue... But how did you install the server? Yarn or npm? And which Shell are you using? |
zsh, npm i -g bash-language-server
|
Additional Output.
|
Looks like I had to install Xcode, accept the license, blah blah. Thanks |
I've just released version 1.3.1 of the VSCode extension which adds a new configuration option |
I'm on Gentoo, it can't seem to find the server, because it's dumping the following:
Why is it wanting a debug module? |
@Lucretia Are you setting the path explicitly using the new config options? I'm not sure about the missing debug module. @maxbrunsfeld any idea? |
@mads-hartmann I've had the option not set and had it set, same issue. Running the bash-language-server directly produces the above error. |
@Lucretia How did you install bls? |
I think that on an older version of Tree-sitter, that error was thrown even if the
I'm guessing that people are installing your module with |
@pryorda |
Have you tried to build from source to see what happens? |
Version 1.3.1 on Ubuntu 18.04 works for me! 👍 |
@mads-hartmann Once this PR lands, we could do something similar for |
@maxbrunsfeld I think you forgot the link? 😊 |
🤦♂️ thanks. I added it above. |
@maxbrunsfeld Just had a look - that would be amazing - the current install process for this project is way more complicated then I would've liked |
If you change the prefix before installing, it works. You can specify your global lib folder. For example, I did |
@fakuivan @thehandcoder please try to install the latest |
I was having this problem as well, and oddly, by running the following command it fixed it for me on Ubuntu 18.04, VS Code 1.27.2: sudo npm i -g bash-language-server tree-sitter tree-sitter-bash --unsafe-perm I ran the install command for each of the modules separately, and that didn't work... it was only when I did it all at once did it resolve things. |
@alexford-bg Thank you so much, work like a charm on MacOSX, too. |
The tail of that log is:
|
Thank you! That is THE only thing I could find that worked. This was on MX 18.1 (Continuum) |
Setting an absolute path for |
@nottoseethesun just to be clear, where did you set this? It seems bash-language server and other npm scripts are not on your path.... |
@skovhus I set it in the VSCode Prefs. I did put the server in my path, and I did also do the "hack" of installing the dep's globally as well. I am using |
I have the same problem. Although I had installed bash-language-server and set BashIDE-path |
incurred this problem on mac Catalina, have installed bash-language-server and Xcode 10.2.1 with accepted license. added to Bash IDE path:
ran:
returned:
|
Still not working same Brian's report. |
With the new version (1.4.0) of the VS Code extension, we got rid of the manual npm install step of the bash-language-server. Hopefully, this will resolve npm installation issues. :) The latest version of Let me know if this solves the issues. |
I've installed the package as advised but the extension fails with this error:
The text was updated successfully, but these errors were encountered: