Indexing fails for multi-root workspaces when using 'name' in configuration

I’m running Cursor 0.50.3 on MacOS 15.5 and trying to compute an index for a multi-root workspace with the following configuration:

{
  "folders": [
    {
      "path": ".",
      "name": "services/service-name"
    },
    {
      "path": "../../packages/package-name",
      "name": "packages/package-name"
    }
  ],
  "settings": {}
}

However, I’m encountering the following error:

Error: Failed to build Merkle tree: missing parent branch for path at 'services/service-name' (incremental=true)

From what I understand, the issue is that I’m using the name property to rename folders in the workspace. If I remove the name property from the workspace configuration, indexing works as expected.

The name property is helpful in distinguishing some folders from others, making it very convenient. Is there a way to use name in workspaces without breaking indexing?

Thanks!

2 Likes

Also experiencing this

I tried to invoid ‘/’ in name, like using space instead. And it works.