mafintosh / mafintosh/ansi-diff

Messages from Node break the output

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

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
56
Forks
4
PR merge metrics
No merged PRs in 30d

Description

When node prints a message, the output gets broken. For instance, when pnpm runs child processes, sometimes Node prints:

```
(node:21820) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added. Use emitter.setMaxListeners() to increase limit
```

This message breaks the output written by ansi-diff. ansi-diff should either skip lines printed by other tools or rewrite them.

Contributor guide

No contributing guide indexed for this repository

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

Start by reproducing the pnpm child-process warning described in the issue, then inspect ansi-diff's input and output handling to find where the extra Node message disrupts the diff. Done means output from other tools no longer breaks ansi-diff, with the handling behavior clarified between skipping or rewriting those lines.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.