Skip to content

dune coq top ignores flags specified in coq.theory #6366

Closed
ocaml/opam-repository
#22498

Description

@m-lindgren

Expected Behavior

dune coq top should pass the flags specified in the (coq.theory (flags ...)) to coqtop / the toplevel.

Actual Behavior

Flags specified in the dune file are ignored by dune coq top and not passed on to coqtop.

Reproduction

  1. Create a dune file with contents
(coq.theory
  (name minimal)
  (flags -w -notation-overridden))
  1. Create a file Test.v with contents Notation "a + b" := (Nat.mul a b) : nat_scope.

  2. The arguments in the dune file is then not passed along to coqtop:

$ dune coq top --display=quiet --toplevel=echo Test.v
-topfile /tmp/minimal/_build/default/Test.v -R /tmp/minimal/_build/default minimal

for example, we get a warning here:

$ cat Test.v | dune coq top --display=quiet Test.v
Welcome to Coq 8.16.0

Coq < Toplevel input, characters 0-46:
> Notation "a + b" := (Nat.mul a b) : nat_scope.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning: Notation "_ + _" was already used in scope nat_scope.
[notation-overridden,parsing]

Specifications

  • Version of dune (output of dune --version): 3.5.0
  • Version of ocaml (output of ocamlc --version): 4.14.0
  • Operating system (distribution and version):

Additional information

  • Link to gist with verbose output (run dune with the --verbose flag):

Activity

  1. moved this to Todo in Coq + Duneon Oct 31, 2022
  2. moved this from Todo to In Progress in Coq + Duneon Oct 31, 2022
  3. self-assigned this
    on Oct 31, 2022
  4. Repository owner moved this from In Progress to Done in Coq + Duneon Nov 10, 2022
  5. added a commit that references this issue on Nov 14, 2022
    f207d3f
  6. added
    rocq
    and removed on Jun 5, 2026
  7. added this to the 3.6.0 milestone on Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

rocq

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions