# Indexing Issue with Root Folder in Code-Workspace File

**URL:** <https://forum.cursor.com/t/indexing-issue-with-root-folder-in-code-workspace-file/69126>\
**Category:** Bug Reports\
**Created:** [March 24, 2025, 1:32pm UTC](https://forum.cursor.com/t/indexing-issue-with-root-folder-in-code-workspace-file/69126 "2025-03-24T13:32:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fberrez](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/fberrez/32/40069_2.png) [@fberrez](https://forum.cursor.com/u/fberrez)\
**Post date:** [March 24, 2025, 1:32pm UTC](https://forum.cursor.com/t/indexing-issue-with-root-folder-in-code-workspace-file/69126/1 "2025-03-24T13:32:13Z")

</div>

🐞 **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](https://code.visualstudio.com/docs/editor/workspaces/workspaces):

```json
{
  "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:**

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.

💻 **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.

---

<div class="post-metadata">

**Author:** ![takubii](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/takubii/32/22482_2.png) [@takubii](https://forum.cursor.com/u/takubii)\
**Post date:** [April 11, 2025, 1:48am UTC](https://forum.cursor.com/t/indexing-issue-with-root-folder-in-code-workspace-file/69126/3 "2025-04-11T01:48:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fberrez](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/fberrez/32/40069_2.png) [@fberrez](https://forum.cursor.com/u/fberrez)\
**Post date:** [April 16, 2025, 11:43am UTC](https://forum.cursor.com/t/indexing-issue-with-root-folder-in-code-workspace-file/69126/4 "2025-04-16T11:43:01Z")

</div>

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%

 ![cursor](https://us1.discourse-cdn.com/cursor1/original/3X/5/4/54233ad2a8ff1d972990e95c8754e61fd684107f.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [May 16, 2025, 11:43am UTC](https://forum.cursor.com/t/indexing-issue-with-root-folder-in-code-workspace-file/69126/5 "2025-05-16T11:43:22Z")

</div>

Closed on May 16, 2025, 11:43am UTC

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