I have been using cursor for some time in my backend work which is centered around Django and FastAPI, but a week ago the auto-complete is not working and click to inspect also not working I tried a lot of solutions none worked. I tried to import my extensions from vscode also and it did not work. there are two screenshots below one from cursor and one from vscode to seed the difference.
Hi @atef_hesham, could you install the Python extension, and double check that the correct Python interpreter is selected (cmd/ctrl-shift-p, then "Python: Select Interpreter)?
Hi @atef_hesham, could you confirm whether jump to definition (cmd/ctrl-click) is working for any objects (e.g. in your screenshot, does it take you to the definition of the BaseCommand class?) If so, then this would indicate that we’re unable to infer the type of PlanPrice.objects.update_or_create. Could you double check that the setting cursorpyright.analysis.useLibraryCodeForTypes is enabled?
The jump to definition is not working for the objects manager and I doubled checked the setting cursorpyright.analysis.useLibraryCodeForTypes and it is indeed enabled. the issue remains unsolved I tried to uninstall and reinstall cursor and also imported the settings from vscode and nothing solved the issue
Hi @atef_hesham, could you try using the pyrefly or ty extensions? These are alternative Python language servers that are written in Rust and are more performant. They might be better able to understand the Django types.