Skip to content

Incompatbility with recent dune versions. #3

@DKLoehr

Description

@DKLoehr

I have been happily using this deriver on a project of mine that uses dune 1.7; however, when I attempted to integrate it into a more recent project (using dune 2.7), I get the following error after adding this deriver to the (preprocessor (pps ...)) field of the dune files:

Error: Ppx dependency on a non-ppx library "ppx_deriving_argparse". If
"ppx_deriving_argparse" is in fact a ppx rewriter library, it should have
(kind ppx_rewriter) in its dune file.

It seems like this is a simple fix; I was able to solve that issue with a local copy by adding a dune file to the src directory with the following contents:

(library
  (name ppx_deriving_argparse)
  (kind ppx_deriver))

I also ran dune upgrade after getting an error message that jbuild files were no longer supported, but I'm not sure if that made a difference. I've got this working locally Turns out my fix only addressed the immediate error; I don't really know enough about dune or this package to figure out the real fix. It would be great to be able to simply use the existing version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions