leanprover / leanprover/vscode-lean4
Goals in traces are not properly indented
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 313
- Forks
- 104
- Avg merge
- 1h 56m
- Merged PRs (30d)
- 1
Description
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₃: γ
-- ⊢ α
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Lean MWE in the issue and compare the displayed trace hierarchy with the expected indentation. Done means the goal and its context remain indented beneath the enclosing trace node in the VS Code extension.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100