Open AndreasLoow opened 7 months ago
Also facing the same issue using Proof General – it's slightly inconvenient needing to restart my emacs session because of this, so a fix to this would be wonderful!
I'm using the latest version (i.e. v4.5) of Proof General if this is of any help.
Hi,
it seems that aborting long-running tactics (using C-c C-c) can cause the UI and kernel to go out of sync. I have noticed this with CoqHammer's tactics specifically, e.g.
best
orsauto
. I initially reported this problem as CoqHammer issue here: lukaszcz/coqhammer#180. However, after Łukasz pointed that it is unlikely that it is something CoqHammer is doing causing this problem I tried the CoqHammer tactics in both Coqtail and vscode and indeed the same issue seems to not appear there.The following seems to be a somewhat reliable way to reproduce an example of the issue. Take this proof script (just some fragment from the Coq standard library with CoqHammer loaded):
Now, invoking
best
and aborting (using C-c C-c) a few times seems to confuse the UI of Proof General. E.g. if you C-c Enter just before the Fixpoint definition and then try to move beyond it (e.g. doing C-c Enter just after it), then Coq complains that the definition exists already.Could this be a Proof General problem? I haven't noticed this with any long-running non-CoqHammer tactics, such as e.g.
firstorder
.