Skip to content

Conversation

@snowfrogdev
Copy link

Implements godotengine/godot-proposals#13898

Summary

The Debugger Errors tab displays ASCII art diagnostic output (like Rust/Elm-style error messages) incorrectly because:

  1. The Tree widget hardcodes BREAK_TRIM_START_EDGE_SPACES and BREAK_TRIM_END_EDGE_SPACES, trimming leading spaces on wrapped lines and breaking alignment
  2. The error tree uses a proportional font instead of monospace

This PR:

  • Adds a per-cell autowrap_trim_flags property to TreeItem, following the pattern used by Label and RichTextLabel
  • Uses the same monospace font (output_source) in the Errors tab as the Output panel
  • Disables space trimming for error message cells

Before

image

After

image

The Debugger Errors tab previously displayed ASCII art diagnostic output
(like Rust/Elm-style error messages) incorrectly because the Tree widget
hardcoded space trimming flags, causing leading spaces on wrapped lines
to be trimmed and breaking alignment.

This adds a per-cell `autowrap_trim_flags` property to TreeItem, following
the pattern used by Label and RichTextLabel. The debugger errors tab now
disables trim flags and uses the same monospace font as the Output panel,
ensuring proper alignment of structured error messages.
@snowfrogdev snowfrogdev requested review from a team as code owners December 24, 2025 20:46
@Chaosus Chaosus added this to the 4.x milestone Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants