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

Linux: Can't find bash-language-server on your PATH. #96

Closed
lamyergeier opened this issue Jan 2, 2019 · 17 comments
Closed

Linux: Can't find bash-language-server on your PATH. #96

lamyergeier opened this issue Jan 2, 2019 · 17 comments

Comments

@lamyergeier
Copy link

lamyergeier commented Jan 2, 2019

OS: Ubuntu 18.04

I have installed the language server as follows

npm install -g bash-language-server --verbose

npm info it worked if it ends with ok
npm verb cli [ '/home/nikhil/.nvm/versions/node/v10.15.0/bin/node',
npm verb cli   '/home/nikhil/.nvm/versions/node/v10.15.0/bin/npm',
npm verb cli   'install',
npm verb cli   '-g',
npm verb cli   'bash-language-server',
npm verb cli   '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb npm-session a35f15e597cc1aef
npm http fetch GET 304 https://registry.npmjs.org/bash-language-server 132ms (from cache)
npm timing stage:loadCurrentTree Completed in 565ms
npm timing stage:loadIdealTree:cloneCurrentTree Completed in 2ms
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 50ms
npm http fetch GET 304 https://registry.npmjs.org/glob 35ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tree-sitter-bash 69ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tree-sitter 72ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/urijs 78ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/request 92ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/request-promise-native 94ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/vscode-languageserver 95ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/turndown 5079ms
npm http fetch GET 304 https://registry.npmjs.org/fs.realpath 37ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/inflight 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/once 43ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/minimatch 45ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/inherits 48ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/path-is-absolute 50ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/wrappy 26ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/brace-expansion 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/balanced-match 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/concat-map 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/aws4 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/caseless 45ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/combined-stream 45ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/extend 49ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/form-data 60ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/http-signature 83ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/har-validator 93ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/is-typedarray 96ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/forever-agent 102ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/aws-sign2 105ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/isstream 64ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/oauth-sign 54ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mime-types 64ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/json-stringify-safe 66ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/performance-now 54ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/qs 43ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/safe-buffer 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tough-cookie 40ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tunnel-agent 39ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/uuid 38ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/delayed-stream 25ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/asynckit 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mime-db 25ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/har-schema 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/ajv 31ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/uri-js 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fast-deep-equal 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fast-json-stable-stringify 31ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/json-schema-traverse 34ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/punycode 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/jsprim 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/assert-plus 31ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/sshpk 49ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/extsprintf 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/verror 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/json-schema 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/core-util-is 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/jsbn 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/dashdash 33ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/getpass 41ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/ecc-jsbn 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/safer-buffer 44ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/asn1 48ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/bcrypt-pbkdf 47ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tweetnacl 49ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/psl 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/request-promise-core 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/stealthy-require 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/lodash 24ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/prebuild-install 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/nan 46ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/expand-template 43ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/noop-logger 43ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/github-from-package 46ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/detect-libc 51ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/node-abi 51ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mkdirp 53ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/napi-build-utils 58ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/pump 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/rc 38ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/which-pm-runs 53ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tar-fs 55ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/minimist 113ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/npmlog 113ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/os-homedir 113ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/simple-get 65ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/semver 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/are-we-there-yet 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/console-control-strings 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/set-blocking 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/gauge 129ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/readable-stream 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/delegates 35ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/isarray 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/process-nextick-args 33ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/util-deprecate 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/string_decoder 39ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/signal-exit 23ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/aproba 35ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/has-unicode 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/object-assign 38ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/string-width 40ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/strip-ansi 40ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/wide-align 41ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/code-point-at 24ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/is-fullwidth-code-point 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/number-is-nan 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/ansi-regex 22ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/end-of-stream 22ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/strip-json-comments 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/ini 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/deep-extend 47ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/decompress-response 25ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/simple-concat 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mimic-response 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/chownr 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tar-stream 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/xtend 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/to-buffer 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/buffer-alloc 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/bl 37ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fs-constants 40ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/buffer-fill 24ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/buffer-alloc-unsafe 25ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/jsdom 72ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/array-equal 52ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/data-urls 52ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/cssom 52ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/abab 54ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/html-encoding-sniffer 53ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/acorn-globals 55ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/domexception 54ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/cssstyle 55ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/acorn 62ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/escodegen 65ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/nwsapi 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/left-pad 51ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/w3c-hr-time 47ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/pn 49ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/parse5 52ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/symbol-tree 51ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/webidl-conversions 52ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/whatwg-encoding 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/sax 55ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/whatwg-mimetype 46ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/whatwg-url 38ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/xml-name-validator 31ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/ws 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/acorn-walk 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tr46 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/lodash.sortby 93ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/source-map 33ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/optionator 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/esutils 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/esprima 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/estraverse 43ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/deep-is 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/wordwrap 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/levn 33ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fast-levenshtein 35ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/prelude-ls 69ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/type-check 72ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/iconv-lite 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/browser-process-hrtime 88ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/async-limiter 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/vscode-uri 26ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/vscode-languageserver-protocol 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/vscode-languageserver-types 26ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/vscode-jsonrpc 34ms (from cache)
npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 7384ms
npm timing stage:loadIdealTree Completed in 7472ms
npm timing stage:generateActionsToTake Completed in 20ms
npm verb correctMkdir /home/nikhil/.npm/_locks correctMkdir not in flight; initializing
npm verb lock using /home/nikhil/.npm/_locks/staging-2f270054bd003e5a.lock for /home/nikhil/.nvm/versions/node/v10.15.0/lib/node_modules/.staging
npm timing action:extract Completed in 28ms
npm info lifecycle [email protected]~preuninstall: [email protected]
npm info lifecycle [email protected]~uninstall: [email protected]
npm verb unbuild rmStuff [email protected] from /home/nikhil/.nvm/versions/node/v10.15.0/lib/node_modules
npm info lifecycle [email protected]~postuninstall: [email protected]
npm timing action:unbuild Completed in 4ms
npm timing action:remove Completed in 37ms
npm timing action:finalize Completed in 11ms
npm timing action:refresh-package-json Completed in 4ms
npm info lifecycle [email protected]~preinstall: [email protected]
npm timing action:preinstall Completed in 5ms
npm info linkStuff [email protected]
npm verb linkBins [ { 'bash-language-server': './bin/main.js' },
npm verb linkBins   '/home/nikhil/.nvm/versions/node/v10.15.0/bin',
npm verb linkBins   true ]
/home/nikhil/.nvm/versions/node/v10.15.0/bin/bash-language-server -> /home/nikhil/.nvm/versions/node/v10.15.0/lib/node_modules/bash-language-server/bin/main.js
npm timing action:build Completed in 3ms
npm info lifecycle [email protected]~install: [email protected]
npm timing action:install Completed in 0ms
npm info lifecycle [email protected]~postinstall: [email protected]
npm timing action:postinstall Completed in 0ms
npm verb unlock done using /home/nikhil/.npm/_locks/staging-2f270054bd003e5a.lock for /home/nikhil/.nvm/versions/node/v10.15.0/lib/node_modules/.staging
npm timing stage:executeActions Completed in 104ms
npm timing stage:rollbackFailedOptional Completed in 0ms
npm timing stage:runTopLevelLifecycles Completed in 8165ms
+ [email protected]
updated 1 package in 8.167s
npm verb exit [ 0, true ]
npm timing npm Completed in 8467ms
npm info ok

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

  "bashIde.path": "/home/nikhil/.nvm/versions/node/v10.15.0/bin/bash-language-server",

But I keep getting this error:

Can't find bash-language-server on your PATH. Please install it using "npm i -g bash-language-server".
@dskad
Copy link

dskad commented Jan 2, 2019

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 bash-language-server from the command line.

Make sure everything is up to date with
npm update -g

If you still see an error, you can rebuild your extensions with
npm rebuild -g

@lamyergeier
Copy link
Author

lamyergeier commented Jan 3, 2019

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.

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 bash-language-server from the command line.

Make sure everything is up to date with
npm update -g

If you still see an error, you can rebuild your extensions with
npm rebuild -g

@virgilwashere
Copy link

virgilwashere commented Mar 8, 2019

@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

@skovhus
Copy link
Collaborator

skovhus commented Mar 23, 2019

@anishmittal2020 did you figure it out?

@ctranxuan
Copy link

Hi,
I have the same issue on a Ubuntu 18.4: VS Code is installed as a snap.
Is it supported through snap?

@scalavision
Copy link

scalavision commented May 29, 2019

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 ..

@skovhus
Copy link
Collaborator

skovhus commented May 29, 2019

Would it be possible to add a config property to point to the path of bash-language-server in vscode?

It is already there as bashIde.path. Can you try that out?

@GaurangTandon
Copy link

GaurangTandon commented May 30, 2019

Hi @skovhus , I have the same issue (Ubuntu 18.04; code 1.34.0).
I set the bashIde.path: "/home/gt/.nvm/versions/node/v10.15.3/bin/bash-language-server".
I have tried several intended workarounds, including the one of installing all three dependencies simultaneously, however, none of them has worked for me. I can start the language server from the terminal successfully.

@vmfhrmfoaj
Copy link

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 bin directory of ASDF to PATH variable globally (So, VS Code process(i.e. instance) do not know where is bash-language-server.), and I have set bashIde.path to /home/USER/.asdf/shims/bash-language-server.

/home/USER/.asdf/installs/nodejs/10.16.0/.npm/bin/bash-language-server:

#!/usr/bin/env node
...

I think, due to #!/usr/bin/env node, VS Code use system(i.e. global) nodejs instead of local nodejs. Because the environment variable of VS Code process not has information of local nodejs.

I added bin directory of ASDF into PATH in .profile, then the problem is solved.
(I think Xorg load .profile file.)

@Abhinav1217
Copy link

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 bash-langage-server using yarn global add bash-language-server, It didn't work even though I have the yarn bin in my path. I manually configured "bashIde.path": "$HOME/.yarn/bin/bash-langage-server" and then replaced $HOME with /home/abhinav just to be sure.
Then I removed it from yarn entirely, used npm, and followed same steps. I even made sure my system is up to date.

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.

@skovhus
Copy link
Collaborator

skovhus commented Jul 31, 2019

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.

@lamyergeier lamyergeier changed the title Ubuntu 18.4: Can't find bash-language-server on your PATH. Can't find bash-language-server on your PATH. Jul 31, 2019
@lamyergeier lamyergeier changed the title Can't find bash-language-server on your PATH. Linux: Can't find bash-language-server on your PATH. Jul 31, 2019
@lamyergeier
Copy link
Author

lamyergeier commented Jul 31, 2019

@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

@Abhinav1217
Copy link

Abhinav1217 commented Aug 1, 2019

@skovhus Since I have switched back to yarn, which bash-language-server results to /home/abhinav/.yarn/bin/bash-language-server . I am not a linux noob, I didn't want to waste your time for silly mistakes on my end, hence I did check these stuff before posting here. Both yarn and npm bin path is properly setup. And I made sure I removed yarn's install before I installed it with npm, and visa-versa.

Also I manually added the path in vscode setting,"bashIde.path": "/home/abhinav/.yarn/bin/bash-langage-server" which you have mentioned few replies above. So even if my $PATH was not properly set up, directly pointing it in configuration should have worked. I even used $ bash-language-server start to manually start the language server and restarted the vs-code editor. Still didn't work.

@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.

abhinav@abhinav-sol ~ $ bash-language-server --version
Version is 1.5.6

@lamyergeier
Copy link
Author

@Abhinav1217 I will reopen, I had closed because the issue was resolved. @skovhus Should I reopen this?

@virgilwashere
Copy link

virgilwashere commented Aug 2, 2019 via email

@HsunGong
Copy link

sudo ln -s /usr/bin/nodejs /usr/bin/node May help.
From Pull 145, you can see more info, or just edit in your own extension file.

@cr1st1p
Copy link

cr1st1p commented Oct 5, 2019

For me, Linux, Manjaro (Arch based), I had to add Bash.idepath to settings.json, even though:

which bash-language-server
/home/cristi/.nvm/versions/node/v11.6.0/bin/bash-language-server
bash-language-server -v
Version is 1.6.1

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