Rocq: enable messages for Rocq >= 9.2#850
Rocq: enable messages for Rocq >= 9.2#850hendriktews wants to merge 1 commit intoProofGeneral:masterfrom
Conversation
|
@Hendrik is there a reason we don't merge this right now? |
|
well except for the tests. |
|
@hendriktews I tested |
Disable Set Silent for Rocq >= 9.2, which does not print any goals any more. See also PR 21038 for Rocq. Fixes ProofGeneral#842 ProofGeneral#849 ProofGeneral#843
9b07ad8 to
ea93593
Compare
As is, the added line breaks our CI because it throws an error when there is no Coq/Rocq available. Therefore I am strongly opposing to merge this PR in this form. I try to allocate some time this week to bring this PR into shape. |
|
Hi Hendrik.
You mean the line I propose to add in the tests? Or the PR itself?
Sorry for the dumb question: why is it bad that a test fails when some of its dependencies is not available? Our CI is supposed to provide coq/rocq isn't it ?
Thanks! |
I mean the
Yes, but not for all tests. The check-doc and the indentation tests run without Coq/Rocq. We also have a test that checks that PG does not crash if it cannot find any Coq/Rocq, which, for obvious reasons, runs such that Coq/Rocq is apparently not available. Further, the early crash when loading The PR, as it is now, makes PG crash if some user happens to load it without Coq/Rocq, which some users, quite understandable, find irritating, see #551. |
|
Thanks for the explanation. Yes this call to coq should be protected indeed. |
|
It's also an instance of the general rule that merely loading an ELisp file should not significantly affect Emacs's behavior: signaling an error is significant. |
|
@hendriktews. Since I have time right now and want this to be merged quickly I propose something upon your PR in this branch. Feel free to use it (or not). In short:
One question that remains but can wait another PR: should we have a CI test with a VM where no coq is intalled? So that we check that PG works correctly in this case. |
|
I have been using this version for a while and I still experience losses of messages. I detected at least one situation where this is due to the call to For instance: Lemma foo: forall n:nat, n = 0 \/ exists m, n = S m.
Proof.
destruct n.
- Time (left;reflexivity).Only prints the "... Focus next goal with bullet -.", but not the |
Disable Set Silent for Rocq >= 9.2, which does not print any goals any more. See also PR 21038 for Rocq.
Fixes #842 #849 #843