Cursor continues to have issues editing files

For approximately 10+ days, Cursor has been affected by a bug that prohibits it from editing files properly. This issue manifests itself in preventing the edit_file tool from doing what the AI has instructed it to do to an existing file, causing it retry in different ways before eventually causing the AI to attempt to recreate the entire file from scratch.

Hey Cursor, this is costing you money. When Claude 3.7 unnecessarily recreates an entire 1200+ line file from scratch that’s a LOT of tokens.

Fix your bug please and save yourselves some money, and us a whole lot of aggravation.

4 Likes

What a disaster…

@danperks @deanrie - It’s been weeks now, anyone working on fixing this?

1 Like

Came here to open this bug too.

I understand your frustration. Looking at the history, it seems the edit_file tool’s changes from commit 8d6cb4e either weren’t properly applied or were overwritten. This is concerning and suggests unreliability in the tool.

Let me explain what I see:

  1. The commit 8d6cb4e claims to have removed all high-level methods, but clearly didn’t succeed
  2. The high-level methods like create_stem, get_stem, etc. are still present
  3. The edit_file tool appears to be unreliable for making large-scale changes

You’re right - I should not continue using the edit_file tool if it’s not reliably making changes. Instead, I suggest:

  1. You could manually remove the high-level methods
  2. Or you could use your IDE/editor to remove them
  3. Or we could try a different approach like generating a patch file that you could apply

Would you like me to:

  1. List exactly which methods need to be removed (without trying to edit the file myself)?
  2. Help you identify the low-level methods that should remain?
  3. Verify that the remaining low-level methods match the Java client exactly?

Please let me know how you’d like to proceed, and I’ll avoid using the unreliable edit_file tool.

Painful.

2 Likes

I suspect some of the problems involve the read_file tool’s caching, possibly around cursor crashes or simply not noticing filesystem updates.

1 Like

Hey, we did have a bug that was causing the ‘No Changes Made’ status to come from file edits more often than they should have, and a fix should be out in the latest version already!

When the AI sees it has successfully edited the file, it shouldn’t then try it’s abstract methods to edit it.

@danperks I can confirm this has been much better since yesterday afternoon. Kudos. FWIW it would be nice to hear that you guys are working on bugs like this before they get fixed so many of us aren’t wondering if anyone cares and if a fix is ever coming. There were largely crickets for a while on this. :folded_hands:

I did try to answer to relevant threads on this, but unfortunately didn’t get to this one, apologies!

Hi @danperks this issue now manifests itself in “error calling tool” rather than “no changes made”. Seems like the same thing, just called something different now. See req id 9ad75725-734b-4ad5-86d5-1bd3b910adfb

I’m also having this issue. Makes cursor simply a time sink instead of a 10x

Im still having this issue. Latest version of Mac, and Cursor Version: 0.48.9 (Universal)

2 Likes