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

terminal.integrated.cwd failed to function on remote workspace: Starting directory (cwd) does not exist. #198914

Open
svher opened this issue Nov 23, 2023 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug remote Remote system operations issues terminal-process Problems launching processes, managing ptys, exiting, process leaks, etc.
Milestone

Comments

@svher
Copy link

svher commented Nov 23, 2023

Does this issue occur when all extensions are disabled?: Yes (except necessary plugin like SSH)

  • VS Code Version: 1.84.2
  • OS Version: macOS 14.1.1 (23B81)

Steps to Reproduce:

  1. Open a remote workspace using the Remote - SSH plugin.
  2. Set terminal.integrated.cwd to any existing folder, such as /root.
  3. When clicking the terminal '+' button, an error occurs: The terminal process failed to launch: Starting directory (cwd) does not exist. However, it works fine when using the drop-down menu to select a terminal profile.

Debug Trace:

  • without cwd set
2023-11-23 14:00:23.850 [trace] [8c6ca65] terminalInstance#ctor (instanceId: 15) [{"executable":"/usr/bin/zsh","cwd":{"$mid":1,"fsPath":"/root","external":"vscode-remote://ssh-remote%2Bworkspace/root","path":"/root","scheme":"vscode-remote","authority":"ssh-remote+workspace"}}]
  • with cwd set
2023-11-23 13:34:09.473 [trace] [8c6ca65] terminalInstance#ctor (instanceId: 7) [{"executable":"/usr/bin/zsh","cwd":{"$mid":1,"external":"vscode-remote:/root","path":"/root","scheme":"vscode-remote"}}]

It seems ssh-remote%2Bworkspace is missing from scheme.

20231123152421_rec_

@VSCodeTriageBot VSCodeTriageBot added the stale Issues that have not been triaged in an appropriate amount of time label Nov 30, 2023
@joyceerhl joyceerhl assigned Tyriar and unassigned bhavyaus and joyceerhl Nov 30, 2023
@VSCodeTriageBot VSCodeTriageBot removed triage-needed stale Issues that have not been triaged in an appropriate amount of time labels Nov 30, 2023
@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug remote Remote system operations issues terminal-process Problems launching processes, managing ptys, exiting, process leaks, etc. labels Dec 15, 2023
@Tyriar Tyriar added this to the Backlog milestone Dec 15, 2023
@yiliang114
Copy link
Contributor

This problem also occurs if the folder is a custom scheme in the workspace, but it occurs occasionally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug remote Remote system operations issues terminal-process Problems launching processes, managing ptys, exiting, process leaks, etc.
Projects
None yet
Development

No branches or pull requests

6 participants