Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoqIDE processed state isn't updated upon pasting to the buffer #15882

Closed
Alizter opened this issue Mar 31, 2022 · 1 comment · Fixed by #15939
Closed

CoqIDE processed state isn't updated upon pasting to the buffer #15882

Alizter opened this issue Mar 31, 2022 · 1 comment · Fixed by #15939
Labels
kind: bug An error, flaw, fault or unintended behaviour. part: CoqIDE Issues and PRs related to CoqIDE or other IDE features of coq.
Milestone

Comments

@Alizter
Copy link
Contributor

Alizter commented Mar 31, 2022

Write some axioms/definition in the buffer, for example

Axiom A : Type.

Step down so it is highlighted. Next select everything and paste the following (replacing the content of the buffer):

Check A.

Step down, and see that this succeeds! Even though Axiom A is no longer in the buffer at all. The proof state seems to think it is.

Originally posted by @Alizter in #15861 (comment)

@jfehrle jfehrle changed the title CoqIDE checked state isn't updated on buffer edit CoqIDE processed state isn't updated upon pasting to the buffer Mar 31, 2022
@Alizter Alizter added part: CoqIDE Issues and PRs related to CoqIDE or other IDE features of coq. kind: bug An error, flaw, fault or unintended behaviour. labels Apr 9, 2022
@eponier
Copy link
Contributor

eponier commented Apr 13, 2022

I also faced this issue. It probably means I did not test enough Pierre-Marie's patch.

It can also be triggered with undo/redo and even just manual deletion of processed text. Sometimes you can write again and sometimes not. In the second case, if you move the processed cursor backwards, you can see it cancels what you've just removed, meaning that it indeed still believes it is in the document. When you're in sync again with the document, everything works again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug An error, flaw, fault or unintended behaviour. part: CoqIDE Issues and PRs related to CoqIDE or other IDE features of coq.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants