jaredly / reason-language-server

A language server for reason, in reason
MIT License
657 stars 84 forks source link

Could not run bsb #462

Closed andremw closed 4 years ago

andremw commented 4 years ago

I was following ReasonML's installation and editor plugin pages (installed bs-platform, created a new project and built it, and then installed your plugin) and bumped into this error:

Setting log location: /Users/andremw/Documents/dev/birthday-greetings-kata/node_modules/.lsp/debug.log
env: node: No such file or directory
env: node: No such file or directory
env: node: No such file or directory
[Error - 8:47:09 AM] Request textDocument/documentSymbol failed.
  Message: Could not run bsb (ran /Users/andremw/Documents/dev/birthday-greetings-kata/reasonml/node_modules/.bin/bsb -version). Output: 
  Code: -32603 

The project repository is here: https://github.com/andremw/birthday-greetings-kata/tree/master/reasonml

I don't get this env: node: No such file or directory anywhere else though.

I've already tried to look at the other related issues, but none of them seemed to accurately describe my problem.

PS: I installed node using nvm. which node output: /Users/andremw/.nvm/versions/node/v10.22.0/bin/node

If you need any other information, let me know!

Thanks!

andremw commented 4 years ago

When I toggle the developer tools I see this error:

%c[Extension Host] %c(node:22340) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Could not run bsb (ran /Users/andremw/Documents/dev/birthday-greetings-kata/reasonml/node_modules/.bin/bsb -version). Output:
No root directory found
3
Could not run bsb (ran /Users/andremw/Documents/dev/birthday-greetings-kata/node_modules/.bin/bsb -version). Output:
undefined
andremw commented 4 years ago

Using n solved the problem.