reasonml-editor / atom-ide-reason

ReasonML/OCaml language support for Atom-IDE, using ocaml-language-server under the hood.
MIT License
34 stars 8 forks source link

Getting opaque error while running bsb on save #40

Closed johnhaley81 closed 5 years ago

johnhaley81 commented 5 years ago

Using RLS with "Run bsb on save" I'm getting an error that doesn't tell me what's going on:

image

This is (probably?) a RLS issue but the display issue is (probably?) related to the plugin.

zaaack commented 5 years ago

@johnhaley81 Did you try running ./node_modules/.bin/bsb -version in your project root? Looks you didn't install(link) bs-platform in your project.

johnhaley81 commented 5 years ago

Thanks for getting back so fast @zaaack !

So it looks like I did a yarn add <package> which apparently corrupted my bsb? After I nuked node_modules and reinstall the packages it worked. So really this isn't an issue with either package :)

The only real actionable thing here is probably a better error message but that error message might be "Don't use yarn" :(

alex35mil commented 5 years ago

FWIW this should be fixed in bs-platform@4.0.17