Closed baransu closed 6 years ago
It turns out that few problems piled up causing my problems.
I decided to clean up everything related to Reason/OCaml from my machine.
Then I've made clean clone of bsansouci/reprocessing-example.
After that installed latest Reason version and newest bsb-native
version:
npm install -g reason-cli@3.2.0-darwin
npm install bsb-native@3.2.0
I've spend few hours trying different configurations so I hope no one will have similar problems π
Hey thanks for opening this issue. I'll keep it open until I've actually made the release, the remind me of the urgency of this issue! Really sorry for the pain man :/
So I take it the UNKNOWN SYNTAX ERROR
s I'm getting is due to a version difference? I've been trying to write a Pong game but I'm getting a lot of those errors and for the life of me, I cannot figure out what I was doing wrong since I followed the examples.
The error's due to bsb-native containing a different version of refmt than the global install that your editor's using to refmt the code. So you'll refmt your code with the newer version which will, for example, add trailing commas to a lot of stuff, then try to build with the older version which will no know how to parse the trailing commas. This shouldn't be happening on 3.2.0 though, does it?
Oh, I see! I haven't yet updated. I just tried yarn add bsb-native@3.2.0
but I'm only getting the choice between two older versions.
Thanks for the quick reply btw!
update:
Tried it like this: yarn add bsansouci/bsb-native#3.2.0
and it worked! However, after cleaning everything and building again, I now get the following error:
You can either
This seems like it's taken care of, let us know if not!
I'm playing and trying out this library and it's really amazing. You rocks π€π₯ While creating simple "game" I've encountered few issues I have problem with. I'm only interested in web target at the moment so if I could drop
bsb-native
would be great (as mentioned here #69 ).Versions of stuff:
No
Gl.framebufferT
This one is strange. I happend out of nowhere when I was fighting other issues. Can be reproduced with the current master of the baransu/reprocessing-test.
UNKNOWN SYNTAX ERROR
Basically the same issue as https://stackoverflow.com/questions/50541943/reprocessing-vscode-reason-refmt-breaks-project. I assume it's the problem with
bsb-native
in version2.1.1
which is not up to date with Reason version I'm using. But the syntax error is pointing at very strange place that I don't fully understand.No
Reprocessing
So when trying to fix
UNKNOWN SYNTAX ERROR
I bumpedbsb-native
to latest release and stumbled upon this error. I don't know if it's some stale version of some dependency or cache or something else but it seems strange that version2.1.1
has not problem like that and the latest version breaks.It's amazing library and I've spend huge amount of time to understand everything is tied together. Would be great to move forward and have stable setup I can build upon. If there is anything I can improve for other uses would like to help π