Hi there, I just switched from VSCode to Cursor and runs into some problems regarding Python interpreter path and multi-root workspace.
I have a monorepo setup like this:
/reporoot
|-- .vscode/vscode.code-workspace
|-- /python_project_a
   |-- .venv/bin/python
|-- /python_project_b
   |-- .vevn/bin/python
And the vscode.code-workspace is configured like this (simplified for readability)
{
  folders: [
    { path: ../python_project_a },
    { path: ../python_project_b }
  ]
  settings: {
    python.defaultInterpreterPath: ${workspaceFolder}/.venv/bin/python
  } 
}
However, Cursor didn’t seem to pick it up at all.
There seems to be two separate problems.
- the settings section in .code-workspacefile doesn’t seem to be recognized at all. I have other settings than the interpreter path one and it is not reflected when I open the workspace settings from the UI.
- I moved this settings section from .vscode/vscode.code-workspaceto just.vscode/settings.json. It is then picked up by cursor. When I try to select an interpreter, this default path shows as an option. BUT, when I select this option, it says that it is invalid. It seems that the “${workspaceFolder}” variable is NOT respected and Cursor tries to load from “/reporoot/.venv”.
Does anyone know what is going on? Is this unexpected (a bug)? Or is it how it is as of today (needs a feature request)? Or did I misconfigured something (needs documentation or pointers to existing docs)?