I am getting an awful lot of "Failed to Apply Code" with the latest update

Spoke too early. Down again.

same here

Can anyone who’s affected please drop the following:

  • File type (.js, .py, etc)
  • how many lines of code in the file you are trying to apply to
  • If you are using chat or composer
  • A few request IDs if you get them in the error

We are investigated at the moment!
Please don’t comment more than once in the above format to keep things clear!

vue

approx Thirtheen lines
Composer

Your request ID is ba10b6b6-8a2f-4892-a004-6f396a640e3c.

3a26ad5d-677c-4a30-b521-1753d5338976

other pass to quickly to get it

TS/TSX

This example is Composer. 2 files in context < 200 lines total, plus 100 lines from the terminal

0c41ea7d-be4f-408c-95dc-5b64058976af

Working for me for now. Goes on and off.

.astro
200 - 250
Chat
7d32e31e-047f-4c5c-94fa-9500fdad4652

File type: just .py (.jsx work fine)
Lines of code: approx. 200-300
Chat or composer: Composer
Request ID: d8d9c16d-19dc-4e5f-b14f-017791da78f8

There are so many bugs in the last update…
I get this beauty.

Hey @hr-hristov

Can you post this in a new post please?
Just trying to keep this one relevant to this issue while we look into it!

Thanks

  • .js, .tsx
  • about 300 lines
  • Composer
  • 65a4123d-ede8-4d87-91eb-8ad33df29ed3

It looks like it’s working when modifying few components.
but when it comes to multiple components, error is almost certain.

I just modified a single component and I had no errors.

File type .gs (Apps Script)
199 lines of code
Composer
cd6e7c21-05d8-4425-9ae5-63d5c6cfb8d4

thanks

.swift
8 Lines in one file 32 lines in another
Composer
1e4fe712-0aa5-48a5-a019-87cda571b0c0
f220e378-9495-473d-aef9-048606216c97

(when pressing reapply it’s intermittently working)

Failed to Apply Code
Please try again from a different codeblock. If this persists, contact us at [email protected].
Your request ID is 226661f6-a729-482d-b6a6-323e0205cda0.

its random for me but when i get the error i see the below hopefully this helps you

composer] no diff id for uri $ {scheme: 'file', authority: '', path: '/myheal…-mobile/lib/core/providers/storage_providers.dart', query: '', fragment: '', …}authority: ""fragment: ""path: "/lib/core/providers/storage_providers.dart"query: ""scheme: "file"_formatted: "file:///lib/core/providers/storage_providers.dart"_fsPath: "/lib/core/providers/storage_providers.dart"fsPath: (...)[[Prototype]]: m

workbench.desktop.main.js:2998 [composer] no diff id for uri 
$ {scheme: 'file', authority: '', path: '/myheal…-mobile/lib/core/providers/storage_providers.dart', query: '', fragment: '', …}


workbench.desktop.main.js:2998 ConnectError: [resource_exhausted] Error
    at K.$endAiConnectTransportReportError (workbench.desktop.main.js:3822:11155)
    at T.S (workbench.desktop.main.js:2444:14840)
    at T.Q (workbench.desktop.main.js:2444:14606)
    at T.M (workbench.desktop.main.js:2444:13639)
    at T.L (workbench.desktop.main.js:2444:12474)
    at $.value (workbench.desktop.main.js:2444:11169)
    at a.B (workbench.desktop.main.js:438:732)
    at a.fire (workbench.desktop.main.js:438:949)
    at s.fire (workbench.desktop.main.js:1121:14822)
    at G.onmessage (workbench.desktop.main.js:2460:8223)
    
  [composer] error in runFastApplyOnCodeBlock ConnectError: [resource_exhausted] Error
    at K.$endAiConnectTransportReportError (workbench.desktop.main.js:3822:11155)
    at T.S (workbench.desktop.main.js:2444:14840)
    at T.Q (workbench.desktop.main.js:2444:14606)
    at T.M (workbench.desktop.main.js:2444:13639)
    at T.L (workbench.desktop.main.js:2444:12474)
    at $.value (workbench.desktop.main.js:2444:11169)
    at a.B (workbench.desktop.main.js:438:732)
    at a.fire (workbench.desktop.main.js:438:949)
    at s.fire (workbench.desktop.main.js:1121:14822)
    at G.onmessage (workbench.desktop.main.js:2460:8223)  
    

Meantime, would be great if the cursor team would provide a method to install the previous patch version

Had issues too in the latest version.

Found this build in another thread. Seems to be working fine:

https://download.todesktop.com/230313mzl4w4u92/Cursor%200.39.6%20-%20Build%20240819ih4ta2fye-arm64-mac.zip

Seems fixed. Started applying again.

File type is .js, maybe 10-25 lines of code total, roughly 2-3 lines of changes / updates

Using chat not composer

Error id f341d5ba-058d-4518-b074-fe62b1c613a5

it started to work again.

I have the same issue. However, I believe the problem is coming from @codebase. When I drag the file and then run composer, everything is fixed.