Skip to content

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

Description

@copy

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__

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions