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

Bad syntax error recovery #1066

Open
thery opened this issue Mar 12, 2025 · 4 comments
Open

Bad syntax error recovery #1066

thery opened this issue Mar 12, 2025 · 4 comments

Comments

@thery
Copy link
Contributor

thery commented Mar 12, 2025

I am with vscoq 2.2.5 coq 8.20.1

Ok I have a file with an obvious syntax error. Anyway I try to execute it anyway (this is important)

Image

now if I try to correct the error, the error message remains shitted of some characters.

Image

If I don't try to execute the line with a syntax error, correcting works fine.

@gares
Copy link
Member

gares commented Mar 12, 2025

@rtetley do you promote the parse error to an exec one when one executes a not-parsed sentece?

@rtetley
Copy link
Collaborator

rtetley commented Mar 12, 2025

I believe I do

@thery
Copy link
Contributor Author

thery commented Mar 12, 2025

can you reproduce the error?

@rtetley
Copy link
Collaborator

rtetley commented Mar 26, 2025

I can reproduce it indeed. However the error that is produced after correcting is not the same ! So I don't believe it's a shift, the system detects a new parse error... I don't know why yet though...

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

3 participants