lambdapi icon indicating copy to clipboard operation
lambdapi copied to clipboard

fix parsing error : return commands even when the end of the file contains parsing error

Open Alidra opened this issue 1 year ago • 1 comments

When working with Vscode or Emacs, if a Lambdapi file contains parsing errors, the parsing phase should return the commands that have been successfully parsed (this is already the case with the command line Lambdapi).

This PR fixes this issue.

Additionally, this PR changes the way navigating the proofs is done with the navigate until cursor. Instead of stopping the green zone at the beginning of current the line, the green zone is expended to the end of the current command.

Finally, this PR fixes stops the green zone before the { delimiter (and incidentally begin delimiter) to avoid that the LSP server answers with subgoals of the next tactic missing the current one as described in issue #1049

Alidra avatar Apr 18 '24 17:04 Alidra

@fblanqui , Can you check if the behavior described in this PR suites you?

Alidra avatar Apr 26 '24 12:04 Alidra

@fblanqui, as discussed earlier today, the modifications in this PR work fine with both Vscode and Emacs. We still need to fix the syntax error message in Emacs terminal but it is better to do it in a separate PR.

Thus, I believe the PR can be merged.

Alidra avatar May 07 '24 16:05 Alidra

Thanks Abdelghani!

fblanqui avatar May 07 '24 16:05 fblanqui