Skip to content

Conversation

@nevans
Copy link
Collaborator

@nevans nevans commented Feb 10, 2026

This first version is monochrome: only bold and underline highlights are added. A follow-up PR adds color.

@nevans nevans added the enhancement New feature or request label Feb 10, 2026
Since the backtrace_locations don't _explicitly_ include the class name,
this still feelds inherently brittle.  But it's very useful!  It's a
worthwhile tradeoff, IMO.
This runs sprintf in two passes: once to apply the escape sequences and
again to interpolate variables.  This requires `%%` for the second pass,
which _can_ be confusing.

Maybe this approach is too much for the very simple highlighting in this
version?  But, it seems to work okay for elaborate color schemes, too.
IMO it's easier to read and maintain than a bunch of conditional string
appending.  And it's simpler than the other templating approaches that I
considered.
@nevans nevans force-pushed the response_parse_error-detailed_message-highlights branch from f7f580c to e5656a9 Compare February 10, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant