-
Notifications
You must be signed in to change notification settings - Fork 455
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
[bug] ppx_flags no longer allows passing arguments to ppxs #3709
Comments
does this work for you: "ppx-flags" : ["./some-ppx", "--an-arg"] |
The change is that recently we did some check to enforce that ppx binary actually exists for better error message |
@bobzhang nope that doesn't work -- |
The sanity check was introduced since @rickyvetter found when ppx binary changes, the files won't get rebuilt. Since user could pass a list of ppxes, so the ideal config would be
I am going to relax such check. For your own temporary work around, since you own your own ppx, you can pass it without arguments. I did not support ppx with arguments since it is really complicated to make it work with Windows etc. |
merged in master |
thanks! |
Not sure when this happened, but it's broken again 🙃
If I have
"ppx-flags": ["./some-ppx --an-arg"]
I get the error:Apparently ninja is being passed the ppx path and the argument as though it's a single file that is a dependency.
(bs-platform version 5.0.4)
The text was updated successfully, but these errors were encountered: