Skip to content

Using (root_module ...) with a PPX results in a build failure #4682

@craigfe

Description

@craigfe

Expected Behavior

The (root_module ...) feature should compose with (preprocess ...):

(executable
 (name main)
 (root_module root)
 (libraries unix)
 (preprocess (pps ppx)))

Actual Behavior

Combining (root_module ...) with a PPX results in a build failure:

  $ dune build
  Error: Multiple rules generated for _build/default/root.pp.ml-gen:
  - dune:5
  - <none>:1

Reproduction

Specifications

  • Version of dune (output of dune --version): 2.8.5
  • Version of ocaml (output of ocamlc --version): 4.12.0
  • Operating system (distribution and version): Linux 5.12.6-arch1-1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions