Raku / Raku/whateverable

Strip colors from exceptions

Open
#188 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

whateverable
Dominant language
Raku
Stars
19
Forks
16
PR merge metrics
No merged PRs in 30d

Description

This should not really touch any users, but when the exception is gisted the colors appear like this:

Cannot convert string to number: base-10 number must begin with valid digits or '.' in '�[32m⏏�[31mHEAD(12d7d5b)�[0m' (indicated by ⏏�[0m)

Definitely LTA.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides a reproduced exception from the gisting path, but names no files or tests. Start by locating where exceptions are formatted or gisted, then reproduce the example and trace the color sequences. Done means gisted exceptions no longer contain terminal color escape sequences.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.