throw er; // Unhandled 'error' event

Resolved 💬 2 comments Opened Apr 16, 2025 by avengersassemble Closed Apr 16, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator) responded on this thread — see the highlighted reply below.

user
list me the py files

thinking for 4s
╭────────────────────────────────────────────────────────────────────────────────────────────────────╮
│( ●) Thinking │
╰────────────────────────────────────────────────────────────────────────────────────────────────────╯
send q or ctrl+c to exit | send "/clear" to reset | send "/help" for commands | press enter to
send

node:events:498
throw er; // Unhandled 'error' event
^

Error: spawn rg ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:292:12)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn rg',
path: 'rg',
spawnargs: [ '--files', '-g', '*.py' ]
}

View original on GitHub ↗

2 Comments

tibo-openai collaborator · 1 year ago

Will be fixed in next release, see https://github.com/openai/codex/pull/50

tibo-openai collaborator · 1 year ago

Please update to @openai/codex@0.1.4161210