-
Notifications
You must be signed in to change notification settings - Fork 238
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
Incorrect interpretation of relative paths in FLG -ppx
#699
Comments
I don't know if it addressed the root cause, but after ocaml/dune#201, the .merlin files generated by jbuilder include absolute paths and no longer trigger this issue. |
It is still an issue as in our infra as we can't commit files with absolute paths into repo (e.g. it usually includes user's name) |
How come there's a need to commit .merlin files at all? Can't every user generate them with jbuilder? |
Just as a data point, this is not always possible at the moment. For instance infer's .merlin is manually curated from the one generated by jbuilder, mostly because of ocaml/dune#230. |
@jvillard we don't use jbuilder internally, we use buck which doesn't generate .merlin files |
The ppx-cwd branch address this issue, #870 |
I am having trouble with merlin not being able to run ppxs built and configured with jbuilder. The jbuilder compilation works correctly.
jbuilder creates a ppx.exe under _build and adds a line such as the following to .merlin:
This seems fine, but looking at the merlin-log in emacs, I see:
Note the leading
/
onCommand line:
If I edit .merlin to provide the absolute path in
FLG -ppx
, then everything works as expected.Should relative paths in a .merlin file be interpreted relative to the directory containing the .merlin file, or something else? Is there an issue where the config is normalized before changing directory?
FWIW, I have merlin and ocaml-migrate-parsetree pinned to master, with a 4.05.0 switch.
The text was updated successfully, but these errors were encountered: