Stack Overflow in Async Grep Tool Execution
Bug Description
Claude tried running a grep tool but got an exception: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
RangeError: Maximum call stack size exceeded
at N21 (file:///Users/maksym.taran/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:505:21550)
at file:///Users/maksym.taran/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:505:22175
at sD4 (file:///Users/maksym.taran/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:505:5071)
at N21 (file:///Users/maksym.taran/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:505:22129)
at file:///Users/maksym.taran/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:505:22175
at sD4 (file:///Users/maksym.taran/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:505:5071)
at N21 (file:///Users/maksym.taran/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:505:22129)
at yV4 (file:///Users/maksym.taran/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:505:22248)
at IT (file:///Users/maksym.taran/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:634:79366)
at x4 (file:///Users/maksym.taran/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:634:79405)
'
Environment Info
- Platform: macos
- Terminal: vscode
- Version: 0.2.99
- Feedback ID: a6bf5801-52a9-4646-91bf-eec3d32e4e52
Errors
[]
10 Comments
Exact same error on MacOS 0.2.99 using iTerm + Zsh. This time from "mkdir"
Means that Claude code is unusable as it just crashes every time @bcherny
I've also tried uninstalling and reinstalling which has helped.
I tried uninstall/install too but after a couple of messages, I am getting the same error again.
@ashwin-ant @bcherny
having the same issue linux
0.2.99 (Claude Code)
happening in various circumstances but has happend many times now today - serious issue - it is almost unusable in this state
have found that whilst you get a stack trace dumped, if you hit up/down arrow a few times the UI is redrawn and you ofetn can continue
Sorry you're hitting this. Did this only begin with 0.2.99?
yes I think only since 0.2.99
Yep. Upgraded to 0.2.99 and got the error message.
I'm getting this error pretty consistently too now.
Edit: In my case it's a node lint command, but same error message
Fixed in 0.2.100. Restart to update, and thanks for the bug report!
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.