spectreconsole / spectre.console

A .NET library that makes it easier to create beautiful console applications.
https://spectreconsole.net
MIT License
8.92k stars 454 forks source link

[DebuggerDisplay] attribute on Paragraph is broken #1476

Closed martincostello closed 4 months ago

martincostello commented 4 months ago

Information

Describe the bug

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

https://github.com/spectreconsole/spectre.console/blob/8da05bcc176741565ddace97bcc59f58587734eb/src/Spectre.Console/Widgets/Paragraph.cs#L7-L8

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

martincostello commented 4 months ago

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