spectreconsole / spectre.console

A .NET library that makes it easier to create beautiful console applications.

Home Page:https://spectreconsole.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[DebuggerDisplay] attribute on Paragraph is broken

martincostello opened this issue · comments

Information

  • OS: N/A
  • Version: 0.48.0
  • Terminal: N/A

Describe the bug

The [DebuggerDisplay] attribute on Paragraph references a field that no longer exists:

[DebuggerDisplay("{_text,nq}")]
public sealed class Paragraph : Renderable, IHasJustification, IOverflowable

This causes an error message to be rendered in a debugger if inspecting a Paragraph instance.

To Reproduce

View an instance of Paragraph in a debugger such as Visual Studio.

Expected behavior

No error is shown.

Screenshots

image

Opened #1477 to remove the attribute as there appears to be no member that is a trivial equivalent.