# Always failed when trying to split a WSL terminal in Windows

**URL:** <https://forum.cursor.com/t/always-failed-when-trying-to-split-a-wsl-terminal-in-windows/17305>\
**Category:** Bug Reports\
**Created:** [September 18, 2024, 6:18am UTC](https://forum.cursor.com/t/always-failed-when-trying-to-split-a-wsl-terminal-in-windows/17305 "2024-09-18T06:18:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamusis](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kamusis/32/5231_2.png) [@kamusis](https://forum.cursor.com/u/kamusis)\
**Post date:** [September 18, 2024, 6:18am UTC](https://forum.cursor.com/t/always-failed-when-trying-to-split-a-wsl-terminal-in-windows/17305/1 "2024-09-18T06:18:40Z")

</div>

I’m trying to split a WSL terminal (e.g., WSL Ubuntu) in the cursor, However, I encounter the error: “The terminal process failed to launch: Starting directory (cwd) ‘/mnt/c/Users/xxx/Documents’ does not exist.” The directory definitely exists in WSL. I don’t experience any issues when splitting a PowerShell terminal.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [September 18, 2024, 8:58am UTC](https://forum.cursor.com/t/always-failed-when-trying-to-split-a-wsl-terminal-in-windows/17305/2 "2024-09-18T08:58:35Z")

</div>

Hey @kamusis

Please send more information as described here: [Cursor - Build Software Faster](https://docs.cursor.com/troubleshooting/troubleshooting-guide#troubleshooting-guide)

---

<div class="post-metadata">

**Author:** ![kamusis](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kamusis/32/5231_2.png) [@kamusis](https://forum.cursor.com/u/kamusis)\
**Post date:** [September 19, 2024, 3:11am UTC](https://forum.cursor.com/t/always-failed-when-trying-to-split-a-wsl-terminal-in-windows/17305/3 "2024-09-19T03:11:04Z")

</div>

I can only put one embedded media item in the post.

**01)** Screenshot of issue (redact any sensitive information)  
 ![Snipaste_2024-09-19_11-48-47](https://us1.discourse-cdn.com/cursor1/original/2X/4/49e82ae65ee089e4007f8632ecda8c0f9fc7c4be.png)

**02)** Steps to reproduce  
Launch New terminal of Ubuntu(WSL), then “Split terminal”, always got error

**03)** System Information from:

```auto
Version: 0.40.4
VSCode Version: 1.91.1
Commit: 63dae81aea2c3fc079420fe72578a8eef26ba870
Date: 2024-09-05T02:52:05.660Z
Electron: 29.4.0
ElectronBuildId: undefined
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22631

```

**04)** Are you using a VPN or Zscaler?  
NO

**05)** Developer tools console errors

```auto
Writing file 
m
workbench.desktop.main.js:21475 Writing file 
m
workbench.desktop.main.js:21166 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo	@	workbench.desktop.main.js:21166
workbench.desktop.main.js:21475 Writing file 
m
workbench.desktop.main.js:21475 Writing file 
m
2
workbench.desktop.main.js:21968 The terminal process failed to launch: Starting directory (cwd) "/mnt/c/Users/kamus/OneDrive/Documents" does not exist.
console.error	@	workbench.desktop.main.js:21968

```

**06)** Logs

from main.log

```auto
2024-09-19 10:22:12.142 [info] update#setState disabled
2024-09-19 10:22:12.143 [info] update#ctor - updates are disabled as there is no update URL
2024-09-19 10:22:12.252 [error] [storage state.vscdb] error checking size of src.vs.platform.reactivestorage.browser.reactiveStorageServiceImpl.persistentStorage.workspaceUser: Error: Unexpected number of rows - 0

```

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [September 19, 2024, 4:56am UTC](https://forum.cursor.com/t/always-failed-when-trying-to-split-a-wsl-terminal-in-windows/17305/4 "2024-09-19T04:56:56Z")

</div>

Hey, try this:

Open `settings.json` through the menu: `File > Preferences > Settings`, then click on the {} icon to switch to the JSON view.

Manually set the correct working directory: `"terminal.integrated.cwd": "/mnt/c/Users/xxx/"`.

If this doesn’t help, try updating WSL.

---

<div class="post-metadata">

**Author:** ![kamusis](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kamusis/32/5231_2.png) [@kamusis](https://forum.cursor.com/u/kamusis)\
**Post date:** [September 19, 2024, 7:50am UTC](https://forum.cursor.com/t/always-failed-when-trying-to-split-a-wsl-terminal-in-windows/17305/5 "2024-09-19T07:50:18Z")

</div>

When setting “terminal.integrated.cwd” to “/mnt/c/Users/xxx/”, both “New terminal” and “Split terminal” operations result in an error: “The terminal process failed to launch: Starting directory (cwd) “/mnt/c/Users/xxx/OneDrive/Documents” does not exist.”

Currently, the setting is “C:/Users/xxx/OneDrive/Documents/”, which corresponds to the actual directory name in the Windows filesystem. With this configuration, “New terminal” works correctly, but “Split terminal” still produces an error. (leaving the setting to default blank value produces the same error)

The WSL2 version is already up-to-date at 2.3.21.0. It’s unlikely that this error is related to the WSL version, considering that the “New terminal” command can successfully open a WSL terminal without any issues. The problem seems to be specific to the “Split terminal” functionality when used with WSL.

It’s also important to note that this error only occurs when splitting a WSL terminal. Splitting a PowerShell terminal works without any issues.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [September 19, 2024, 8:38am UTC](https://forum.cursor.com/t/always-failed-when-trying-to-split-a-wsl-terminal-in-windows/17305/6 "2024-09-19T08:38:33Z")

</div>

I think the issue is with the split terminal. This might be fixed in the next version, so please wait for the updates. It works fine without the split terminal, right?

---

<div class="post-metadata">

**Author:** ![kamusis](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kamusis/32/5231_2.png) [@kamusis](https://forum.cursor.com/u/kamusis)\
**Post date:** [September 19, 2024, 10:25am UTC](https://forum.cursor.com/t/always-failed-when-trying-to-split-a-wsl-terminal-in-windows/17305/7 "2024-09-19T10:25:28Z")

</div>

yes, works fine without split WSL terminal.

1. new any type of terminal → no problem
2. new powershell terminal or CMD terminal, then split → no problem
3. select existing pwsh/cmd terminal, then split a WSL terminal → no problem
4. select existing WSL terminal, split any type of terminal → GOT ERROR

it means, Selecting a non-WSL terminal allows splitting into any type of terminal without issues. However, whenever a WSL terminal is chosen as the base to attempt splitting a new terminal (regardless of the type), an error is always encountered.

 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/b/b4bc76969f9f12e4cf8279a1e0b84807524dd03f.png)
