-
Notifications
You must be signed in to change notification settings - Fork 90
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
Version 4.2 fails to compile unused attributes #148
Comments
ppx_deriving was designed with namespacing in mind; use |
@whitequark thanks for your suggestion but something is going wrong:
Any ideas? Maybe the culprit is not @mjambon FYI In this moment I worked around downgrading |
@pdonadeo Try |
@whitequark nope, same error as before 😅
|
Hmm, this might be a ppx_type_conv issue... I'll look at it |
Thanks @whitequark. It's not urgent for me, I can happily live with version 4.1 for a while. Do you need a minimal code that stimulate this issue? |
That would be helpful |
New OPAM switch:
open Core
type person = {
first_name : string;
last_name : string;
age : (int option [@deriving.yojson.default None]);
} [@@deriving sexp, yojson]
let _ =
Printf.printf "Hello!\n%!" Compile with:
The error is:
Downgrading compiles again:
type person = { first_name : string; last_name : string; age : int option; }
val person_of_sexp : Sexplib.Sexp.t -> person
val sexp_of_person : person -> Sexplib.Sexp.t
val person_to_yojson : person -> Yojson.Safe.json
val person_of_yojson :
Yojson.Safe.json -> person Ppx_deriving_yojson_runtime.error_or |
I confirm that this happens also with It seems that it's also triggering errors when other extensions like |
The error is actually raised by With @diml, we discussed the possibility to change these errors into warnings |
Temporary workaroud until |
The latest versions of |
I also have this problem. As a non-ppx expert, how do I add |
Find the
|
Do I correctly understand that marking ppx_deriving 4.2.x as conflicting with |
Probably, but on the other hand it seems impossible to install |
@xclerc would you consider releasing 4.04.2 or 4.05.0 versions of ppx_driver with the disabled check? |
(I still have to check whether it is the only problem.) |
I have this type definition:
It works with version 4.1 but fails in 4.2 with this error:
default
is actually used by yojson but not by sexp. Is this behaviour the expected one? This actually prevents to mix two generators.The text was updated successfully, but these errors were encountered: