-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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.splitCwd="inherited" is not working on Windows/WSL2 + Multiroot Workspace #127811
Comments
The bottom line: Only while using Workspaces, the first or default terminal is properly run in WSL2. However, any subsequent new terminals are being recognized as a Windows environment, not Linux. Somehow the combination of Workspace+WSL is messing up the terminal environment. |
I just discovered there is a command called "Create new Integrated terminal (In Active Workspace)"; where as the default "New Terminal" calls "Create new Integrated terminal". This is another possible workaround. However, you have to make sure the active file is where you want the new terminal to be created. You lose the ability to select which folder to create the new terminal in, unfortunately. |
Ah this is happening because we're getting a vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.ts Lines 69 to 72 in b494756
|
I'm also getting this issue when using inherited for workspaces and remote ssh from a windows to a linux host. If I reload the window I am able to split the terminal for terminals that were created before the reload. Version: 1.58.2 (system setup) |
Same here.
|
As a workaround for this issue in version 1.58, I was using this setting: But now in version 1.59.0, the issue happens with any |
Copy URI authority from base when splitting terminals, fixes #127811
Awesome! Just got the fix in insiders! Thank you! |
Verified fixed in
|
Does this issue occur when all extensions are disabled?: Yes
Version: 1.58.0-insider (user setup)
Commit: 1fc68f3
Date: 2021-07-01T09:30:57.217Z
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
Steps to Reproduce:
with multiple projects, the environment gets confused.
I get this error message: 'The termial process failed to launch: Starting directory (cwd) "\home\username\my\project"'. The first terminal works, but it's the second or subsequent terminal that creates the error.
This is using the VSCode for Windows using WSL Remote. This error has now existed for at least a week in the Insiders edition. I am surprised this has not already been brought up.
I think the error is indicating that its confusing a windows path for a linux path. Because this is using WSL-Remote, the path should be using forward slashes not backslashes for windows.
This happens when "terminal.integrated.splitCwd" is inherited or initial. The workaround is to set this to workspaceRoot, then it works. However, it's annoying not to have inherited or initial working. Also, nowhere in my settings is "cwd" assigned anywhere.
Also there is #121705, but I suspect the issue on MacOS is different.
Jae
The text was updated successfully, but these errors were encountered: