Removing cache - Directory rename causing duplicate files in composer

At some point cursor mixed up casing styles in directory names. This mostly doesn’t matter working locally on mac, but created some issues in production. I ended up renaming the directory to lowercase. “MyDirectory” → “mydirectory”. The directory is renamed on the file system and within git, however Cursor won’t fully recognize it. It believes there are two versions of the file and will constantly get confused when doing imports (changing back and forth between the two case styles) . It will believe there are issues because of the wrong casing in the import statements.

I’ve tried to find how to refresh the file cache, but I can’t find anything. Here is my composer including the file will include both “versions”.

The issue wastes requests and time.

Version: 0.47.8

VSCode Version: 1.96.2

Mac OS 14.4 (m3 pro)

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.