-
Notifications
You must be signed in to change notification settings - Fork 345
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
Regression related to the auto command #2472
Comments
Here is a cut-down test case: open import Agda.Primitive
A : Set {!!}
A = Set The auto command's error message:
|
Bisection indicates that the problem was introduced by @andreasabel in 6a83085:
|
I can see that I introduced the regression, but I do not understand why. How did the original code find the meta? It is only looking in function clauses. But the meta is in a type signature. |
I'm not familiar with this part of the code base. I have not checked the code carefully, so this is a guess: Perhaps some part of the body was blocked by an interaction meta, and the code found this meta. |
@nad: In the test case you give, the interaction meta is part of a type signature. My code only looks for interaction metas in function clauses, thus, cannot refer to this meta. As far as I can tell, the old code also only looks inside function clauses (and there, not in sorts or sort annotations), so how can it possibly find it?? |
I can confirm that the blamed patch introduced the regression. However, I do not understand how. Now I understand: Agsy is fine if findClauseDeep returns Nothing. My patch introduced an unnecessary error throwing. |
Martin Escardo reported that the hole in the following piece of code can be filled using the auto command when Agda 2.5.1.1 is used, but not with Agda 2.5.2:
The text was updated successfully, but these errors were encountered: