Skip to content

Cannot open local terminal when remote container is opened as a workspace #140186

@koonpeng

Description

@koonpeng
  • VSCode Version: 1.63.2
  • Local OS Version: arch
  • Remote OS Version: ubuntu 20.04
  • Remote Extension/Connection Type: Docker
  • Logs:

Steps to Reproduce:

Create a minimal workspace and devcontainer file

workspace.code-workspace

{
	"folders": [
		{
			"path": "."
		}
	],
	"settings": {}
}

.devcontainer/devcontainer.json

{
  "image": "ubuntu:20.04"
}

Select Open Workspace in container command in the command panel, then select Terminal: Create New Integrated Terminal (local).

The terminal fails to open and an error popup shows up:

The terminal process failed to launch: Starting directory (cwd) "~/ws/vscode-container-workspace-terminal-bug/workspace.code-workspace" is not a directory.

As a workaround, opening the workspace indirectly via Open Folder in container, then Open Workspace From File, results in working local terminal.

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

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberlinuxIssues with VS Code on LinuxmacosIssues with VS Code on MAC/OS XremoteRemote system operations issuesterminal-processProblems launching processes, managing ptys, exiting, process leaks, etc.verifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions