You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Agda 2.6.4.3 (which is the latest on brew) and I encountered the uncaught pattern violation panic. I know the code is probably buggy, but I didn't expect a panic.
Here's a small reproducer:
variable A B :Setdata⊥:Setwhere¬_ :Set→Set
¬ A = A → ⊥
record_×_ (A :Set) (B :Set) :Setwhereconstructor_,_fieldπ₁ : A
π₂ : B
infixr20 _×_
data_⊎_ (A :Set) (B :Set) :Setwhereinl : A → A ⊎ B
inr : B → A ⊎ B
dataDec:Set→Set₁whereyes : A → Dec A
no : ¬ A → Dec A
forget : Dec A →Set
forget {A} _ = A
data_≡_ {A :Set} (x : A) : A →Setwhererefl : x ≡ x
data⊤:Setwherett : ⊤
dataSymbol:Setwheres : Symbol
-- ...dataString:Setwhere[] : String
_∷_ : Symbol → String → String
variable c : Symbol
w : String
_++_ : String → String → String
[] ++ ys = ys
(x ∷ xs) ++ ys = x ∷ (xs ++ ys)
recordΣ (A :Set) (B : A →Set) :Setwhereconstructor_,_fieldπ₁ : A
π₂ : B π₁
infixr20 _,_
Lang :Set₁
Lang = String →Setvariable V :SetdataGram V :Set₁where∅ ε : Gram V
`_ : Symbol → Gram V
_·_ : {A :Set} → Dec A → Gram V → Gram V
_∪_ _▹_ : Gram V → Gram V → Gram V
var : V → Gram V
variable G G₁ G₂ : Gram V
⟦_⟧ : Gram ⊥ → Lang
⟦ ∅ ⟧ _ = ⊥
⟦ ε ⟧ w = w ≡ []
⟦ A · G ⟧ w = forget A × ⟦ G ⟧ w
⟦ G₁ ∪ G₂ ⟧ w = ⟦ G₁ ⟧ w ⊎ ⟦ G₂ ⟧ w
⟦ G₁ ▹ G₂ ⟧ w = Σ String λ u → Σ String λ v → (w ≡ (u ++ v)) × ⟦ G₁ ⟧ u × ⟦ G₂ ⟧ v
⟦ ` x ⟧ w = w ≡ (x ∷ [])
I have trouble bisecting this because work on #3733 by @Saizan was integrated via a merge commit (621894f) rather than squashed. It contains tons of commits that do not build on GHC 9.0 (even though 2.6.2 supported 9.0) due to a base upper bound on GHC 8.10. However, some commits do not build on GHC 8.10 because that has a too old version of transformers.
@UlfNorell Not sure if you still hold the belief in merge commits (you were defending this method of merging a PR at least until recently). If yes, you can defend your belief by bisecting this issue.
Activity
noughtmare commentedon Dec 6, 2024
Ah, I forgot the type signature of
V. If I change the data declaration ofGramto this then it starts giving normal errors again:szumixie commentedon Dec 6, 2024
Reproducible on master, minimized:
andreasabel commentedon Dec 7, 2024
I have trouble bisecting this because work on #3733 by @Saizan was integrated via a merge commit (621894f) rather than squashed. It contains tons of commits that do not build on GHC 9.0 (even though 2.6.2 supported 9.0) due to a
baseupper bound on GHC 8.10. However, some commits do not build on GHC 8.10 because that has a too old version oftransformers.My first run (GHC 9.0.2) gave this bisect result:
This is a ton of small commits developed in a long span from 2024-05-04 to 2021-08-21 (15 months).
andreasabel commentedon Dec 7, 2024
@UlfNorell Not sure if you still hold the belief in merge commits (you were defending this method of merging a PR at least until recently). If yes, you can defend your belief by bisecting this issue.
andreasabel commentedon Dec 7, 2024
Bisecting with GHC 8.10.7 gives this:
So, bisect can only blame the merging commit for #3733, which merged a ton of now unbuildable commits.
This merge commit changed over 4000 lines.
andreasabel commentedon Dec 7, 2024
Here is a version of the MWE with "standard" names and an option that suppresses the regular error caused by unsolved metas:
The error goes away if one either solves
_(e.g. bySet) or turnsSet1intoSet(which I suppose also solves the meta by constraining it fully).Fix #7643: coverage: handle blocked sort in isFibrant