Closed vtrrsl closed 6 years ago
Hey thanks for reporting, are you on linux?
Could you show the contents of lib/bs/bytecode/
and lib/bs/bytecode/src
after the crash?
Not totally sure what's going on here.
I'm on macOS 10.13.3 This is the contents before:
After the crash the whole /bytecode
directory is gone:
I have the same problem and i solved it by consulting the branch 2048 and adding some dependencies "dependencies": { "FontGenerator": "bsansouci/font-generator", "reprocessing": "schmavery/reprocessing" }, "devDependencies": { "bs-platform": "bsansouci/bsb-native#2.1.1", "font-generator": "bsansouci/font-generator" }
@ArcherDs Thanks for your comment, adding those doesn't fix the problem for me though
@vtrrsl on my mac, I ran
git clone https://github.com/bsansouci/reprocessing-example.git
cd reprocessing-example
npm install
npm run build
npm run start
and then edited src/index.re several times while saving to test hot reloading and unfortunately haven't had any success reproducing this.
Would you say this sequence of steps accurately describes the process required to consistently reproduce this error on your machine?
In my experience,because some of the dependencies's version don't change (always 0.1.0),so npm and yarn maybe cache the old repository,i guess this make the building progress error prone. After i run yarn cache clean (npm cache clean) and totally reinstall the project ,it works.
Thanks for trying again! You had me getting nervous for a second there :P
Great suggestion about the version, we're planning to publish to npm soon with some proper docs and will probably handle the versions better after that!
So I found the issue, when I disable vscode-reasonml it all works fine, I think that when it formats the code it messes things up with the hot reloading. Thanks for all the help though!
Thanks for the new info, @vtrrsl, looks like something worth us looking into and trying to improve if we can. We have a better hotreloader coming down the pipeline so that may help, we'll see.
Sounds great, thanks again!
This should be fixed since @vkammerer pushed his change.
Hi! Thanks for an exiting project! I'm trying out the reprocessing-example, it builds, but crashes when trying to hot reload. The steps are:
This process finishes and then I run:
It builds successfully and the first hot reload works, but after a second change in
src/index.re
it crashes with the exception above