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

'+' in include path with dune #1388

Open
vzaliva opened this issue Sep 15, 2021 · 0 comments · May be fixed by #1419
Open

'+' in include path with dune #1388

vzaliva opened this issue Sep 15, 2021 · 0 comments · May be fixed by #1419
Labels

Comments

@vzaliva
Copy link

vzaliva commented Sep 15, 2021

I have the following dune file which compiles fine from command line with dune but not under merlin:

(executable
 (name main)
 ; workaround for https://github.com/ocaml/dune/issues/3636
 (flags (:standard -w -27 -I +../cerberus/frontend))) 

In merling-log buffer I see:

"ocaml": {
    "include_dirs": [
      "/home/lord/src/cheri-c-semantics/ubfinder/+../cerberus/frontend"
    ],

If I change it to full path:

(executable
 (name main)
 ; workaround for https://github.com/ocaml/dune/issues/3636
 (flags (:standard -w -27 -I /home/lord/.opam/cerberus/lib/cerberus/frontend))) 

it shows in log:

  "ocaml": {
    "include_dirs": [ "/home/lord/.opam/cerberus/lib/cerberus/frontend" ],

and compiles fine.

It looks like an issue with + handling with -I

voodoos added a commit to voodoos/merlin that referenced this issue Dec 21, 2021
@voodoos voodoos linked a pull request Dec 21, 2021 that will close this issue
@voodoos voodoos linked a pull request Dec 21, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants