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"
},
...
]
}
Steps to reproduce the bug:
- Use the provided
code-workspace
file configuration. - Ensure the
Root
("path": "."
) folder is included in thefolders
section. - Attempt to index the codebase using Cursor.
- Observe that the indexing process fails or hangs.
- Remove the
Root
folder from thefolders
section. - Notice that the indexing process completes successfully.
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
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.