saoudrizwan / claude-dev

Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, and more with your permission every step of the way.
https://marketplace.visualstudio.com/items?itemName=saoudrizwan.claude-dev
MIT License
4.04k stars 381 forks source link

Execute Command fails: Error executing command: (0 , rk.addAbortListener) is not a function #120

Closed ybalbert001 closed 1 day ago

ybalbert001 commented 3 weeks ago
Screenshot 2024-08-17 at 14 55 59

As claude-dev already know to execute this command, why it throw exception on executing?

I can run 'git diff --staged' on my terminal.

0xbuser commented 2 weeks ago

Same problem. I'm using Windows image

saoudrizwan commented 1 week ago

Are you guys still seeing this issue in the latest 1.5.16?

tinoargentino commented 1 week ago

I'm seeing same issue on v1.5.26 see:

Error
Error executing command:
(0 , coe.addAbortListener) is not a function
saoudrizwan commented 1 week ago

@tinoargentino what OS/vscode version are you using?

saoudrizwan commented 1 week ago

It looks like according to https://github.com/sindresorhus/execa/issues/1064#issuecomment-2116506926 you need to be using at least Node 20.5.0. Can you see what version you're using?

tinoargentino commented 1 week ago

hmmm strange situation:

However,

saoudrizwan commented 1 day ago

I think the larger issue is you're using vscode 1.87.2, I'm surprised it's even opening for you on that version! I really should update my package.json engine version, but not sure what exact version things stop working. Pls try updating to the latest vscode and see if that helps

saoudrizwan commented 1 day ago

Oh also, I removed execa and now commands run right in your terminal, this should work for you now but for claude to see the command's output it requires vscode v1.93. Closing as this should be fixed, but pls report back if you're still running into problems

tinoargentino commented 17 hours ago

thanks @saoudrizwan ! it def works!!! and as said, it can't read output. Thanks a lot!

tinoargentino commented 16 hours ago

@saoudrizwan I upgraded to latest version of vscode now:

saoudrizwan commented 13 hours ago

That error's probably happening because it's trying to set its cwd to your desktop which seems to not exist. If you open claude dev in an existing project it should work as expected! I'll add a check to ensure desktop exists before trying to use it as cwd, any suggestions for a good fallback?