-
Notifications
You must be signed in to change notification settings - Fork 470
dune coq top ignores flags specified in coq.theory #6366
Copy link
Copy link
Closed
ocaml/opam-repository
#22498Labels
Description
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
- Create a dune file with contents
(coq.theory
(name minimal)
(flags -w -notation-overridden))
-
Create a file
Test.vwith contentsNotation "a + b" := (Nat.mul a b) : nat_scope. -
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 ofdune --version):3.5.0 - Version of
ocaml(output ofocamlc --version):4.14.0 - Operating system (distribution and version):
Additional information
- Link to gist with verbose output (run
dunewith the--verboseflag):
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done