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

Weird issue with file edits #161

Closed maxiedaniels closed 1 week ago

maxiedaniels commented 2 weeks ago

When ClaudeDev edits a file, i see the diff show up first, and then i hit approve. It does some processing in the background, then the file just suddenly goes back to how it was. The weird part is that after trying it three times and the new edits kept disappearing, I decided to just copy paste the edits into the file and hit save. Then I got an error saying the file has been changed since - and when i hit compare, it showed the file does have the new edits, but seemingly VScode didn't refresh the file. Why would this happen? VSCode always updated files changed outside of the IDE so i figure this must be a ClaudeDev issue.

paj80paj commented 2 weeks ago

I've been getting this

saoudrizwan commented 2 weeks ago

The extension writes directly to the file so I have to imagine this is bc vscode gets into a weird state where the open editor version and the version on disk are out of sync. Please try restarting vscode and let me know if you're still consistently running into this.

saoudrizwan commented 1 week ago

Closing for inactivity, pls feel free to re-open if you still keep running into this issue