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

fix(verifier): give more useful diagnostics during recovery #5971

Merged
merged 3 commits into from
Dec 15, 2023

Conversation

zrlk
Copy link
Contributor

@zrlk zrlk commented Dec 15, 2023

We might want to consider continuing recovery after lowering fails. In practice this happens when a program with inspections is partially lowered (because the full program can't be solved) and some inspected evars never appear, so are never given types. Note that we'll also need to fix the output record/expression as those datalog variables will be unconstrained.

This PR does a simpler thing and cleans up errors during recovery (to clarify that the 'no type found for X' messages are expected); it also selects a more relevant error goal.

zrlk added 2 commits December 15, 2023 02:09
We might want to consider continuing recovery after lowering
fails. In practice this happens when a program with inspections
is partially lowered (because the full program can't be solved)
and some inspected evars never appear, so are never given types.
Note that we'll also need to fix the output record/expression as
those datalog variables will be unconstrained.

This PR does a simpler thing and cleans up errors during
recovery (to clarify that the 'no type found for X' messages are
expected); it also selects a more relevant error goal.
@zrlk zrlk requested a review from a team December 15, 2023 02:31
@zrlk zrlk enabled auto-merge (squash) December 15, 2023 04:34
@zrlk zrlk merged commit 922b4d3 into kythe:master Dec 15, 2023
4 of 5 checks passed
@zrlk zrlk deleted the vf-fs-default branch December 15, 2023 04:49
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.

2 participants