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

warning 106: add melange.ppx reminder #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jchavarri
Copy link
Member

No description provided.

@@ -1207,7 +1207,7 @@ let message = function
| Bs_fragile_external s ->
s ^ " : the external name is inferred from val name is unsafe from refactoring when changing value name"
| Bs_unimplemented_primitive s ->
"Unimplemented primitive used:" ^ s
"Unimplemented primitive used:" ^ s ^ ", make sure your library is using the `melange.ppx` preprocessor"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure you are using melange.ppx right?

It can be not added in a melange.emit

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Update + included a link to migration docs.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

Copy link
Member

@anmonteiro anmonteiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay here. I think linking to the docs might be a bit too much, especially because we'll forget to change it on every release.

what do you think about using an error message similar to the one we added for unprocessed @mel.* attributes?

https://github.com/melange-re/melange/blob/cd0348663ee90fdd5cb2ec3a13e121c896e661c3/jscomp/core/mel_ast_invariant.ml#L71-L72

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

Successfully merging this pull request may close these issues.

3 participants