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

Stack overflow in LSP/lake build for snippet #3814

Closed
1 task done
badly-drawn-wizards opened this issue Apr 1, 2024 · 1 comment
Closed
1 task done

Stack overflow in LSP/lake build for snippet #3814

badly-drawn-wizards opened this issue Apr 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@badly-drawn-wizards
Copy link

Prerequisites

  • Put an X between the brackets on this line if you have done all of the following:
    • Check that your issue is not already filed.
    • Reduce the issue to a minimal, self-contained, reproducible test case. Avoid dependencies to mathlib4 or std4.

Description

The following MWE causes a stack overflow in lake build or causes the LSP to hang

inductive A
  | foo : A → A

inductive B : A → A → Type where
  | foo : B (.foo q) q

structure ImageR (R : α → α → Type) (a : α) where
  {b : α}
  (r : R a b)

instance : Ord (ImageR B p) where
  compare i j := match i.r with
    | .foo => match j.r with
      | .foo => sorry

Steps to Reproduce

  1. Put this snippet in a lean project
  2. lake build

Expected behavior: No stack overflow
Actual behavior: Stack overflow

Versions

[Output of #eval Lean.versionString or of lean --version in the folder that the issue occured in] 4.7.0-rc2
[OS version] NixOS 24.05pre-git (Uakari) x86_64

@badly-drawn-wizards badly-drawn-wizards added the bug Something isn't working label Apr 1, 2024
@Kha
Copy link
Member

Kha commented Aug 29, 2024

Does not reproduce anymore

@Kha Kha closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants