Dev Container ignoring project name

Whenever I try to reopen in the containers, Cursor forces the project name to docker.
I have checked that VS Code respects my project name, I have tried setting it in multiple ways, so only option left is that Cursor is the one forcing it.

[2025-01-16T12:34:06.246Z] Start: Run: docker-compose --project-name docker -f /Users/…/docker-compose.yml …

Version: 0.44.11
VSCode Version: 1.93.1
Commit: fe574d0820377383143b2ea26aa6ae28b3425220
Date: 2025-01-03T07:59:06.361Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.1.0

Hey, thanks for the report.

I’ve added this to our feedback tracker, so hopefully, we can get this fixed in a future update!

To complement here. I have my setup running ok in VS Code, but cursor seems to have other problems besides the project name.

Cursor seems to be ignoring also my entire .devcontainer/docker-compose.override.yml (I say that because I override the launch command of the container on it, but it’s not overriding like VS Code is.)

version: '3.8'
services:
  backend:
    command: "tail -f /dev/null"  # Just keeps container running without executing init.sh
    ports:
      - "5678:5678"  # Debug port for debugpy 

And also my simple launch.json config to Run a FastAPI app does not work.
It looks like it’s gonna start, but then it exits (I see the play/debug bar for like 3 seconds and it disappears). I have not found any logs related to this so can’t pinpoint the reason.

{
            "name": "FastAPI: Run",
            "type": "python",
            "request": "launch",
            "module": "uvicorn",
            "args": [
                "path.to.fastapi:create_app",
                "--reload",
                "--host",
                "0.0.0.0",
                "--port",
                "8000",
                "--log-level",
                "trace",
                "--factory"
            ],
            "jinja": true,
            "justMyCode": false,
            "console": "integratedTerminal",
            "redirectOutput": true,
            "env": {
                "PYTHONPATH": "${workspaceFolder}/backend"
            }
        },

Hey, give this a try again once our new update is fully released, as there are some changes that may improve workflows involving DevContainers.

Once its out, let us know how you get on!

Hello!

After the update I can confirm that now the contianer builds properly, I am able to run inside the correct project name, but the rest of my issues remain.

Trying to Run my python project does nothing. I only see this in the log (clicked 3 times on the play button, so 3 logs)

2025-01-28 09:16:14.439 [info] DAP Server launched with command: /root/.cache/pypoetry/virtualenvs/igloo-9TtSrW0h-py3.12/bin/python /root/.cursor-server/extensions/ms-python.python-2024.5.1-universal/pythonFiles/lib/python/debugpy/adapter
2025-01-28 09:16:19.915 [info] DAP Server launched with command: /root/.cache/pypoetry/virtualenvs/igloo-9TtSrW0h-py3.12/bin/python /root/.cursor-server/extensions/ms-python.python-2024.5.1-universal/pythonFiles/lib/python/debugpy/adapter
2025-01-28 09:16:35.196 [info] DAP Server launched with command: /root/.cache/pypoetry/virtualenvs/igloo-9TtSrW0h-py3.12/bin/python /root/.cursor-server/extensions/ms-python.python-2024.5.1-universal/pythonFiles/lib/python/debugpy/adapter

And also, I cannot debug a test, but I can run one normally. By the looks of it this is an old issue already reported in this thread and i am having the exact same thing. Debugging a test will make it run forever and i cannot stop it unless i quit and reopen Cursor.

Everything works well in VS Code, just tested it again to make sure.