Skip to content
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

Fails on build: The module or file Lexer_flow can't be found. #12

Open
kristianmandrup opened this issue Dec 8, 2018 · 0 comments
Open

Comments

@kristianmandrup
Copy link

kristianmandrup commented Dec 8, 2018

Trying to build it on a MacOSX

"Make sure you're on OPAM switch 4.02.3 (might work with other switches; haven't tried)
You need reason (refmt) and ocamllex installed through OPAM (latter comes by default)"

Not sure how I can test that I have all the required dependencies installed and correct versions. Error seems to be that it can't find ocamllex

Should I install via homebrew?

https://ocaml.org/docs/install.html#Homebrew-Homebrew

brew install ocaml
brew install opam

Tried installing ocaml and opam via brew, but still fails :(

Build error

$ git clone https://github.com/chenglou/jeason.git
Cloning into 'jeason'...
remote: Enumerating objects: 41160, done.
remote: Total 41160 (delta 0), reused 0 (delta 0), pack-reused 41160
Receiving objects: 100% (41160/41160), 11.11 MiB | 4.32 MiB/s, done.
Resolving deltas: 100% (29406/29406), done.
✔ ~/repos/reason-projects 
10:02 $ cd jeason/
✔ ~/repos/reason-projects/jeason [master|✔] 
10:02 $ yarn && yarn build
yarn install v1.5.1
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
$ npm run build

> [email protected] build /Users/kristianmandrup/repos/reason-projects/jeason
> bsb -make-world

ninja: Entering directory `/Users/kristianmandrup/repos/reason-projects/jeason/lib/bs/bytecode'
[20/20] Building parser_flow.mlast.d
[6/11] Building parser_env.cmi
FAILED: parser_env.cmi 
/Users/kristianmandrup/repos/reason-projects/jeason/node_modules/bs-platform/vendor/ocaml/ocamlc.opt  -bs-super-errors -I /Users/kristianmandrup/repos/reason-projects/jeason/node_modules/bs-platform/lib/ocaml/bytecode  -I /Users/kristianmandrup/repos/reason-projects/jeason/node_modules/bs-platform/vendor/ocaml/lib/ocaml -I .   -I /Users/kristianmandrup/repos/reason-projects/jeason/node_modules/bs-platform/vendor/ocaml/lib/ocaml/compiler-libs  -no-alias-deps   -color   always -o parser_env.cmi -w -30-40+6+7+27+32..39+44+45+101-40-20-21-26-27-28-32-45-44-33-37-34-39-6 -g -c -intf parser_env.mliast_simple 

  We've found a bug for you!
  /Users/kristianmandrup/repos/reason-projects/jeason/parser_env.mli 29:10-27
  
  27 │ type token_sink_result = {
  28 │   token_loc: Loc.t;
  29 │   token: Lexer_flow.Token.t;
  30 │   token_context: Lex_mode.t;
  31 │   token_value: string;
  
  The module or file Lexer_flow 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?
  
[7/11] Building estree_translator.cmo
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant