vscode-remote-release
vscode-remote-release copied to clipboard
devcontainer cli do not open vscode window
- VSCode Version: 1.71.1
- Local OS Version: 21H2
- Remote OS Version: Ubuntu 22.04 (WSL2) - Docker installed in ubuntu (not using docker desktop)
- Remote Extension/Connection Type: Containers
Steps to Reproduce:
- Start dockerd in ubuntu
- cd to project folder
- devcontainer open .

VS code windows in never opened
If I try devcontainer --help the execution do not finalise (it never returns to the prompt) I have to Ctrl+C to get the prompt back
If I do a code . in the folder then a vscode notification appears to reopen the folder in the container. This works fine as expected.
I have uninstall vscode and extensions and do a clean install but i still get the same problem.
process.argv0 in the extension host process changed to /proc/self/exe on Linux. Not sure when this changed and don't see it discussed elsewhere. @deepak1556 Do you know?
@chrmarti in Insiders we use the new process API from Electron to launch extension host which is backed by setting "extensions.experimental.useUtilityProcess" and this API ensures that the process is forked by chromium instead of VSCode forking it with Node.js child_process.fork API. Chromium on linux uses /proc/self/exe to be execcd in the forked process and thats what ends up in the process.argv0. You should instead rely on process.execPath to get the resolved path https://nodejs.org/dist/latest-v16.x/docs/api/process.html#processexecpath, also this will yield consistent results for both extensions.experimental.useUtilityProcess enabled and disabled.
Did the cli API change? Or am I looking at the wrong CLI? I installed with npm, and there is no "open" command. So I installed through the extension and that seems to be totally broken.
@chrmarti Can you please provides steps to verify this issue
Reopening issue and setting it to the next milestone.
Even with @vscode/dev-container-cli, I don't get the open command anymore.
Instead, I get the following output:
devcontainer open .
Unknown arguments: open, .
devcontainer <command>
Commands:
devcontainer build [path] Build a dev container image
Options:
-h, --help Show help [boolean]
--disable-telemetry Disable telemetry [boolean] [default: false]
The fix was to remove open from the help text when installed from npm as @vscode/dev-container-cli. Closing again for verification and will open a new issue for what @roblourens reports. Thanks!
To verify: Install @vscode/dev-container-cli using npm and verify that the help text does not show open as an available command.