Python lsp broken after update to Cursor 1.0

Just updated to the new 1.0 release. Now I get the error: “Editor support is inactive since language server is set to None.” and my python lsp does not work. I’ve tried manually setting “python.languageServer”: “Pylance” in my settings, but it doesn’t help. Running MacOS 15.4.1.

Hi @jscheel, to use Pylance, that extension will need to be installed separately. Could you try searching for it in the marketplace? Attaching a screenshot. Thanks!

bumping this, the LSP is regularly timing out (not OOM) with both pylance & jedi.

Yep, this is happening with pylance installed. It does not happen with based-pyright though. I should say that the log I quoted earlier may be a red-herring, as it happens when based-pyright is running too. So it may just be timing out, like @ngage said.

Hi! If it is timing out, I’d recommend configuring exclude (or specific include) directories – that will reduce the # of files the LSP has to analyze.

If you’re using Cursor Pyright (which is based on basedpyright), the setting is cursorpyright.analysis.exclude; if you’re on Pylance, the setting is python.analysis.exclude.

I’m not sure about timing out. For me specifically, it completely ceased to work where it was previously working in the exact same directory just before the upgrade to 1.0.

I already aggressively exclude files & folders; currently analysis is on ~800-900. With both cursorpyright & Pylance, Cursor 1.0 is completely unusable. I have inlay hints & semantic coloring enabled, fwiw. I’ve downgraded to 0.53 for the time being.

I believe this may be an issue with pydantic / pydantic-ai, which have known issues with LSPs (for example, mypy analysis is disabled in pydantic), perhaps there’s something Cursor is doing which is causing very slow analysis?

@jscheel can you confirm if you’re using pydantic-* packages in said codebase?

Yep, pydantic is definitely there. It works its way into everything :slight_smile: