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

Cannot backtrack over Require Import with Go to Point #919

Open
tchajed opened this issue Sep 27, 2024 · 4 comments
Open

Cannot backtrack over Require Import with Go to Point #919

tchajed opened this issue Sep 27, 2024 · 4 comments

Comments

@tchajed
Copy link

tchajed commented Sep 27, 2024

If you process a Require Import, you can backtrack over it with Step Backward, but not with Go to Point.

@Durbatuluk1701
Copy link
Contributor

I think I see what you are saying, something like:

... (no valid command here that could be interpreted to) ...
|
Require Import X.
...

Go to point (where | is cursor) if the Require Import X. statement has already been processed does not backtrack it.

Can you confirm that if there is a valid command above the Require Import you can backtrack with Go to Point, as that is the behavior that I am seeing.

@tchajed
Copy link
Author

tchajed commented Sep 27, 2024

I generally have a comment above Require Import, if anything - for Coq to behave sensibly you want to start with all the Require statements.

When I put a Check nat. above my Require Import I can backtrack to the beginning of the Require Import but not before Check nat (using Go to Point specifically).

@Durbatuluk1701
Copy link
Contributor

So I think ultimately the desired behavior is to be able to backtrack to before the very initial command in a file via Go to Point?

@tchajed
Copy link
Author

tchajed commented Sep 27, 2024

That is what I would want, yes.

I should mention that this issue is low priority for me, since if I really need it I use Coq: Reset. However, sometimes reloading a dependency that has changed is useful and it's nice to use backtracking for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants