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

Errors while opening Reason files after a bs build #45

Open
adriantoine opened this issue Jul 29, 2017 · 1 comment
Open

Errors while opening Reason files after a bs build #45

adriantoine opened this issue Jul 29, 2017 · 1 comment

Comments

@adriantoine
Copy link

adriantoine commented Jul 29, 2017

Hi!

Thanks for your great Vim config, everything works fine but I've been having issues with Reason recently.

Step to reproduce:

git clone git clone https://github.com/chenglou/reason-react-example.git
cd reason-react-example
npm install
npm run build
mvim .

Now open mvim src/simple/page.re from NERDTree.

In my case I get this error:
screen shot 2017-07-29 at 15 25 58

There are a lot more errors as I type and every time I save a Reason file.

I have installed reason-cli and everything seems to be installed correctly, for example I have no problems with the VS Code plugin, only with VimBox.

Note: If I delete the .merlin file, the file is opened without any errors.

Here is the content of my .merlin file if it helps:

####{BSB GENERATED: NO EDIT
FLG -ppx '/Users/adrien/Projects/reason-react-example/node_modules/bs-platform/bin/reactjs_jsx_ppx_2.exe'
FLG -ppx /Users/adrien/Projects/reason-react-example/node_modules/bs-platform/bin/bsppx.exe
S /Users/adrien/Projects/reason-react-example/node_modules/bs-platform/lib/ocaml
B /Users/adrien/Projects/reason-react-example/node_modules/bs-platform/lib/ocaml
FLG -nostdlib -no-alias-deps -color always -w -40+6+7+27+32..39+44+45
S /Users/adrien/Projects/reason-react-example/node_modules/reason-react/lib/ocaml
B /Users/adrien/Projects/reason-react-example/node_modules/reason-react/lib/ocaml
S /Users/adrien/Projects/reason-react-example/node_modules/bs-director/lib/ocaml
B /Users/adrien/Projects/reason-react-example/node_modules/bs-director/lib/ocaml
S src
B lib/bs/src
S src/retainedProps
B lib/bs/src/retainedProps
S src/todomvc
B lib/bs/src/todomvc
S src/simple
B lib/bs/src/simple
S src/logo
B lib/bs/src/logo
S src/interop
B lib/bs/src/interop
S src/async
B lib/bs/src/async
####BSB GENERATED: NO EDIT}

Thanks!

@adriantoine adriantoine changed the title Errors while opening reason files after a first installation Errors while opening reason files after a bs build Jul 29, 2017
@adriantoine adriantoine changed the title Errors while opening reason files after a bs build Errors while opening Reason files after a bs build Jul 29, 2017
@jordwalke
Copy link
Owner

Sorry for the delay. I notice you have an opam 4.03 installed and I think that BS uses a 4.02.3 so that's probably the source of the conflict. You could install reason-cli instead which might help because it's pinned to ocaml 4.02.3.

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

2 participants