Cursor cannot install latest Pylance extension

Cursor cannot install latest Pylance extension.

The latest version in vscode is 2025.2.1. But Cursor can only install 2024.8.1.

Since version 2024.8.1, this extension has introduced a lot of bug fixes.

One of the fixed bugs is incorrectly identified unreachable code

unrelated, but i’d recommend checking out ruff instead of pylance

hope team looks into this bug

Python extensions including Pylance in Cursor are locked for updates, and many bugs and security issues have been reported. I’ve also looked into various solutions, but it seems difficult to resolve unless the Cursor team provides a solution.

2 Likes

I thought ruff was just a formatter. I just checked the Ruff docs and found it comes with a language server and supports python.

Thanks for the tip!

1 Like

since i’m running into issues with pylance (takes 80s+ on that 2024.8.1 version that we get from cursor), i’ve been trying to set up ruff as the LSP. does it do proper syntax highlighting for you?

    "ruff.nativeServer": true,
    "ruff.trace.server": "verbose",
    "ruff.configuration": "${workspaceFolder}/pyproject.toml",

these are the settings i passed to it. also, what did you set your:

    "python.languageServer": "None",

to?