cursor
cursor copied to clipboard
When can have a dev container plugin like vscode
When can enter a container and edit code like in VS Code
This sounds very similar to #489. You can install the VSCode Containers plugin manually, as I describe in that thread, but I can’t guarantee it would work as expected, due to the modifications of Cursor.
Give it a try, as I describe in #489 , and let us know how you get on.
I tried to do that, but an error occurred
[27 ms] Dev Containers 0.289.0 in VS Code 1.76.2 (f9c29d73ab9f4d88cff4de986247553b5d60e71e).
[26 ms] Start: Resolving Remote
[29 ms] Setting up container: /swoole-swoole-1
[40 ms] Start: Run: docker inspect --type container /swoole-swoole-1
[228 ms] Start: Check Docker is running
[228 ms] Start: Run: docker version --format {{.Server.APIVersion}}
[415 ms] Server API version: 1.41
[417 ms] Start: Run: /Applications/Cursor.app/Contents/Frameworks/Cursor Helper.app/Contents/MacOS/Cursor Helper /Users/banhongyu/.cursor/extensions/ms-vscode-remote.remote-containers-0.289.0/dist/spec-node/devContainersSpecCLI.js set-up --container-id 8d18e818050b218ef7ffbff037f2c9bd92c6dc3fb93d65cbd84f58282d03ad4c --user-data-folder /Users/banhongyu/Library/Application Support/Cursor/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-c821701a-69c5-4554-8aef-be260c9e0f1b1682565846995 --log-level debug --log-format json --default-user-env-probe loginInteractiveShell --skip-post-create
[816 ms] @devcontainers/cli 0.35.0. Node.js v16.14.2. darwin 21.6.0 x64.
[816 ms] Start: Run: docker buildx version
[1152 ms] github.com/docker/buildx v0.10.0 876462897612d36679153c3414f7689626251501
[1152 ms]
[1153 ms] Start: Run: docker inspect --type container 8d18e818050b218ef7ffbff037f2c9bd92c6dc3fb93d65cbd84f58282d03ad4c
[1249 ms] Start: Inspecting container
[1249 ms] Start: Run: docker inspect --type container 8d18e818050b218ef7ffbff037f2c9bd92c6dc3fb93d65cbd84f58282d03ad4c
[1338 ms] Start: Run in container: /bin/sh
[1340 ms] Start: Run in container: uname -m
[1500 ms] x86_64
[1500 ms]
[1500 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[1504 ms] PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
[1504 ms]
[1504 ms] Start: Run in container: cat /etc/passwd
[1510 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker'
[1512 ms]
[1512 ms]
[1512 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker'
[1515 ms]
[1515 ms]
[1522 ms] Start: Run: /Applications/Cursor.app/Contents/Frameworks/Cursor Helper.app/Contents/MacOS/Cursor Helper /Users/banhongyu/.cursor/extensions/ms-vscode-remote.remote-containers-0.289.0/dist/spec-node/devContainersSpecCLI.js read-configuration --container-id 8d18e818050b218ef7ffbff037f2c9bd92c6dc3fb93d65cbd84f58282d03ad4c --log-level debug --log-format json --include-merged-configuration --mount-workspace-git-root true
[1885 ms] @devcontainers/cli 0.35.0. Node.js v16.14.2. darwin 21.6.0 x64.
[1885 ms] Start: Run: docker inspect --type container 8d18e818050b218ef7ffbff037f2c9bd92c6dc3fb93d65cbd84f58282d03ad4c
[1990 ms] Start: Inspecting container
[1991 ms] Start: Run: docker inspect --type container 8d18e818050b218ef7ffbff037f2c9bd92c6dc3fb93d65cbd84f58282d03ad4c
[2084 ms] Start: Run in container: /bin/sh
[2085 ms] Start: Run in container: uname -m
[2243 ms] x86_64
[2243 ms]
[2244 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[2247 ms] PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
[2247 ms]
[2248 ms] Start: Run in container: cat /etc/passwd
[2251 ms] Start: Run in container: test -d /root/.cursor-server
[2254 ms]
[2254 ms]
[2255 ms] Start: Run in container: test ! -f '/root/.cursor-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.cursor-server/data/Machine' && { > '/root/.cursor-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[2257 ms]
[2258 ms]
[2258 ms] Exit code 1
[2258 ms] Start: Run in container: cat /root/.cursor-server/data/Machine/settings.json
[2262 ms]
[2262 ms] cat: /root/.cursor-server/data/Machine/settings.json: No such file or directory
[2262 ms] Exit code 1
[2263 ms] Start: Run in container: test -d /root/.cursor-server/bin/f9c29d73ab9f4d88cff4de986247553b5d60e71e-insider
[2264 ms]
[2265 ms]
[2265 ms] Exit code 1
[2265 ms] Installing VS Code Server for commit f9c29d73ab9f4d88cff4de986247553b5d60e71e
[2266 ms] Start: Downloading VS Code Server
[2266 ms] f9c29d73ab9f4d88cff4de986247553b5d60e71e linux-x64 insider
[2911 ms] Failed to download VS Code Server (https://update.code.visualstudio.com/commit:f9c29d73ab9f4d88cff4de986247553b5d60e71e/server-linux-x64/insider): HTTP 404 - Not Found
[2912 ms] Retrying to download VS Code Server.
[3061 ms] Error: Server returned 404
at v (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:644:63337)
at D.download (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:645:1548)
I want this feature so bad! I think the issue is VScode server is not compatible with Cursor.
I know that the de-microsofted version of vscode vscodium doesn't work with devcontainers because it is a non-opensource extension. Cursor might have the same issue.
Devcontainers should work now! If you run into issues, please let us know.