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

code or code-insiders is not installed #4992

Closed
davetapley opened this issue Apr 30, 2021 · 5 comments
Closed

code or code-insiders is not installed #4992

davetapley opened this issue Apr 30, 2021 · 5 comments
Assignees
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster

Comments

@davetapley
Copy link

Version: 1.55.2 (user setup)
Commit: 3c4e3df9e89829dce27b7b5c24508306b151f30d
Date: 2021-04-13T09:35:57.887Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19042

Steps to Reproduce:

  1. Add these files to an empty directory.
    ( generated with Remote-Containers: Add Development Container Configuration Files...)

  2. Open directory in VS Code

  3. Choose 'Reopen in Container'

  4. Type code in to bash in integrated terminal

  5. Observe: code or code-insiders is not installed

Does this issue occur when all extensions are disabled?: Yes †

† I couldn't do it with --disable-extensions because I need the ms-vscode-remote.remote-containers extension to repro and microsoft/vscode#81950 prevents any extensions from working. However I was able to use technique from microsoft/vscode#81950 (comment) to enable solely ms-vscode-remote.remote-containers and confirm issue still exists.


As noted here code is in the container:

 ~/.vscode-server/bin/[HEX]/bin/code
@davetapley
Copy link
Author

I just realized this should probably have gone in https://github.com/Microsoft/vscode-remote-release, can someone move there? 🙏🏻

@lramos15 lramos15 transferred this issue from microsoft/vscode Apr 30, 2021
@github-actions github-actions bot added the containers Issue in vscode-remote containers label Apr 30, 2021
@chrmarti
Copy link
Contributor

chrmarti commented May 3, 2021

What is the container terminal's PATH value?

@chrmarti chrmarti self-assigned this May 3, 2021
@chrmarti chrmarti added the info-needed Issue requires more information from poster label May 3, 2021
@davetapley
Copy link
Author

davetapley commented May 3, 2021

@chrmarti thanks for picking this up 🙏🏻

vscode ➜ /workspaces/devcontainer-missing-code $ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/vscode/.local/bin

Sure enough, /home/vscode/.local is missing:

vscode ➜ /workspaces/devcontainer-missing-code $ ls -la /home/vscode
total 60
drwxr-xr-x  1 vscode vscode 4096 May  3 17:01 .
drwxr-xr-x  1 root   root   4096 Apr 30 02:17 ..
-rw-------  1 vscode vscode  198 Apr 30 19:03 .bash_history
-rw-r--r--  1 vscode vscode  220 Feb 25  2020 .bash_logout
-rw-r--r--  1 vscode vscode 4870 Apr 30 02:17 .bashrc
drwxr-xr-x  3 vscode vscode 4096 Apr 30 18:39 .config
-rw-r--r--  1 vscode vscode  634 May  3 17:01 .gitconfig
drwxr-xr-x  2 vscode vscode 4096 Apr 30 02:17 .oh-my-bash
drwxr-xr-x 12 vscode vscode 4096 Apr 30 02:17 .oh-my-zsh
-rw-r--r--  1 vscode vscode  807 Feb 25  2020 .profile
drwxr-xr-x  2 vscode vscode 4096 Apr 30 18:37 .ssh
drwxr-xr-x  5 vscode vscode 4096 Apr 30 18:37 .vscode-server
-rw-r--r--  1 vscode vscode 3713 Apr 30 02:17 .zshrc

@chrmarti
Copy link
Contributor

chrmarti commented May 4, 2021

Make sure you have Inherit Env enabled in your settings:
image

The ~/.local/bin PATH-entry appears to be part of the container's /etc/bash.bashrc and doesn't matter in this case.

@davetapley
Copy link
Author

@chrmarti yep, that was it! Thanks 💯

@github-actions github-actions bot locked and limited conversation to collaborators Jun 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants