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

[goals] Allow command to process several Coq commands. #823

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

ejgallego
Copy link
Owner

@ejgallego ejgallego commented Sep 18, 2024

This is a prototype extension.

Note the important change here in behavior here, but IMHO it is
needed: if the commands in command fail, we will now fail the
request.

I think in general we may allow some form of error recovery here, but
for now we just let clients recover.

It does seem that CoqPilot / Pytanque do need even a more powerful
interface, but this will allow the them to make some progress for nwo.

Thanks to CoqPilot devs for feedback on this.

@ejgallego ejgallego added this to the 0.2.1 milestone Sep 18, 2024
@ejgallego ejgallego force-pushed the command_multiple branch 3 times, most recently from a34c584 to bd85ad8 Compare October 4, 2024 08:31
@ejgallego ejgallego marked this pull request as ready for review October 4, 2024 08:31
This is a prototype extension.

Note the important change here in behavior here, but IMHO it is
needed: if the commands in `command` fail, we will now fail the
request.

I think in general we may allow some form of error recovery here, but
for now we just let clients recover.

It does seem that CoqPilot / Pytanque do need even a more powerful
interface, but this will allow the them to make some progress for nwo.

Thanks to CoqPilot devs for feedback on this.
@ejgallego ejgallego changed the title [wip] Allow command to process several Coq commands. [goals] Allow command to process several Coq commands. Oct 4, 2024
@ejgallego
Copy link
Owner Author

cc: @amblafont , note the two changes in goal pre-processing:

  • we now admit more than one command
  • if the command fails, the request will fail

AFAICT they should be backwards compatible with your use case.

We will provide a more advanced speculative execution API soon, however I don't think you need it.

@ejgallego
Copy link
Owner Author

@gbdrt this is the PR implementing run, note how the code duplication goes away, and now the API is properly set in the Fleche.Doc module.

This way we can access the more fancy document processing stuff, like error recovery, from run finally!

@ejgallego ejgallego merged commit 4def15a into main Oct 4, 2024
14 checks passed
@ejgallego ejgallego deleted the command_multiple branch October 4, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant