# Cursor cannot install latest Pylance extension

**URL:** <https://forum.cursor.com/t/cursor-cannot-install-latest-pylance-extension/50654>\
**Category:** Bug Reports\
**Created:** [February 13, 2025, 11:33am UTC](https://forum.cursor.com/t/cursor-cannot-install-latest-pylance-extension/50654 "2025-02-13T11:33:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![arshcaria](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@arshcaria](https://forum.cursor.com/u/arshcaria)\
**Post date:** [February 13, 2025, 11:33am UTC](https://forum.cursor.com/t/cursor-cannot-install-latest-pylance-extension/50654/1 "2025-02-13T11:33:27Z")

</div>

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`

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/d/4/d4f0ec46a616292240bca2efda97f10e060bd21d.png)

---

<div class="post-metadata">

**Author:** ![sanjeed5](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/sanjeed5/32/9610_2.png) [@sanjeed5](https://forum.cursor.com/u/sanjeed5)\
**Post date:** [February 13, 2025, 12:20pm UTC](https://forum.cursor.com/t/cursor-cannot-install-latest-pylance-extension/50654/2 "2025-02-13T12:20:17Z")

</div>

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

hope team looks into this bug

---

<div class="post-metadata">

**Author:** ![jiun](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jiun/32/25940_2.png) [@jiun](https://forum.cursor.com/u/jiun)\
**Post date:** [February 13, 2025, 1:05pm UTC](https://forum.cursor.com/t/cursor-cannot-install-latest-pylance-extension/50654/3 "2025-02-13T13:05:45Z")

</div>

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.

> [@\`FixtureFunction\` spam when there's unknown types](https://forum.cursor.com/t/fixturefunction-spam-when-theres-unknown-types/26504/12):
>
> Hey, to be clear, what I mean by “fixed version” is that we lock the version of PyLance, so it cannot be updated to a higher version that will not work in VSCode, there is no “fix” that we have applied to Pylance within Cursor.

> [@Issues With Python Testing](https://forum.cursor.com/t/issues-with-python-testing/48580):
>
> I’m observing inconsistencies between python testing in VS Code and Cursor. I’m specifically running Django unittests. One issue is that Cursor is unable to discover all of my tests, but they show in VS Code. See example below showing a missing test\_admin.py file. Example: Cursor on left, VS Code on right Another issue I’ve seen is inconsistent test results. Tests will fail occasionally in Cursor but will always work when running in VS Code or directly from the terminal. …

> [@Outdated VSCode Extensions May Contain Known CVEs](https://forum.cursor.com/t/outdated-vscode-extensions-may-contain-known-cves/50424):
>
> Hey all, Loving cursor. I wanted to encourage the development team to please keep up-to-date with the upstream VSCode repo, as otherwise there can be major security risks in user extensions which are not automatically updated due to version incompatibility. For example: there is a known high-severity CVE for the main Python extension: [NVD - CVE-2024-49050](https://nvd.nist.gov/vuln/detail/CVE-2024-49050). This was patched by [v2024.20.0](https://github.com/microsoft/vscode-python/releases/tag/v2024.20.0). However, the current version of Cursor is stuck on an old version of the Python extension - version v2024.…

---

<div class="post-metadata">

**Author:** ![arshcaria](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@arshcaria](https://forum.cursor.com/u/arshcaria)\
**Post date:** [February 14, 2025, 6:00am UTC](https://forum.cursor.com/t/cursor-cannot-install-latest-pylance-extension/50654/4 "2025-02-14T06:00:51Z")

</div>

> [@sanjeed5](#):
>
> ruff

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!

---

<div class="post-metadata">

**Author:** ![radu](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@radu](https://forum.cursor.com/u/radu)\
**Post date:** [February 28, 2025, 11:03am UTC](https://forum.cursor.com/t/cursor-cannot-install-latest-pylance-extension/50654/5 "2025-02-28T11:03:51Z")

</div>

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?

```auto
    "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:

```auto
    "python.languageServer": "None",

```

to?
