Skip to content
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

[@@deriving ..] annotations not removed after deriving #270

Open
haochenx opened this issue Sep 19, 2023 · 0 comments
Open

[@@deriving ..] annotations not removed after deriving #270

haochenx opened this issue Sep 19, 2023 · 0 comments

Comments

@haochenx
Copy link

It seems that currently [@@deriving ..] annotations are not being removed after the preprocessing.

This behavior causes issues for staged preprocessing since ppx_deriving will generate an error (instead of a warning) for unsupported derivation type.

I'm hitting this problem in a project that firstly preprocess the source code with ppx_deriving.std in the first stage, then preprocess with melange.ppx in the second stage. Since melange.ppx uses ppx_deriving internally, the second stage gives the following error:

Error: Ppxlib.Deriving: 'show' is not a supported type deriving generator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant