Open desmond-dsouza opened 6 years ago
I've tried the following:
npm start
(which kicks off its bsb -w
)kill -9 the_bsb_process_id
The built-in language server does the right thing, which triggers the packager, which pushes the app update. So this should work.
It looks like calling
bsb -watch
and the native packager go together here: https://github.com/react-community/reason-react-native-scripts/blob/master/src/util/packager.js#L72-L75ReasonML's editor support has shifted towards a language-server which itself runs
bsb
whenever needed, automatically regenerating the js files and piping errors back to the specific editor (I use VScode and it does work this way). The two bsb's can apparently conflict on such things as the single.merlin
file.Would you be open to separating the
bsb -watch
? I would suggest it not be included, and the README steps can tell the user that bsb-(re)compiling is needed e.g. through their editor setup or by them manually keeping absb -watch
running in terminal (ReasonML and Bucklescript users probably know aboutbsb -make-world -clean-world -w
already).