You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can patch this but why does Merlin not pass Filename.concat t.query.directory t.query.filename as the Location.input_file to PPX-es?
I need the path for my MlFront/DkCoder scripting tool (adds a Java-like packaging system onto OCaml). It is straightforward to convert each source code path into a package identifier (just like Java), and it would not be great if Merlin confuses MyLibrary_One/A/Modul.ml and MyLibrary_Two/A/Modul.ml.
Thanks.
The text was updated successfully, but these errors were encountered:
I was a bit surprised that when I inspected
Location.input_name
it was always a basename rather than the full path.For example:
will returns evidence Merlin knows the full path:
But when I output
Location.input_file
as an error node in aFLG -ppx
and look at it with:that returns evidence Merlin is throwing the path away:
I think this behavior is because of the several places in the code that do
Misc.unitname t.query.filename
. Example:merlin/src/kernel/mconfig.ml
Lines 828 to 833 in be34518
I can patch this but why does Merlin not pass
Filename.concat t.query.directory t.query.filename
as theLocation.input_file
to PPX-es?I need the path for my MlFront/DkCoder scripting tool (adds a Java-like packaging system onto OCaml). It is straightforward to convert each source code path into a package identifier (just like Java), and it would not be great if Merlin confuses
MyLibrary_One/A/Modul.ml
andMyLibrary_Two/A/Modul.ml
.Thanks.
The text was updated successfully, but these errors were encountered: