Hey, sorry for the delay getting back to you from support. This really isn’t the experience we want to provide.
About Dev Containers: this is a known issue with the extension, specifically the error Failed to read .gitconfig: The "path" argument must be of type string. Received undefined. The team is aware, but there’s no ETA for a fix yet.
There’s a workaround that helps some users: make sure .gitconfig exists on the remote host (not inside the container) and that $HOME is set correctly:
echo $HOME
ls -la ~/.gitconfig
# If the file doesn’t exist:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
To be honest, this doesn’t help everyone since the root cause is in the extension itself. More details and discussion here:
- Failed to install Cursor server: The "path" argument must be of type string. Received undefined
- Dev Containers: can not attach to remote container
A couple questions so I can better understand your setup:
- Are you using Dev Containers over SSH remote, or locally?
- What Cursor version and OS are you on?
Let me know if the workaround doesn’t help.