Skip to content

[Bug]: Linter Error: readline was closed on Node 24 #8778

@mikeharder

Description

@mikeharder

Kind of Issue

Crash / Error

Tool or Library

cspell

Version

9.7.0

Supporting Library

No response

OS

Linux

OS Version

ubuntu-24.04

Description

cspell can crash with Linter Error: readline was closed on Node 24, when using option --file-list stdin, and a large list of files. It does not crash on Node 22.

Steps to Reproduce

  1. Create 10000 small text files, and a list of the files in another text file. If this doesn't repro on your system, try different numbers of files.
for i in $(seq 1 10000); do
  echo '{}' > file$i.txt
  echo file$i.txt
done > files.txt
  1. Run cspell using Node 24:
$ node --version
v24.14.1

$ npx cspell@9.7.0 lint --file-list stdin < files.txt
...
9998/9998 file9998.txt 0.54ms
9999/9999 file9999.txt 0.55ms
Linter Error: readline was closed

Expected Behavior

$ node --version
v22.22.2

$ npx cspell@9.7.0 lint --file-list stdin < files.txt
...
9998/9998 file9998.txt 0.50ms
9999/9999 file9999.txt 0.51ms
10000/10000 file10000.txt 0.57ms
CSpell: Files checked: 10000, Issues found: 0 in 0 files.

Additional Information

No response

cspell.json

cspell.config.yaml

Example Repository

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions