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
[regression] ppx broken on Windows in 4.9 (was working on 4.8) #1672
Comments
I confirm this is the culprit. The root cause is that merlin/src/ocaml/driver/pparse.ml Line 42 in dc73ba0
The backtrace in my case is:
However, the call to diff --git a/src/ocaml/driver/pparse.ml b/src/ocaml/driver/pparse.ml
index 077e93ff..0bc75ac0 100644
--- a/src/ocaml/driver/pparse.ml
+++ b/src/ocaml/driver/pparse.ml
@@ -39,7 +39,7 @@ let report_error = function
"External preprocessor does not produce a valid file. Command line: %s" cmd
let commandline prog args =
- Filename.quote_command prog args
+ Printf.sprintf "%s %s" prog (String.concat ~sep:" " (List.map ~f:Filename.quote args))
let apply_rewriter magic ppx (fn_in, failures) =
let title = "apply_rewriter" in This also has the virtue that it matches what the function |
Thanks for taking the time to investigate! I remember we took great care to keep existing windows behavior untouched, it a shame we overlooked that debug call. I will apply your fix and probably do a patch-release soon. |
Thanks! |
Could it be related to #1585?
The text was updated successfully, but these errors were encountered: