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

Goals in traces are not properly indented #294

Open
JLimperg opened this issue Mar 28, 2023 · 0 comments
Open

Goals in traces are not properly indented #294

JLimperg opened this issue Mar 28, 2023 · 0 comments

Comments

@JLimperg
Copy link

When displaying a goal as as part of a trace message, the goal is always fully dedented, even if it is within an indented trace node. This is mildly annoying since it breaks the hierarchical structure of the trace messages. Emacs does not have this issue.

MWE:

import Lean

open Lean Lean.Elab.Tactic

elab "test" : tactic => do
  withTraceNode `debug (λ _ => return "Section") do
    trace[debug] "The goal:{← getMainGoal}"

set_option trace.debug true in
example (h₁ : α) (h₂ : β) (h₃ : γ) : α := by
  test
    -- [debug] Section ▼
    --   [] The goal:
    -- h₁: α
    -- h₂: β
    -- h₃: γ
    -- ⊢ α
@Vtec234 Vtec234 self-assigned this May 10, 2023
@Vtec234 Vtec234 removed their assignment Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants