I have noticed on that Apply seems to be broken.
I’m a Pro subscriber and using sonnet-3.5.
Giving composer and image for how an existing React component should look like
Chat does come up with code for the updated UI, but when applying, It duplicates the content (NOT rewrite) of the file. So, now there exist two declarations for every variable, function, etc.
You can see stuff being repeated starting line 389 (I can’t upload more than one image since I’m new here.)
I’ve definitely been having some issues with the ‘Apply’ in the last few days (again Pro with sonnet-3.5). Sometimes slowness and timeouts, connection failures, or sometimes the button just doing nothing. Other times there’s been mangling of the code, such as sections being replaced with " # … rest of your code here… ". And over the last 24hrs frequent issues with code blocks not being identified:
Here the text right before the code literally says “In the socketio.js file, add…” and yet the IDE is saying it doesn’t know which file to put the code in. Today almost every time I’ve come to apply something from chat I’m back to manually telling it where to put it, or copying and pasting from chat into the editor. This definitely makes chat less useful, as it’s one of the best things about it when it’s working.
I’ve found myself going back to using ChatGPT web, because I feel less bad about making it regenerate entire script files on every change
Any chance one of our Cursor staff superstars could take a look at why this might be falling short of its normally great functionality? Thanks.
I’m also on 0.40.4; I’m pretty sure I was seeing some of the same on 0.40.3 as I only upgraded to 0.40.4 this morning in the hope of things improving. The failure to identify the file does seem recent though so may be just 0.40.4. I’ll go back to the previous version and walk back through them if it doesn’t resolve. Thanks @deanrie
Possibly stupid question - how did you find the download link? I managed to locate some previous version links via winget-pkgs on github but only for Windows. I’m looking for the Mac ones. Existing forum questions on where to find a list of previous version download links seem to have gone unanswered so far.
I’m having this exact same issue (duplicating code, rather than replacing/rewriting code).
I have a JS file about 680 lines long, when I ask Composer to update some function, it duplicates almost the entire code, leaving me with 1200+ lines of code - but, oddly, it doesn’t seem to duplicate ALL of the code - it stop some ways through.
So, I end up with about 480+lines of code with no changes, and also 600+ lines of old code. It seems to be inserting new code, rather than rewriting code, to make changes. A bunch of duplicated functions, etc …
Also, I tried uninstalling 0.40.4, then installing 0.40.3, asking composer to make changes again (didn’t work, also duplicated code), then when I relaunched Cursor 0.40.3, it force-updated me back to 0.40.4.
Same, Luckily I was saving it often… It started a duplication spree like no other. I love Cursor, please please fix the duplication. At first, I could just delete the top part and it would be fine. Now its duplicating like each function as it pleases and even my html templates.
I’m at a loss on the can’t-predict-origin-file issue though, it’s not like the model isn’t being clear enough (explicit both in the introductory sentence and the provided code snippet)