Skip to content

devcontainer open/reopen in container seems to start as a blank/new setup #9378

Description

When I run my project in insider it seems like when I try to run it in a devcontainer it warns me that I already have a configuration and then tries to setup a new configuration file. This only happens when I run vscode Insider with the stable release of Dev Containers. When I test this in vscode (Version: 1.85.1 Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2) it works fine.

  • VSCode Version: Version: 1.86.0-insider
    Commit: c973ec767338f7846710cc2ee46e38b4504a044c
    Date: 2024-01-10T05:37:20.920Z (1 hr ago)

  • Local OS Version: macOS 14.1.2 (23B92)

  • Remote OS Version:

  • Remote Extension/Connection Type: Containers

  • Logs: [86296 ms] Start: Run: /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) --ms-enable-electron-run-as-node /Users/voigtan/.vscode-insiders/extensions/ms-vscode-remote.remote-containers-0.327.0/dist/spec-node/devContainersSpecCLI.js templates apply --workspace-folder /var/folders/cp/trp2yj2s26j5dr3kr7fz4jgm0000gn/T/tmp-output-dir-1704872310027 --template-id ghcr.io/devcontainers/templates/javascript-node:latest --template-args {"imageVariant":"20-bullseye"} --features [] --tmp-dir /var/folders/cp/trp2yj2s26j5dr3kr7fz4jgm0000gn/T/tmp-dir-1704872310027
    [86390 ms] /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin): bad option: --ms-enable-electron-run-as-node
    [86393 ms] Exit code 9

Steps to Reproduce:

  1. Open a project that has a devcontainer setup
  2. Try to run either build or Reopen in devcontainer
  3. Popup displaying Dev Container configuration '.devcontainer/devcontainer.json' file already exists.
  4. "Add Dev Container Configuration Files"-setup starts

I also cant start a new project and setup a new devcontainer setup:

  1. Create a folder
  2. Start a devcontainer setup
  3. I picked node.js and javascript
  4. No other options
  5. It fails with the log message above.

The outcome I was suppose to get is just step 1 and 2 and then the devcontainer should be up and running.

Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes/No

Metadata

Metadata

Labels

containersIssue in vscode-remote containers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions