Skip to content

per_module breaks .merlin output #1212

@dra27

Description

@dra27

For the following dune file:

(library
  (name       Mercury)
  (preprocess (per_module ((pps ppx_pgsql) Mercury)))
  (modules    Mercury)
  (libraries  pgocaml))

Merlin doesn't load the PPX for Mercury.ml. If I change the preprocess stanza to just (pps ppx_pgsql) then .merlin gains the required:

FLG -ppx '/home/dra/ocamldefang/_build/default/.ppx/ppx_pgsql/ppx.exe --as-ppx --cookie '\''library-name="Mercury"'\'''

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