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
--- a/src/Lean/Widget/InteractiveDiagnostic.lean+++ b/src/Lean/Widget/InteractiveDiagnostic.lean@@ -175,7 +175,9 @@ where
else
pure (.strict (← children.mapM (go nCtx ctx)))
let e := .trace data.cls header data.collapsed nodes
- return .tag (← pushEmbed e) default+ -- Trace nodes occupy a full line in the widget view, so ensure the formatter considers them+ -- as such.+ return .nest 2 <| .tag (← pushEmbed e) "\n"
which ensures that the TaggedText actually populates the indent correctly; but then the infoview seems to insert extra newlines and indents.
As a workaround when using set_option trace.Meta.synthInstance true, you can use #guard_msgs to force the trace to be rendered as correctly-indented text.
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
Nested trace nodes are not indented correctly in the widget-based infoview.
They are fine on the command line
Context
This makes
set_option trace.Meta.synthInstance true
very hard to read the output of.Zulip thread
Steps to Reproduce
Run
Expected behavior: Trace nodes are properly nested, as they are on the command line / in
#guard_msgs
:Actual behavior: Infoview shows
Versions
4.15.0-rc1
Additional Information
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: