Cursor IDE Git Detection Issue + Python Interpreter Detection Issue

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

My development environment is set up by connecting to a Linux machine via SSH. Since an update about two weeks ago, Cursor IDE has frequently failed to quickly detect the Python interpreter. In addition, Git often cannot be detected at all.
Even after configuring related settings through .vscode (such as interpreter or Git path settings), the detection issue still occurs very frequently.

Steps to Reproduce

This problem happens every time I connect or I reconnect to the SSH environment.

Expected Behavior

Under normal circumstances, Cursor IDE should be able to quickly detect the .venv and .git directories within my project upon connection.

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.43 (user setup)
VSCode Version: 1.105.1
Commit: 32cfbe848b35d9eb320980195985450f244b3030
Date: 2025-12-19T06:06:44.644Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100

For AI issues: which model did you use?

No AI model problem

Additional Information

I am not sure is this would effect but, i set my settings.json like below
it usually works :)))

{
“html.autoClosingTags”: false,
“python.defaultInterpreterPath”: “/home/dssignal/python-project/AI_chat_bot/.venv/bin/python”,
“git.autoRepositoryDetection”: false,
“git.repositoryScanMaxDepth”: 1,

"files.watcherExclude": {
    "**/.venv/**": true,
    "**/node_modules/**": true,
    "**/.cache/**": true,
    "**/.git/objects/**": true

}
}

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

Try a few things:

  1. Check the Output panel (View > Output):

    • Select “Remote-SSH” from the dropdown
    • Select “Git” from the dropdown
    • Copy any errors here
  2. Try disabling extensions to test:

    • Ctrl+Shift+P > “Developer: Reload With Extensions Disabled”
    • Check if Git is detected in this mode
  3. In settings.json, try changing:

"git.autoRepositoryDetection": "openEditors"

instead of false.

  1. Explicitly set the Git path on the remote machine:
"git.path": "/usr/bin/git"

Also, can you share your repo size and the number of files?

Git.txt (4.2 KB)

螢幕擷取畫面 2025-12-26 111522

Remote - SSH.txt (185.9 KB)

Hi Dean,

Thank you for your message and for your help.

Sorry for the late reply — I’ve been busy with development over the past few days and didn’t have time to prepare the logs you mentioned.

Based on my recent experience, even after configuring .vscode according to your suggestions, the IDE still cannot properly detect the .git directory of my project, and the interpreter performance remains very slow.

I did try asking AI for possible causes, and from what I can tell so far, one possible culprit might be that my project’s Git objects are quite large. I only have about one year of experience as a software engineer, so I’m not entirely sure whether this would be considered unusually large or not.

I’d really appreciate it if you could take a look at the terminal logs and the additional information I’ve provided.

By the way, Merry Christmas :christmas_tree:

1 Like

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