Critical Issues with Intellisense and Pyright in VS Code

Hey team,

Intellisense is practically unusable right now—basic imports aren’t being recognized, which is really slowing down my work. I tried using the Cursor Pyright extension, and honestly, it’s a mess. It’s rated 1 star by 250k people for a reason. Versions cursor-0.42.3 and cursor-0.41.3 both failed, and this isn’t just my experience; tons of people are saying the same thing online.

Even the default Python/Pylance extension by Microsoft doesn’t work properly. I’m not sure why Cursor is still being pushed when it’s this buggy.

I need a fix for this ASAP. Please let me know what can be done.

1 Like

Hey, sorry you’re dealing with this!

With this install of the default ms-python package, what you describe should be working fine, as Pylance (Pyright under the hood) is bundled in that extension and doesn’t need much configuring.

What platform are you on, and have you confirmed this issue on a clean(ish) install? There’s a lot of extensions that can cause buggy behaviour, so it’s possible one may be interfering.

Unfortunately, it still does not work. I have tried both listed versions with various combinations of clean installations.

I deleted all configurations under .config/Cursor, and I deleted all extensions except for the Python extension, but none of these attempts were successful.

I also tried installing the Python extension and cursor-pyright individually in both orders, but neither approach worked. My colleagues are experiencing the same issue as well.

Below are my system’s info

|Description:|Ubuntu 22.04.4 LTS|
|Release:|22.04|
|Codename:|jammy|

I run this particular cursor appimage
cursor-0.42.3-build-241016kxu9umuir-x86_64.AppImage

Could you please provide me with a working combination of the Cursor version and the Python extension version for Ubuntu? I do not require any other extensions.

The latest version of Cursor and the Python package (ms-python) should be comparable with no issues.

Can you confirm, when you open a Python file in Cursor, your Python installation is detected at chosen at the bottom left? I believe the Python intellisense features require a Python runtime to work.

If a Python is installed in a non-default place, or you’re attempting to use a Virtual Environment and Cursor hasn’t been launched with it active, that may also cause issues.

Yes the environment is detected. The imports are colored correctly. They are detected in the environment. I can also CTRL + Click to follow the packages in the environment.

Quick fix does not work at all even for the standard library.

The environment is detected, installed packages are detected but quick fix does not work.

Quick fix works fine on vscode, not on cursor.

Does the quick fix work in your case on Ubuntu 22.04 with any combinations of extensions and their versions?

I don’t run Ubuntu myself, so that would be my next guess regarding a bug or some incompatibility. My Windows install shows the quick fix immediately.

Can you check the output panel (CTRL+Alt+O), switching to the “Python Language Server” option and pasting the logs here? My guess is we’ll find an error in there.

2024-10-18 15:47:21.582 [info] [Info  - 15:47:21 AM] Pyright language server 1.1.325 starting
2024-10-18 15:47:21.600 [info] [Info  - 15:47:21 AM] Server root directory: /MYHOMEDIR/.cursor/extensions/anysphere.pyright-1.1.327-universal/dist
2024-10-18 15:47:21.601 [info] [Info  - 15:47:21 AM] Starting service instance "project1"
2024-10-18 15:47:21.634 [info] [Info  - 15:47:21 AM] Setting pythonPath for service "project1": "/MYHOMEDIR/virtualenvs/py311-polars/bin/python"
2024-10-18 15:47:21.675 [info] [Info  - 15:47:21 AM] Assuming Python version 3.11
2024-10-18 15:47:21.731 [info] [Info  - 15:47:21 AM] Found 215 source files

Is that the whole output? That seems happy enough.

Can you also attach the output of Python Locator extensions, as there’s likely an error somewhere that’s stopping it from analysing your code.

Yes that is all. There is literally zero error in all Python/Python Language Server / Python Test Log. I tried after deleting all other extensions except for Python and Cursor Pyright.

I think the underlying issue - not sure if it’s due to pylance integration or the version of the interpreter or the OS - is not fixed yet.

Reproducing it should be easy as creating an Ubuntu 22.04 virtual machine and installing the latest version of Cursor with the Python extension.

Note: People seem to have the same issue on MacOS’ as well.