Open cedeerwe opened 5 years ago
I have tried installing bs-platform
also locally in the package
$ npm install bs-platform
$ npm run build
> reprocessing-example@ build /home/cd/Scripts/Tutorials/ReasonReprocessing/reprocessing-example
> bsb -make-world
ninja: no work to do.
ninja: no work to do.
ninja: no work to do.
ninja: no work to do.
[3/15] Building src/bytecode/Reprocessing_Hotreload_Bytecode.cmj
We've found a bug for you!
/home/cd/Scripts/Tutorials/ReasonReprocessing/reprocessing-example/node_modules/reprocessing/src/bytecode/Reprocessing_Hotreload_Bytecode.re 2:15-36
1 │ let load_plug = fname => {
2 │ let fname = Dynlink.adapt_filename(fname);
3 │ if (Sys.file_exists(fname)) {
4 │ try (Dynlink.loadfile(fname)) {
The module or file Dynlink can't be found.
- If it's a third-party dependency:
- Did you list it in bsconfig.json?
- Did you run `bsb` instead of `bsb -make-world`
(latter builds third-parties)?
- Did you include the file's directory in bsconfig.json?
[4/15] Building src/Reprocessing_Constants.cmj
Failure: /home/cd/Scripts/Tutorials/ReasonReprocessing/reprocessing-example/node_modules/bs-platform/lib/ninja.exe
Location: /home/cd/Scripts/Tutorials/ReasonReprocessing/reprocessing-example/node_modules/reprocessing/lib/bs
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! reprocessing-example@ build: `bsb -make-world`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the reprocessing-example@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/cd/.npm/_logs/2019-09-10T20_10_11_419Z-debug.log
I have no luck googling up what is Dynlink and how can I fix this.
Sorry about this rabbit hole you found yourself in. Unfortunately the first error message you got was very misleading.
This project actually relies on bsb-native rather than bs-platform but it seems that due to some error in a new version of the former, something on linux is breaking -- Usually bsb-native attempts to release linux and windows builds along with the mac one, which seems to have been missed this time. We still need to try and find the time to automate some of that stuff to make the updates smoother.
The takeaway is.. you don't need to install bs-platform, but it appears there's some bug in bsb-native that's causing an issue in install (I'm not 100% what it is).
Thanks for the explanation. Is there any potential work-around? I do not need the newest version, I just want to try out Reprocessing.
You might have some luck downgrading bsb-native in the package.json to 4.0.7000?
I have managed to build it by downgrading to 4.0.7000
, thanks for the workaround tip!
Good to hear, we'll try to get the 4.0.1100 situation sorted out soon :)
Hey,
I am trying my best to get this up & running, but I am really struggling. Here are few different tries.
1) Fresh start, nothing installed.
No idea what is wrong and how it can be fixed.
2) Globally installed bs-platform prior to start
Apparently there is a version mismatch, so I have tried to install a lower version of
bs-platform
.3)
Global installation of bs-platform vs. 4.0.11
Some error again.
I would appreciate anything that would point me in the correct direction.