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

.merlin has no ppx when several libraries are defined #657

Closed
jvillard opened this issue Mar 27, 2018 · 1 comment
Closed

.merlin has no ppx when several libraries are defined #657

jvillard opened this issue Mar 27, 2018 · 1 comment

Comments

@jvillard
Copy link
Contributor

This is only when the libraries define (preprocess (pps ...)) directives, but happens even when they have the same directives, unlike #230.

I think this is because Jbuild.Preprocess.pps includes location information (since 138c920) and Merlin.merge_two compares these objects for equality using =. This comparison will almost always be false because two directives will have different source locations in the jbuild file.

facebook-github-bot pushed a commit to facebook/infer that referenced this issue Mar 27, 2018
Summary:
Partial revert of a216446 / D7381857 due to an
issue introduced in 1.0+beta19 that prevents jbuilder from generating the
correct .merlin (ocaml/dune#657).

Reviewed By: mbouaziz

Differential Revision: D7414970

fbshipit-source-id: 10561e9
@ghost
Copy link

ghost commented Mar 27, 2018

Indeed, thanks for finding the cause of the bug. I added a test case and a fix in #658.

ghost pushed a commit that referenced this issue Mar 27, 2018
@ghost ghost closed this as completed in ad00c15 Mar 27, 2018
This issue was closed.
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