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.
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:
It seems like this is a simple fix; I was able to solve that issue with a local copy by adding a
dunefile to thesrcdirectory with the following contents:I also ran
dune upgradeafter 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 locallyTurns 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.