I still experience this problem, and it’s driving me crazy.
This is more or less how I can reproduce it:
ask Cursor to add some files
accept them
then delete the new files (I do from cli with git or rm, but the same works if you delete them from the IDE)
now the repo is clean (git status doesn’t show any change)
deploy the app (in my case a Flutter app)
Expected: I can deploy the app
Happens: a prompt appears saying that there are errors. Clicking continue anyway deploys the app fine. Deploying the app from cli works fine no problems. The errors can still be seen in the editor and clicking them shows the deleted file (not present on the file system anymore)
as someone was suggesting to close Cursor in another thread, I tried, and after opening it again the problems are the in-memory cached files are all gone. So definitely the IDE (Cursor side or VS Code side) is keeping track of the non-existing files
Syncing the codebase didn’t solve the issue for me, only closing the IDE.
The solution I used is to delete all the data from the “deleted” files, and then it didn’t show problem in it.
I believe the problems issue fixed for me (updated Cursor version), but I do sometime see deleted files in context