-
Notifications
You must be signed in to change notification settings - Fork 90
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
Proof General gets into a state where it doesn't know what + is. #769
Comments
Thanks for the report!
Ideally the containt of |
The first file is called Nat.v and begins with the following code.
The value of coq-prog-name is "coqtop". The value of coq-prog-args is The second file is called Bridger0.v and begins with the following code.
The value of coq-prog-name is "coqtop". The value of coq-prog-args is |
The option Now we have to understand why the option
Currently there is a mechanism to restart coqtop when a @erikmd @hendriktews do you a reason not to do that? |
The most probable explanation is that the first file needs |
Thanks @Matafou for your analysis!
Indeed if opening the 2nd file directly succeeds, but not when switching to it from a "-noinit" file, there's something to reset indeed. |
I am not sure what is happening exactly, because |
But we should definitely restart coqtop: this is more robust than retracting as pointed out by Gaetan here. At least to be correct we need to check if the options have changed (instead of just checking if there is a project fie) and restart coqtop if they have. |
I am not using a |
Wait I found something. In
so apparently I am explicitly asking for Now I don't understand why |
I don't think so. The variable safe-local-variable-values only says that it safe to execute this piece of code. |
I mean: this customization alone does not say that the option is set. It only says that it is allowed to do be set automatically by a file variable. It also indicates that you did it at least once. |
Hi folks,
When using Coq 8.19.1 with Proof General 4.6-git and Emacs 29.3,
I use C-c RET (proof-goto-point) to navigate throughout a .v
file. When I've been editing awesome1.v and then I start editing
awesome2.v, Proof General asks if I want to retract the proving I
did on awesome1.v, and I say yes. Sometimes (but not all the
time) after this, Proof General gets into a state where it
complains that it doesn't understand the first plus + sign in the
file. It gives the error
Since the first plus sign is very near the top of a file that had been
loading correctly, it basically won't load anything.
I have tried killing the Coq process with C-u C-c C-x,
but the issue remains until I restart Emacs.
Here is the content of the buffer *coq* if that helps to
understand the problem.
The text was updated successfully, but these errors were encountered: