-
Notifications
You must be signed in to change notification settings - Fork 415
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] preprocess + run results in -pp and not -ppx #4169
Comments
IMO the easiest fix is to have ocamllsp/merlin check if the input is text or not (eg if it begins with In elpi I have 2 use cases for
|
To clarify, |
This is my understanding. gares@ollypat:~/LPCIC/elpi$ file _build/default/src/data.pp.ml
_build/default/src/data.pp.ml: OCaml abstract syntax tree implementation file (Version 023) |
My only concern is that I don't know if the flags |
Yes, it does, @rgrinberg |
I understand this is preventing @gares from using 2.8 , as |
It is possible to "override the You can copy the Dune 2.9 will ship with a new command line tool to dump Merlin configuration in |
I could then "sed" the merling file replacing -pp with -ppx but the fix could also be done once and forall on the merlin side, eg fix ocaml/merlin#1246 |
I believe this should be fixed upstream in merlin. |
It seems that while
ocamlc
is happy to receive marshaled AST,ocamllsp
(merlin) is not happy receiving mashaled AST if a-pp
is given (a-ppx
would work).At the same time
preprocess
with a user action generates a merlin config which passes-pp
, and there seem to be no way to override this decision.Expected Behavior
should/could generate a
-ppx
directive for merlinActual Behavior
generates always a
-pp
directive for merlinReproduction
See also #1212 , CC @voodoos
The text was updated successfully, but these errors were encountered: