Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute in wsl, multiple devcontainer failed. #10542

Open
nmwael opened this issue Dec 9, 2024 · 1 comment
Open

Execute in wsl, multiple devcontainer failed. #10542

nmwael opened this issue Dec 9, 2024 · 1 comment
Assignees
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality
Milestone

Comments

@nmwael
Copy link

nmwael commented Dec 9, 2024

  • VSCode Version: 1.95.3
  • Local OS Version: win10 - 22h2 / 19045.51.31
  • Remote OS Version: Fedora/40
  • Remote Extension/Connection Type: WSL
  • Logs:
    [9409 ms] Start: Run in container: # Test for /root/.ssh/known_hosts and ssh
    [9414 ms]
    [9415 ms]
    [9415 ms] Start: Run in container: # Copy C:\Users\redacted.ssh\known_hosts to /root/.ssh/known_hosts
    [9422 ms]
    [9422 ms]
    [9467 ms] Start: Run in container: cat /workspaces/redacted/.devcontainer/devcontainer.json 2>/dev/null
    [9473 ms] Start: Run in container: cat /workspaces/redacted/.devcontainer.json 2>/dev/null
    [9478 ms] Repository redacted/redacted has no dev container files.

Steps to Reproduce:
set
"dev.containers.executeInWSL": true
have multiple devcontainer configurations (https://containers.dev/implementors/spec/#devcontainerjson)
/workspaces/redacted/.devcontainer/a/devcontainer.json
/workspaces/redacted/.devcontainer/b/devcontainer.json

extension blocks with popup to add devcontainer claiming no projects exists.

Problem does not occur when executing outside WSL.

@vs-code-engineering vs-code-engineering bot added the containers Issue in vscode-remote containers label Dec 9, 2024
@chrmarti
Copy link
Contributor

chrmarti commented Dec 9, 2024

The current workaround is to use a default config (.devcontainer/devcontainer.json, maybe adding it the first time) and then use F1 > Dev Containers: Switch Container to change to the desired configuration.

Related: #10435

@chrmarti chrmarti added the feature-request Request for new features or functionality label Dec 9, 2024
@chrmarti chrmarti added this to the Backlog milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants