Indexing Issue with Root Folder in Code-Workspace File

:lady_beetle: Clear description of the bug: Cursor is unable to index the codebase when the Root folder is included in the folders section of the code-workspace file. Removing the Root option resolves the issue, suggesting a possible infinite loop or similar problem during the indexing process.

Here is my code-workspace file:

{
  "folders": [
    {
      "path": ".",
      "name": "Root"
    },
    {
      "path": ".github",
      "name": "CICD"
    },
    {
      "path": "terraform",
      "name": "Terraform"
    },
    {
      "path": "apps/abc",
      "name": "App ABC"
    },
    {
      "path": "apps/def",
      "name": "App DEF"
    },
    ...
  ]
}


:counterclockwise_arrows_button: Steps to reproduce the bug:

  1. Use the provided code-workspace file configuration.
  2. Ensure the Root ("path": ".") folder is included in the folders section.
  3. Attempt to index the codebase using Cursor.
  4. Observe that the indexing process fails or hangs.
  5. Remove the Root folder from the folders section.
  6. Notice that the indexing process completes successfully.

:laptop: Operating system and Cursor version:

  • Version: 0.47.8
  • VSCode Version: 1.96.2
  • Commit: 82ef0f61c01d079d1b7e5ab04d88499d5af500e0
  • Date: 2025-03-18T06:55:51.040Z (6 days ago)
  • Electron: 32.2.6
  • Chromium: 128.0.6613.186
  • Node.js: 20.18.1
  • V8: 12.8.374.38-electron.0
  • OS: Darwin arm64 24.3.0

:prohibited: Impact on usage: The issue prevents the use of Cursor for indexing the codebase when the Root folder is included, effectively stopping the user from utilizing Cursorโ€™s features until the Root folder is removed.

1 Like

Iโ€™m also experiencing the same issue.

OS & Cursor version:
Version: 0.48.8
Commit: 1.96.2
Date: 7801โ– โ– โ– 6824585b7f2721900066bc87c4a09b740
Electron: 2025-04-07T19:54:58.315Z
ElectronBuildId: 34.3.4
Chromium: undefined
Node.js: 132.0.6834.210
V8: 20.18.3
OS: 13.2.152.41-electron.0

Well, now it works on my side.
I just:

  1. Delete all paths included in See all included files
  2. Click on Delete Index
  3. Resync

It should reach 100%

1 Like