Where does the bug appear (feature/product)?
Somewhere else…
Describe the Bug
When starting to connect to wsl using wsl plugin, I get following error.
It started with an update, without changing any settings or plugins.
Its announcing “Setting up WSL Distro: Ubuntu-24.4 and then hangs in there a bit and throws and error. Seems the problem is in installing cursor-server. When doeing clean install on my coworkers computer, it works, but even if I uninstall cursor and remove left over folders, the problem persists when reinstalling.
2025-09-05 08:41:37.028 [error] Failed to patch code.sh launcher: Error: ENOENT: no such file or directory, open ‘c:\Users\diana\AppData\Local\Programs\cursor\resources\app\bin\code’
2025-09-05 08:41:55.939 [info] Resolving wsl remote authority ‘wsl+Ubuntu-24.04’ (attempt #1)
2025-09-05 08:41:55.939 [info] Installing cursor-server with options: {“id”:“c8e5e63794d3d661c5fa91f9”,“commit”:“de327274300c6f38ec9f4240d11e82c3b0660b20”,“line”:“production”,“realCommit”:“de327274300c6f38ec9f4240d11e82c3b0660b29”,“extensionIds”:,“serverApplicationName”:“cursor-server”,“serverDataFolderName”:”.cursor-server",“forceReinstall”:true,“killRunningServers”:false}
2025-09-05 08:41:55.940 [error] Failed to patch code.sh launcher: Error: ENOENT: no such file or directory, open ‘c:\Users\diana\AppData\Local\Programs\cursor\resources\app\bin\code’
2025-09-05 08:41:59.019 [info] [wsl exec: installServerScript][stderr]: your 131072x1 screen size is bogus. expect trouble
2025-09-05 08:42:49.274 [info] [wsl exec: installServerScript][stderr]: 2025-09-05 08:42:49 URL:https://downloads.cursor.com/production/de327274300c6f38ec9f4240d11e82c3b0660b29/linux/x64/cursor-reh-linux-x64.tar.gz [65639063/65639063] → “/tmp/tmp.nKpJu24Chw” [1]
2025-09-05 08:42:51.128 [info] [wsl exec: installServerScript][stderr]: your 131072x1 screen size is bogus. expect trouble
2025-09-05 08:42:54.654 [error] Failed to connect to Cursor server from Windows, attempt 3 of 3 fetch failed
2025-09-05 08:42:54.654 [error] Error installing Cursor server Failed to connect to Cursor server from Windows. Please try rebooting WSL by running “wsl -d Ubuntu-24.04 --shutdown” and then reconnect.
2025-09-05 08:43:21.274 [error] Failed to patch code.sh launcher: Error: ENOENT: no such file or directory, open ‘c:\Users\diana\AppData\Local\Programs\cursor\resources\app\bin\code’
2025-09-05 08:43:27.275 [info] Resolving wsl remote authority ‘wsl+Ubuntu-22.04’ (attempt #1)
2025-09-05 08:43:27.275 [info] Installing cursor-server with options: {“id”:“65189f09ee33a1ffd09a3ff3”,“commit”:“de327274300c6f38ec9f4240d11e82c3b0660b20”,“line”:“production”,“realCommit”:“de327274300c6f38ec9f4240d11e82c3b0660b29”,“extensionIds”:,“serverApplicationName”:“cursor-server”,“serverDataFolderName”:“.cursor-server”,“forceReinstall”:false,“killRunningServers”:false}
2025-09-05 08:43:27.275 [error] Failed to patch code.sh launcher: Error: ENOENT: no such file or directory, open ‘c:\Users\diana\AppData\Local\Programs\cursor\resources\app\bin\code’
2025-09-05 08:43:31.974 [info] [wsl exec: installServerScript][stderr]: your 131072x1 screen size is bogus. expect trouble
2025-09-05 08:43:35.483 [error] Failed to connect to Cursor server from Windows, attempt 3 of 3 fetch failed
2025-09-05 08:43:35.484 [error] Error installing Cursor server Failed to connect to Cursor server from Windows. Please try rebooting WSL by running “wsl -d Ubuntu-22.04 --shutdown” and then reconnect.
2025-09-05 08:50:08.918 [info] Resolving wsl remote authority ‘wsl+Ubuntu-24.04’ (attempt #1)
2025-09-05 08:50:08.918 [info] Installing cursor-server with options: {“id”:“9954340d36f63fd4d3c1b772”,“commit”:“de327274300c6f38ec9f4240d11e82c3b0660b20”,“line”:“production”,“realCommit”:“de327274300c6f38ec9f4240d11e82c3b0660b29”,“extensionIds”:,“serverApplicationName”:“cursor-server”,“serverDataFolderName”:“.cursor-server”,“forceReinstall”:true,“killRunningServers”:false}
2025-09-05 08:50:08.919 [error] Failed to patch code.sh launcher: Error: ENOENT: no such file or directory, open ‘c:\Users\diana\AppData\Local\Programs\cursor\resources\app\bin\code’
2025-09-05 08:50:09.187 [info] [wsl exec: installServerScript][stderr]: your 131072x1 screen size is bogus. expect trouble
2025-09-05 08:51:00.431 [info] [wsl exec: installServerScript][stderr]: 2025-09-05 08:51:00 URL:https://downloads.cursor.com/production/de327274300c6f38ec9f4240d11e82c3b0660b29/linux/x64/cursor-reh-linux-x64.tar.gz [65639063/65639063] → “/tmp/tmp.HJcujeurhB” [1]
2025-09-05 08:51:02.404 [info] [wsl exec: installServerScript][stderr]: your 131072x1 screen size is bogus. expect trouble
2025-09-05 08:51:05.905 [error] Failed to connect to Cursor server from Windows, attempt 3 of 3 fetch failed
2025-09-05 08:51:05.906 [error] Error installing Cursor server Failed to connect to Cursor server from Windows. Please try rebooting WSL by running “wsl -d Ubuntu-24.04 --shutdown” and then reconnect.
Steps to Reproduce
Add WSL plugin. connect to a linux distro on wsl, using wsl plugin.
Expected Behavior
It should be able to connect to the wsl.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.5.9 (user setup)
VSCode Version: 1.99.3
Commit: de327274300c6f38ec9f4240d11e82c3b0660b20
Date: 2025-08-30T21:02:27.236Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.22631
Does this stop you from using Cursor
Yes - Cursor is unusable