Open martinklepsch opened 6 years ago
I got similar errors when I forgot to do a eval $(opam config env)
after opam switch. Did you remember to call it?
@rymdhund thanks for your suggestion, I in fact had some major misconfiguration going on which basically broke everthing OCaml related (I was shadowing install
with a script of my own 😅 — tbh I'm surprised anything worked in retrospect)
But now I'm on other trouble, it seems I can't build ohai
locally:
~/c/02-oss g clone git@github.com:jaredly/ohai.git
Cloning into 'ohai'...
remote: Counting objects: 135, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 135 (delta 2), reused 0 (delta 0), pack-reused 129
Receiving objects: 100% (135/135), 23.41 KiB | 1.95 MiB/s, done.
Resolving deltas: 100% (67/67), done.
~/c/02-oss cd ohai/
~/c/0/ohai (master=) jbuilder build -p ohai -j 4
refmt bin/ohai.re.ml
ocamldep bin/ohai.depends.ocamldep-output
refmt lib/Args.re.ml (exit 1)
(cd _build/default && /Users/martin/.opam/4.04.0/bin/refmt --print binary lib/Args.re) > _build/default/lib/Args.re.ml
File "lib/Args.re", line 9, characters 17-23:
Error: 262: syntax error, consider adding a `;' before
refmt lib/Info.re.ml (exit 1)
(cd _build/default && /Users/martin/.opam/4.04.0/bin/refmt --print binary lib/Info.re) > _build/default/lib/Info.re.ml
File "lib/Info.re", line 20, characters 20-26:
Error: 262: syntax error, consider adding a `;' before
refmt lib/Files.re.ml (exit 1)
(cd _build/default && /Users/martin/.opam/4.04.0/bin/refmt --print binary lib/Files.re) > _build/default/lib/Files.re.ml
File "lib/Files.re", line 7, characters 14-18:
Error: 1458: <UNKNOWN SYNTAX ERROR>
This is probably since the project is written in the old reason syntax and you're trying to compile it using reason 3.
Hey Jared, thanks for this project, been wanting to try Reason/OCaml for native stuff for a while but always got kind of stuck on setting up the necessary tooling. :)
I'm getting an error during installation of
ohai
now. I'll try to figure out what's going on but just logging this for reference: