Cursor Pyright Not Working - Language Server Starts But No Response, Python Extension Still Providing Completions

Cursor Pyright Not Working - Language Server Starts But No Response, Python Extension Still Providing Completions

Problem Description

After uninstalling the original Python installation and installing Miniconda, I’m experiencing issues with Cursor Pyright. The language server process starts (I can see `basedpyright-langserver.exe` and `node` processes running), but:

1. Cursor Pyright language server finds the executable but doesn’t initialize properly

  • Output log shows: `using pyright executable: C:\Users\asus\miniconda3\envs\math_env\basedpyright-langserver.exe`

  • But no further logs appear after this line

  • The language server seems to be stuck or not connecting properly

2. Python extension still providing autocompletions instead of Cursor Pyright

  • Even though `python.languageServer` is set to `“None”`

  • All Python extension completion features are disabled

  • Jedi is disabled (`jedi.enabled: false`, `python.jediEnabled: false`)

  • But autocompletions are still coming from Python extension (likely Jedi)

3.Cannot disable Python extension

  • Cursor Pyright depends on the Python extension, so disabling it is not an option

Environment

- OS: Windows 11

- Cursor Version: Latest (as of Dec 26, 2025)

- Python: 3.10.19 (Miniconda environment `math_env`)

- Conda: 25.11.1

- Extensions:

  • Python (Anysphere) - `anysphere.cursorpyright` - Enabled

  • Python (Microsoft) - `ms-python.python` - Enabled

Current Configuration

Key settings from `.vscode/settings.json`:

```json

{

"python.defaultInterpreterPath": "C:\\\\Users\\\\asus\\\\miniconda3\\\\envs\\\\math_env\\\\python.exe",

"python.languageServer": "None",

"python.analysis.disabled": false,

"python.analysis.autoImportCompletions": false,

"python.analysis.completeFunctionParens": false,

"python.analysis.diagnosticMode": "openFilesOnly",

"python.autoComplete.enable": false,

"jedi.enabled": false,

"python.jediEnabled": false,

"cursorpyright.enabled": true,

"cursorpyright.pythonInterpreter": "C:\\\\Users\\\\asus\\\\miniconda3\\\\envs\\\\math_env\\\\python.exe",

"cursorpyright.analysis.autoImportCompletions": true,

"cursorpyright.analysis.diagnosticMode": "workspace",

"cursorpyright.analysis.typeCheckingMode": "basic",

"cursorpyright.analysis.typeCheckMode": "basic"

}

```

What I’ve Tried

1. Installed `basedpyright` and `pyright` in the conda environment

2. Copied `basedpyright-langserver.exe` to the expected location

3. Disabled all Python extension completion features

4. Disabled Jedi completely

5. Set `python.languageServer` to `“None”`

6. Verified `basedpyright-langserver.exe` exists and is accessible

7. Completely restarted Cursor multiple times

8. Waited 60+ seconds for language server initialization

Expected Behavior

- Cursor Pyright should provide all autocompletions and type hints

- Python extension should not provide any completions (only serve as a dependency)

- Output log should show initialization messages from Cursor Pyright

Actual Behavior

- Cursor Pyright language server process starts but doesn’t connect

- Python extension (likely Jedi) still provides autocompletions

- No type hints or advanced completions from Cursor Pyright

- Output log stops after showing the executable path

Additional Information

- Process list shows `_vscode_copy_basedpyright-langserver` and `node` processes running

- The executable path is correct and the file exists

- Python extension shows “Editor support inactive because language server is set to ‘None’”

- But autocompletions are still working, suggesting Jedi or another component is active

Questions

1. Is there a known issue with Cursor Pyright not initializing after finding the executable?

2. How can I ensure Cursor Pyright provides completions instead of Python extension?

3. Is there a configuration issue preventing Cursor Pyright from connecting properly?

4. Should I report this as a bug, or is there a configuration I’m missing?

Thank you for any help!

Hey, thanks for the report. The most likely cause is that basedpyright is manually installed in your conda environment.

Cursor Pyright already ships with its own basedpyright, so you don’t need to install it separately. When a local copy exists, it can conflict and the language server may fail to initialize.

Similar case: Several Issues with Cursor Pyright

Please try:

  1. Remove basedpyright and pyright from your conda env:
   pip uninstall basedpyright pyright
  1. Restart Cursor completely

Let me know if this helped.

Cursor Pyright Still Not Working After Uninstalling basedpyright

Following your advice, I have uninstalled basedpyright and pyright from my conda environment. However, the problem still persists.

Current Problem Status

What Has Been Fixed

  1. Uninstalled manually installed basedpyright and pyright from conda environment
  2. Cleaned up all residual files (including ~asedpyright and ~asedpyright-1.36.2.dist-info)
  3. Removed the copied basedpyright-langserver.exe file
  4. Verified that no basedpyright or pyright packages are installed (confirmed via pip list)

Current Issues (Still Persisting)

  1. Cursor Pyright language server starts but doesn’t fully initialize

    • Process starts (I can see node processes running with ~182 MB memory)
    • Output log shows:
      [Info] failed to find pyright executable, falling back to bundled:
      C:\Users\asus\miniconda3\envs\math_env\basedpyright-langserver.exe
      [Info] using bundled pyright
      [Info] running node with argzs: --max-old-space-size=16185
      [Info] using node executable: c:\Program Files\cursor\resources\app\resources\helpers\node.exe
      
    • Log stops here - no further initialization messages appear
    • No type hints, parameter information, or advanced completions are provided
  2. Python extension still providing autocompletions

    • Even though python.languageServer is set to "None"
    • python.analysis.disabled is set to true
    • All Python extension completion features are disabled
    • Jedi is completely disabled (jedi.enabled: false, python.jediEnabled: false)
    • But autocompletions are still working (likely from Jedi running in the background)

Complete List of What I’ve Tried

  1. Completely closed Cursor (ensured all processes terminated)
  2. Uninstalled basedpyright and pyright using pip uninstall -y basedpyright pyright
  3. Manually removed residual files (~asedpyright, ~asedpyright-1.36.2.dist-info, basedpyright directory)
  4. Removed copied basedpyright-langserver.exe file
  5. Verified cleanup (no basedpyright/pyright in pip list, no directories found)
  6. Completely restarted Cursor
  7. Removed explicit cursorpyright.pythonInterpreter setting (let it auto-detect)
  8. Set python.analysis.disabled to true (completely disable Python extension analysis)
  9. Added additional editor settings to disable word-based suggestions
  10. Set Cursor Pyright log level to Trace (then back to Information)

Current Configuration

{
    "python.defaultInterpreterPath": "C:\\Users\\asus\\miniconda3\\envs\\math_env\\python.exe",
    "python.pythonPath": "C:\\Users\\asus\\miniconda3\\envs\\math_env\\python.exe",
    "python.languageServer": "None",
    "python.analysis.disabled": true,
    "python.analysis.autoImportCompletions": false,
    "python.analysis.completeFunctionParens": false,
    "python.analysis.diagnosticMode": "openFilesOnly",
    "python.analysis.indexing": false,
    "python.analysis.typeCheckingMode": "off",
    "python.autoComplete.enable": false,
    "jedi.enabled": false,
    "python.jediEnabled": false,
    "python.completion.showAdvancedMembers": false,
    "python.linting.enabled": false,
    "python.formatting.enabled": false,
    "python.testing.enabled": false,
    "cursorpyright.enabled": true,
    "cursorpyright.analysis.autoImportCompletions": true,
    "cursorpyright.analysis.diagnosticMode": "workspace",
    "cursorpyright.analysis.typeCheckingMode": "basic",
    "cursorpyright.analysis.inlayHints.functionReturnTypes": true,
    "cursorpyright.analysis.inlayHints.variableTypes": true,
    "cursorpyright.analysis.useLibraryCodeForTypes": true
}

Process Information

  • Two node processes are running:
    • Process 1: Started at 11:54:48, ~85 MB memory
    • Process 2: Started at 16:26:24 (after restart), ~182 MB memory (likely Cursor Pyright)
  • No basedpyright-langserver.exe or pyright processes visible
  • Python extension shows: “Editor support inactive because language server is set to ‘None’”

Expected

  • Cursor Pyright should provide all autocompletions with type hints
  • Python extension should not provide any completions
  • Output log should show successful initialization messages

Actual

  • Cursor Pyright language server process starts but doesn’t connect to editor
  • Python extension (likely Jedi) still provides basic autocompletions
  • Output log stops after showing node executable path
  • No error messages, but also no functionality

Additional Notes

  • The language server seems to be stuck in an initialization phase
  • No error messages are displayed, making debugging difficult
  • The bundled pyright is being used (as expected after uninstalling basedpyright)

Thank you for any additional guidance!

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.