metapp icon indicating copy to clipboard operation
metapp copied to clipboard

Doesn't work as a vendored library: interface mismatch on Metapp_preutils__

Open copy opened this issue 4 years ago • 0 comments

Usually it's possible to use vendored libraries and ppxs using dune by simply copying them into a subdirectory. This seems to fail with metapp:

% cat test.ml 
let _ = [%meta [%e 42]]
% cat dune
(executable
 (name test)
 (preprocess (pps metapp.ppx)))
% dune build test.exe  
         ppx test.pp.ml
% opam source metapp
Successfully extracted to metapp.0.4.0
% dune build test.exe
         ppx test.pp.ml (exit 1)
(cd _build/default && .ppx/e7c203cacf1cd3bb02e6242329effa31/ppx.exe -o test.pp.ml --impl test.ml -corrected-suffix .ppx-corrected -diff-cmd - -dump-ast)
File "_none_", line 1:
Error: interface mismatch on Metapp_preutils__

copy avatar Sep 07 '21 21:09 copy