cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Error calling tool 'edit_file'.

Open a37836323 opened this issue 8 months ago • 14 comments

Error calling tool 'edit_file'.

It always prompts this.

a37836323 avatar Apr 10 '25 16:04 a37836323

When this issue can be FIXED!

edwinliu0929 avatar Apr 13 '25 10:04 edwinliu0929

Markin' this Got slapped by the SAME error today smh - 'error calling toll edit_file' outta nowhere When they goona patch this?

12zyhh avatar Apr 14 '25 01:04 12zyhh

same error

dshubenok avatar Apr 15 '25 10:04 dshubenok

i encounter the same problem,it can be fixed

lingerze avatar Apr 16 '25 06:04 lingerze

i2

balajinima avatar Apr 16 '25 08:04 balajinima

for now Cursor cannot create file anymore...

edwinliu0929 avatar Apr 17 '25 01:04 edwinliu0929

This bug seems to happen with long text. Adding Please edit the file in small chunks fixes it.

Samueli924 avatar Apr 17 '25 02:04 Samueli924

In my case, this bug seems to happen when the cursor tries to edit long text. So when I add Please edit the file in small chunks, it starts working again.

It works for me

cd-yang avatar Apr 17 '25 03:04 cd-yang

This bug seems to happen with long text. Adding Please edit the file in small chunks fixes it. Yeah bro u're right when I use small file chunks , this error's gone

12zyhh avatar Apr 18 '25 09:04 12zyhh

Same error. The workaround of editing in small files works for some things, but it fails as soon as it tries to e.g. consolidate its edits into a new file. It's a pain.

sachit-menon avatar Apr 21 '25 21:04 sachit-menon

Same error. The workaround of editing in small files works for some things, but it fails as soon as it tries to e.g. consolidate its edits into a new file. It's a pain.

I tried this and sometimes it works.

First develop a numbered outline with clear sections. Then fill in each section sequentially in small chunks

Samueli924 avatar Apr 23 '25 07:04 Samueli924

This happens to me when I use Gemini MAX. When I use sonet it works fine

corby avatar Apr 25 '25 00:04 corby

same issue with sonnet 3.7

rajesh0854 avatar Apr 26 '25 17:04 rajesh0854

After getting the error for 4 times I got this from cursor:

Error calling tool 'edit_file'. Error calling tool 'edit_file'. Error calling tool 'edit_file'. Error calling tool 'edit_file'. I'll implement the reservations feature one step at a time to ensure we don't hit token limits. Let's start by updating the reservations filtering to show only future reservations in the "upcoming" tab.

mephoria avatar Apr 27 '25 00:04 mephoria

After 3 failed attempts :)

Error calling tool 'edit_file'. Error calling tool 'edit_file'. Error calling tool 'edit_file'. Let me break down the script creation into smaller steps, starting with creating the basic structure:

atemiz avatar Apr 29 '25 00:04 atemiz

same error

cankilinc avatar Apr 29 '25 17:04 cankilinc

I'm having the same issue here. One time it even added about 18,000 lines of unnecessary blank code.

maxsonderby avatar Apr 30 '25 06:04 maxsonderby

Please fix the Error calling tool 'edit file'. People are paying money for this app now.

emrKvn0 avatar May 09 '25 18:05 emrKvn0

having the same issue. Error calling tool 'edit_file'

YaseenHQ avatar May 12 '25 03:05 YaseenHQ

It's so frustrating, always getting this error.

lalagu27 avatar May 12 '25 05:05 lalagu27

I want my money back! I have already lost 300 requests and I can't create the files because of this problem!

sousawalker avatar May 13 '25 00:05 sousawalker

"Error calling tool 'edit_file'. This error has caused me to lose at least $50 USD unnecessarily over the past week. I believe the official platform should issue me a refund."

Error calling tool 'edit_file'. 这个错误让我至少在一周内白白损失了$50美元 我认为官方应该给我退钱

zzzmhcn avatar May 16 '25 09:05 zzzmhcn

When this issue can be FIXED!

yerbaht avatar May 18 '25 08:05 yerbaht

I got this error more frequently on gpt-4.1 Please fix it :)

danio987 avatar May 20 '25 19:05 danio987

same error with claude 3.7. even change to small chunk, can not slove this issue.

YKWang1024 avatar May 30 '25 03:05 YKWang1024

I am getting the same error. It has been doing it for a while, but it's starting to get annoying, so I thought it was worth a post. I am using gemini-2.5-pro-exp-03-25.

Sometimes it works, sometimes it doesn't. Sometimes it's on larger changes, sometimes it's only a couple of lines. Here is a response from gemini: "This is unbelievable. I apologize profusely. The tool is fundamentally broken and is preventing me from applying the fix. I have done everything I can. The problem is not with the logic, but with the tool's inability to edit the file."

tyekynan avatar Jun 05 '25 20:06 tyekynan

I am also getting this error, a lot of it using gemini-2.5-pro, and not even on big files. Trying to ask for edits in a file with 100 lines and I am getting this a lot.

matheuslenke avatar Jun 06 '25 14:06 matheuslenke

I am also getting this error

Adaxhhh avatar Jun 24 '25 18:06 Adaxhhh

This bug seems to happen with long text. Adding Please edit the file in small chunks fixes it.

The first time we fix a bug without programming languages

cestbonn avatar Jul 02 '25 19:07 cestbonn

same error, and Please edit the file in small chunks does not work for me.

Le-dawn avatar Aug 26 '25 03:08 Le-dawn