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

Rework handling of vernac state #521

Merged
merged 1 commit into from
Jul 15, 2023
Merged

Rework handling of vernac state #521

merged 1 commit into from
Jul 15, 2023

Conversation

maximedenes
Copy link
Collaborator

Fixes #513

@maximedenes maximedenes changed the title Make proofview encoding not depend on imperative global env Rework handling of vernac state Jul 15, 2023
@maximedenes
Copy link
Collaborator Author

The idea of this PR is that public functions which call imperative APIs from Coq (printing, pretyping, internalization) should take a vernacstate and unfreeze it explicitly.

Note that this is just a first step towards this goal, as some functions still implicitly rely on get_context unfreezing a consistent vernac state.

@maximedenes maximedenes merged commit d38e79b into main Jul 15, 2023
9 checks passed
@maximedenes maximedenes deleted the fix-goals-global-env branch July 15, 2023 11:12
@@ -11,12 +11,31 @@
(* See LICENSE file. *)
(* *)
(**************************************************************************)
type hyp = {
identifiers: string list;
type_ : string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maximedenes is this a typo ? Or is it meant to be called type_ ? It currently breaks hypothesis display in the goal view: where should I change it, in the language-server or in the client ?

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

Successfully merging this pull request may close these issues.

Undo till the top breaks replay
3 participants