-
Notifications
You must be signed in to change notification settings - Fork 338
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
Instance Search breaks Termination Highlighting #5875
Labels
meta
Metavariables, insertion of implicit arguments, etc
range
regression in 2.6.0
Regression that first appeared in Agda 2.6.0
termination
Issues relating to the termination checker
ux: error reporting
Issues to do with how Agda reports errors
Milestone
Comments
Thanks for reporting! This used to work in Agda 2.5.2/3/4, broke in 2.6.0. |
Starting bisection:
Skript
The file |
andreasabel
referenced
this issue
Apr 28, 2022
* killrange when solving metas In order to avoid positivity issues to be reported with the range of the term that made solving the meta possible rather than where the meta actually originated from. As a consequence a few golden valus are changed. * Keeping the record's tele's ranges In order to be able to report positivity issues, we need to keep the ranges in the record's telescope.
The real culprit seems to be 2970da8 (ping @gallais) see 2970da8#r72426685:
|
andreasabel
added a commit
that referenced
this issue
Apr 28, 2022
This brings back termination error locations lost in 2970da8. It also brings back a maybe unwanted positivity highlighting that was removed by cited commit. However, I think highlighting THIS ``` data H : Set where inH : ∀ f → f ≡ (λ (x : H) → x) -> H -- non-positive occurrence is -- in the implicit type of f -- ^ THIS ``` isn't so wrong. Maybe there are more convincing examples...
andreasabel
added a commit
that referenced
this issue
Apr 28, 2022
This brings back termination error locations lost in 2970da8. It also brings back a maybe unwanted positivity highlighting that was removed by cited commit. However, I think highlighting THIS ``` data H : Set where inH : ∀ f → f ≡ (λ (x : H) → x) -> H -- non-positive occurrence is -- in the implicit type of f -- ^ THIS ``` isn't so wrong. Maybe there are more convincing examples...
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
meta
Metavariables, insertion of implicit arguments, etc
range
regression in 2.6.0
Regression that first appeared in Agda 2.6.0
termination
Issues relating to the termination checker
ux: error reporting
Issues to do with how Agda reports errors
The termination checker correctly finds the bad call in the following code:
However, when I replace
open Monad-Lite Monad-id
withopen Monad-Lite {{...}}
, the highlighting disappears.The termination checker still complains, it just doesn't say where the suspicious call is any more.
Screenshots:
Notes:
The text was updated successfully, but these errors were encountered: