Reproducing test case for #5532. $ cat >foo.v < Lemma dummy : True. > Proof. idtac "A". Qed. > EOF $ cat >dune-project < (lang dune 3.1) > (using coq 0.3) > EOF $ cat >dune < (coq.theory > (name basic)) > EOF $ dune build Warning: Coq Language Versions lower than 0.8 have been deprecated in Dune 3.8 and will be removed in an upcoming Dune version. Hint: To disable this warning, add the following to your dune-project file: (warnings (deprecated_coq_lang_lt_08 disabled)) File "dune", lines 1-2, characters 0-26: 1 | (coq.theory 2 | (name basic)) A File "./foo.v", line 2, characters 18-22: Error: (in proof dummy): Attempt to save an incomplete proof [1]