Describe the Bug
A file is shown twice or thrice when trying to add it as context. I initially was working on a repo/folder in my PC…
I then opened a file outside of the repo (maybe by dragging it in cursor?). I then tried to use the composer and got a message saying that the file didn’t exist.
Steps to Reproduce
I simply tried to run the composer and I got an error saying the file I added in the context didn’t exist but it did. I saw three copy of the files when trying to remove and then add it back.
Expected Behavior
It should only show my file once.
Screenshots / Screen Recordings
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 0.44.8
VSCode Version: 1.93.1
Commit: f3b5a63019e4e2283033b4db987a35f8413c7570
Date: 2024-12-22T05:48:08.427Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.19045
Additional Information
In my screenshot, you can see that file 1 has backslashes, while 2-3 have a forward slash. If I add all of them in the context and hover over them. Here is the paths that I see:
- C:\Users\MyUsername\AppData\Roaming\vlc\lua\extensions\vlc-delete.lua
- Users\MyUsername\AppData\Roaming\vlc\lua\extensions\vlc-delete.lua
- Users\MyUsername\AppData\Roaming\vlc\lua\extensions\vlc-delete.lua
Another bug that might or might not be related is that sometimes when dragging a file from the explorer (cursor) to the composer, it’s added twice.
While typing this thread, I found something that might explain the issue. I mentioned that I opened a file outside of the repo (by dragging it to Cursor I believe). right? Well, I just discovered a similarly named file in the repo I had originally opened… see here
The actual path of the file is
“C:\Users\MyUsername\AppData\Roaming\vlc\lua\extensions\vlc-delete.lua”
The repo path is
“C:\Users\MyUserName\Misc\BatchScripts”
and now I have a empty
C\Users\MyUserName\Misc\BatchScripts\Users\MyUsername\AppData\Roaming\vlc\lua\extensions\vlc-delete.lua file.
The composer seem to have tried to apply the change to the monstrosity above. Deleting the empty file, removed the two:
Users\MyUsername\AppData\Roaming\vlc\lua\extensions\vlc-delete.lua
entries in the context search result.
I then tried to close the folder/repo, open the file. Use the composer with my original request and now I see a duplicate… Not sure what is happening.
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor