My codebase is fully indexed and synced. In the past week whenever I’ve tried to chat with the codebase either through pressing Ctrl + Enter or manually clicking the button, it will say that it’s reading the files but obviously it doesn’t since no files are listed as having been read, and I get an instant response that has nothing to do with the codebase. I’m not sure what to do here as I’ve already tried uninstalling and reinstalling Cursor to no avail. I’ve also tried manually @ing Codebase in my question but still that doesn’t work.
EDIT: So I just tested it out with a different (though significantly smaller codebase) and it works fine with that one. Could it have something to do with the size of the codebase? I don’t think that’s the case because I’ve been working on that codebase with Cursor for a year now with no problems at all.
EDIT 2: Tried cloning my codebase to another folder and letting Cursor index that one all over again but I get the same problem of the codebase not being used as a context. I’m able to use individual files as context but not the whole codebase.
It’s possible that your codebase contains many packages, like node_modules and similar. Restrict access to those from your project, and to anything else you think is necessary.
I tried to do that but either I didn’t get the syntax right for how to restrict access or something went wrong. I’ll try again later and report back. My question is, how come size wasn’t a problem before?
Unfortunately this worked. I say unfortunately because I’d much rather it be able to index the entire codebase as it was before. Hopefully there is a fix for this if it isn’t intentional.