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

Split terminal error #128277

Closed
damianoazzolini opened this issue Jul 9, 2021 · 11 comments
Closed

Split terminal error #128277

damianoazzolini opened this issue Jul 9, 2021 · 11 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster

Comments

@damianoazzolini
Copy link

damianoazzolini commented Jul 9, 2021

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

  • VS Code Version:
Version: 1.58.0-insider (user setup)
Commit: 2d23c42a936db1c7b3b06f918cde29561cc47cd6
Date: 2021-07-07T12:09:55.219Z
Electron: 12.0.13
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19042
  • OS Version: Windows 10 version 20H2 build 19042.1052

I'm connected with ssh into a server with installed CentOS Linux release 7.7.1908

Steps to Reproduce:

  1. Open integrated terminal
  2. Split terminal
  3. Create new terminal (with the +) and move into this new terminal
  4. Split terminal

At step 4 I get an error ''The terminal process failed to launch: Starting directory (cwd) "\home\userrname\test" does not exist''. It seems that the second terminal tries to open a folder but with the path specified with \ instead of / (the first split operation, step 2, works well). /home/userrname/test does exists, and it is the default location of a new terminal

@vscodebot
Copy link

vscodebot bot commented Jul 9, 2021

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@damianoazzolini
Copy link
Author

#127633 states that nothing happens
#123361 states that the layout is messy

@ranshalit
Copy link

I also observe the same error after recent update

@meganrogge
Copy link
Contributor

meganrogge commented Jul 15, 2021

I can't reproduce this. Please provide a gif

@meganrogge meganrogge added the info-needed Issue requires more information from poster label Jul 15, 2021
@spasche
Copy link
Contributor

spasche commented Jul 15, 2021

Hello,

I'm also affected, here are some steps to reproduce.
I could see that it only happens when you have a workspace with multiple folders.

Pre-conditions:

  • vscode running on Windows, tested with version 1.58.2
  • linux server accessible from ssh
  1. Prepare the linux server
ssh user@ubu-dev
mkdir /tmp/folder0 /tmp/folder1
cat << EOF > /tmp/myworkspace.code-workspace
{
        "folders": [
                {
                        "path": "folder1"
                },
                {
                        "path": "folder2"
                }
        ]
}
EOF
exit
  1. From Windows, open the remote workspace
code --user-data-dir=c:\tmp\clean_profile --file-uri vscode-remote://ssh-remote+user@ubu-dev/tmp/myworkspace.code-workspace
  1. Open a terminal, select folder1
  2. Run command: Terminal: Split terminal

Video: https://1drv.ms/v/s!AloPbwYP-ZZVhYEtHc8CDxXT7yU38g?e=FoI6dc

@lithsin
Copy link

lithsin commented Jul 17, 2021

I also have the same problem for remote workspaces with multiple folders. The first terminal can be opened without any problem, but a subsequent split terminal at the same location will result in the error message shown below. I can confirm that the folder does exist (otherwise the first terminal couldn't have been opened), and remote workspaces with only one folder do not suffer from this problem.

image

@jchang10
Copy link

#127811 is the same. Bummer no solution yet.

@Tyriar
Copy link
Member

Tyriar commented Jul 21, 2021

@jchang10 thanks for the link, that one makes it pretty clear the is splitCwd problem is

/duplicate

@Tyriar Tyriar closed this as completed Jul 21, 2021
@cj-clifton
Copy link

Also facing this issue, I can start new terminals but they cannot be split

@Melirius
Copy link

Melirius commented Aug 24, 2021

More mystery to the topic: 1) if I set sh as default terminal, it can be split, and even bash terminal can be split, providing another sh terminal; 2) if I set sh as default terminal, start bash terminal, change default to bash, this already started bash terminal can be split providing another bash terminal without problem; 3) if I set bash as default terminal and start bash terminal, it cannot be split. Log does not provide any details:

[2021-08-24 12:48:31.942] [renderer1] [trace] Spawning remote agent process {"terminalId":41}
[2021-08-24 12:48:32.054] [renderer1] [debug] Terminal process ready (shellProcessId: 9421)
[2021-08-24 12:48:33.686] [renderer1] [trace] terminalInstance#ctor (instanceId: 17) {"cwd":{"$mid":1,"path":"/home/ivan","scheme":"vscode-remote"}}
[2021-08-24 12:48:34.079] [renderer1] [debug] Terminal process exit (instanceId: 17) with code undefined
[2021-08-24 12:48:34.079] [renderer1] [debug] Terminal process exit (instanceId: 17) state 2
[2021-08-24 12:48:34.082] [renderer1] [trace] terminalInstance#dispose (instanceId: 17)

@spasche
Copy link
Contributor

spasche commented Aug 24, 2021

@Melirius: this is fixed in 1.60 (currently in the Insiders Build).

@github-actions github-actions bot locked and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

10 participants