Suggest non existing import when could easily see from the codebase where the function is

Why doesn’t Cursor read the whole codebase, but suggest something non existing? This is the biggest problem with Cursor. It so many times suggests things that don’t make any sense because it does not read the existing code. I thought that is the whole idea of Cursor that it uses the codebase. Now it looks like it works completely without context. Suggests non existing database fields when the model files are in the project.