As the title says. Cursor suggested what appears to be the correct file to edit & instead creates a new file entirely instead of targeting the correct file with the code.
Additionally, after random amounts of time, the “Apply” stops working all together and just re-types out the suggested code without applying it, in a endless loop (after each click).
The biggest issue is cursor was working ok yesterday and now its completely un-usable as a pro user.
I have re indexed my project, I have reinstalled, I have specifically told the model what file to apply to.
It seems to want to change the correct file by indicated the correct file name in the chat for changes, but ultimately just creates a new SRC folder and a new file outside of the project folder entirely.
4 Likes
Same issue. Started happening a few days ago. I’ve not updated anything, so assume something has got corrupted somewhere. Keen to get this sorted as it’s making life very hard right now!
I’m having a similar issue. To get Composer to create new files, I have to ask up to 4 times before it does and now, instead of changing code it suggests what I should do half the time. What in the world is going on??? We have a team account with Cursor and I’ll switch any day to Aider if this is not resolve. It’s waisting my time.
I really would like someone from Cursor to inlighten us.
I want to share a prompt fix that will temporarily fix the issue for everyone:
"You are creating new files instead of adhearing to our already pre-exisiting project structure and files.
[YOUR MAIN FOLDER] is the main folder
[YOUR ROOT DIRECTORY] is the root directory and src is the main folder with our important files
You are editing files within a project where the existing src folder is located in the root directory of my project. Please make sure that any code edits you suggest are directed at the files within this existing src folder and do not create a new src folder. Make sure you only refer to or create files within this pre-existing src directory. Do not create or reference any directories outside the existing src structure, and verify that all file paths reference this specific directory. Thank you."