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

VSCode-Devcontainer not working #555

Closed
qdlmcfresh opened this issue Sep 28, 2024 · 2 comments · Fixed by #561
Closed

VSCode-Devcontainer not working #555

qdlmcfresh opened this issue Sep 28, 2024 · 2 comments · Fixed by #561

Comments

@qdlmcfresh
Copy link

qdlmcfresh commented Sep 28, 2024

After adding a devcontainer.json to a project and running Rebuild and reopen in container i get the following error:

2024-09-28 12:31:28.925 [error] {"message":"Command in host failed: id -un","code":127,"stdout":"","stderr":"/nix/store/qqz0gj9iaidabp7g34r2fb9mds6ahk8i-bash-interactive-5.2p32/bin/sh: line 1: id: command not found\n"} remote-containers.rebuildAndReopenInContainer {"value":"ms-vscode-remote.remote-containers","_lower":"ms-vscode-remote.remote-containers"}

the id command works fine in my terminal though.

❯ /nix/store/qqz0gj9iaidabp7g34r2fb9mds6ahk8i-bash-interactive-5.2p32/bin/sh -c "id -un"
qdl

Anybody got this working?

@nzbr
Copy link
Member

nzbr commented Oct 4, 2024

Are you running VSCode inside of WSL or on the host?

@qdlmcfresh
Copy link
Author

qdlmcfresh commented Oct 4, 2024

On the host, connected to WSL.
I followed Option 1: https://nix-community.github.io/NixOS-WSL/how-to/vscode.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants