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

Error Launching New Terminal #129

Closed
loganasherjones opened this issue May 4, 2019 · 2 comments
Closed

Error Launching New Terminal #129

loganasherjones opened this issue May 4, 2019 · 2 comments
Assignees
Labels
containers Issue in vscode-remote containers *duplicate Issue identified as a duplicate of another issue(s)

Comments

@loganasherjones
Copy link

  • VSCode Version: 1.34.0-insider 473af338e1bd9ad4d9853933da1cd9d5d9e07dc9 x64
  • Local OS Version: Ubuntu 18.04
  • Remote OS Version: Debian 9.8
  • Remote Extension/Connection Type: Docker

Steps to Reproduce:

  1. Following the steps here: https://github.com/Azure-Samples/azure-python-labs/tree/master/2a-vscode-flask-dev-container
  2. Step 3 causes the error in the image below.
    Screenshot from 2019-05-04 13-43-00

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

@kieferrm kieferrm added the containers Issue in vscode-remote containers label May 5, 2019
@proelbtn
Copy link

proelbtn commented May 6, 2019

I caught the same error on my environments, and I found this error occurs because of the settings of terminal in Visual Studio Code.

Visual Studio Code tries to execute the shell which is saved in the same path where your login shell is saved. Given that your login shell is saved in /usr/bin/zsh, Visual Studio Code tries to execute the shell which is saved in /usr/bin/zsh in Docker container. because any shell doesn't exist in this path, you caught an error.

In order to fix this problem, you can add settings for terminal into Docker container.

.devcontainer/settings.vscode.json

{
  "terminal.integrated.shell.linux": "/bin/bash"
}

refs: https://code.visualstudio.com/docs/remote/containers#_container-specific-settings

@Tyriar
Copy link
Member

Tyriar commented May 10, 2019

Duplicate #38

@Tyriar Tyriar closed this as completed May 10, 2019
@Tyriar Tyriar added the *duplicate Issue identified as a duplicate of another issue(s) label May 10, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
containers Issue in vscode-remote containers *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants