Skip to content

new bug in ppx_deriving ("optional" no longer works) #247

@chetmurthy

Description

@chetmurthy

Versions:
bash --login -c "RUN -s Opam-2.1.0 opam show ppx_deriving "

<><> ppx_deriving: information on all versions ><><><><><><><><><><><><><><><><>
name ppx_deriving
all-installed-versions 5.2 [4.11.1]

test file foo.ml:

type a1 = int        [@@deriving show, arglebargle { optional = true }]

failing run:

bash --login -c "RUN -s Opam-2.1.0 ocamlfind ocamlc -package ppx_deriving.show -c foo.ml  "
File "foo.ml", line 1, characters 39-70:
1 | type a1 = int        [@@deriving show, arglebargle { optional = true }]
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Ppxlib.Deriving: 'arglebargle' is not a supported type deriving
       generator

I guess this is a bug? I don't use ppx_deriving, except in unit-tests to verify that I'm adhering to the same semantics in my camlp5-based pa_ppx type-derivers, but figured I should report it anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions