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

Tactic command runs forever #5283

Closed
guilhermehas opened this issue Mar 21, 2021 · 2 comments · Fixed by #5523
Closed

Tactic command runs forever #5283

guilhermehas opened this issue Mar 21, 2021 · 2 comments · Fixed by #5523
Assignees
Labels
reflection Elaborator reflection, macros, tactic arguments regression in 2.6.1 Regression that first appeared in Agda 2.6.1 tactic tactic annotations
Milestone

Comments

@guilhermehas
Copy link

When I try to compile this program, it never finishes:

data  : Set where

_ : ⊥
_ = tactic ?
@andreasabel
Copy link
Member

andreasabel commented Aug 19, 2021

MWE:

open import Agda.Builtin.Reflection

A : Set
A = tactic ?

This fails in 2.6.0 with unsolved constraints, starting with 2.6.1 it loops.

@andreasabel andreasabel added reflection Elaborator reflection, macros, tactic arguments regression in 2.6.1 Regression that first appeared in Agda 2.6.1 labels Aug 19, 2021
@andreasabel
Copy link
Member

Turns out that the scope checker accepts tactic ? as expression, but the type checker never handles it. (It is ping-ponged forever between checkExpr and checkApplication, I suppose.)

@andreasabel andreasabel self-assigned this Aug 19, 2021
@andreasabel andreasabel added this to the 2.6.2.1 milestone Aug 19, 2021
andreasabel added a commit that referenced this issue Aug 19, 2021
'tactic' can only appear in attributes, it has been added to
Abstract.Syntax on error.
andreasabel added a commit that referenced this issue Aug 19, 2021
This is an unused constructor that only causes confusion.
@andreasabel andreasabel added the tactic tactic annotations label Aug 19, 2021
andreasabel added a commit that referenced this issue Aug 19, 2021
'tactic' can only appear in attributes, it has been added to
Abstract.Syntax on error.
andreasabel added a commit that referenced this issue Aug 19, 2021
This is an unused constructor that only causes confusion.
andreasabel added a commit that referenced this issue Nov 17, 2021
'tactic' can only appear in attributes, it has been added to
Abstract.Syntax on error.
andreasabel added a commit that referenced this issue Nov 17, 2021
This is an unused constructor that only causes confusion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reflection Elaborator reflection, macros, tactic arguments regression in 2.6.1 Regression that first appeared in Agda 2.6.1 tactic tactic annotations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants