-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Str.cmj not found, cmj format is generated by BuckleScript #879
Comments
in OCaml, |
Which are exposed within Js.String for note. :-) Still would be nice to have the Str module rewritten for bucklescript, should not be hard to do, a beginner task perhaps? |
Hi, in OCaml, str library is written in C, which is not ported to ocaml yet. I would suggest you to use JS native regex via bindings [email protected] At: 10/27/16 01:35:53" data-digest="From: [email protected] At: 10/27/16 01:35:53" style=""> Hi, I've installed bucklescript using npm install bucklescript and now am trying to compile some OCaml. |
Well that was funky, I'm not used to Github duplicating messages like that. ^.^ |
@OvermindDL1 depends on how you would like to implement it, convert existing ocaml re into jS re or polyfill underlying c implementations? |
Hmm, good point, the OCaml and JS regex engines probably implement different styles (bleh no standards)... |
Hi, I've installed bucklescript using
npm install bucklescript
and now am trying to compile some OCaml.Unfortunately I'm getting an error
Error: Str.cmj not found, cmj format is generated by BuckleScript
.Looking at
node_modules/bs-platform/lib/ocaml/
it seems that while I have a whole lot of files starting withstr.
, and a whole load of files ending with.cmj
(see https://gist.github.com/f000c32aa78d55863f3dee7fec8e50b9), I don't seem to have the eponymousstr.cmj
I'm very new to both Ocaml and bucklescript, so I'm probably missing something obvious, but I searched for the error message and nothing came up.
I also tried manually compiling
str.mli
withbsc.exe
, but it doesn't seem to generate any output files.Any help would be much appreciated, and sorry if it's just me being confused.
The text was updated successfully, but these errors were encountered: