Files missing from @codebase

Hey All -

Havent used cursor in a while and wanted to jump back into it today. Updated to newest version.

Went to start doing some work and saw some files were not a part of the @codebase.

Checked my .cursorignore and .gitignore and didnt see any reason why the .swift files were not showing.

Reindexed and during that it showed a lot of these .swift files going into it. However then I start a new chat or composer and ask what files are in the @codebase and it does not list them.

I asked this:


Are there any .swift files?

Looking at the .cursorignore file, it contains this relevant line:

!**/*.swift

This line in the .cursorignore file actually means “don’t ignore Swift files” (the ! negates the ignore pattern). However, in the provided codebase context, I can only see one Swift file:

/Views/Info/InfoView.swift

And even this file is only partially shown in the context.

If you want to see all Swift files in the project, you might need to provide more of the codebase context or use a different method to list the files.

What am I missing here?

hey! this definitely seems like unexpected behavior. the fact that you’re seeing the swift files during reindexing but not in chat suggests there might be an issue with how they’re being processed

could you try these quick steps:

  1. go to Cursor Settings > Features > Codebase Indexing
  2. click “Clear Index”
  3. close and reopen Cursor
  4. let it reindex from scratch

if that doesn’t work, could you share what happens when you run this in chat:
find . -name "*.swift" -type f

this will help us figure out if it’s an indexing issue or something else