Can not Connect to WSL

Can not Connect to WSL.

Cursor Version

Version: 0.18.5
VSCode Version: 1.84.2
Commit: 23e4a35b958128d799597f309a7f42dd50d007c0
Date: 2023-12-06T02:52:23.651Z
Electron: 25.9.2
ElectronBuildId: undefined
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045

Terminal log

[2023-12-08 12:43:10.067] Extension version: 0.81.8
[2023-12-08 12:43:10.068] L10N bundle: undefined
[2023-12-08 12:43:10.085] authorityHierarchy: wsl+Ubuntu
[2023-12-08 12:43:10.085] WSL extension activating for a local WSL instance
[2023-12-08 12:43:10.104] Resolving wsl+Ubuntu, resolveAttempt: 1
[2023-12-08 12:43:10.108] WSL feature installed: true (dll path)
[2023-12-08 12:43:10.109] NodeExecServer run: C:\WINDOWS\System32\wsl.exe --list --verbose
[2023-12-08 12:43:10.257] 3 distros found
[2023-12-08 12:43:10.258] Starting VS Code Server inside WSL (wsl2)
[2023-12-08 12:43:10.258] Windows build: 19045. Multi distro support: available. WSL path support: enabled
[2023-12-08 12:43:10.258] Scriptless setup: false
[2023-12-08 12:43:10.259] No shell environment set or found for current distro.
[2023-12-08 12:43:10.465] WSL daemon log file: 
[2023-12-08 12:43:10.468] Probing if server is already installed: if [ -d ~/.cursor-server/bin/23e4a35b958128d799597f309a7f42dd50d007c0 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2023-12-08 12:43:10.469] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu -e sh -c if [ -d ~/.cursor-server/bin/23e4a35b958128d799597f309a7f42dd50d007c0 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2023-12-08 12:43:10.706] Probing result: x86_64
[2023-12-08 12:43:10.706] No server install found in WSL, needs linux-x64
[2023-12-08 12:43:10.706] Getting server from client side
[2023-12-08 12:43:10.710] Server available at 
[2023-12-08 12:43:10.711] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 23e4a35b958128d799597f309a7f42dd50d007c0 stable cursor-server .cursor-server --host=127.0.0.1 --port=0 --connection-token=3941213226-503806366-2499966263-1306223737 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
[2023-12-08 12:43:11.021] Setting up server environment: Looking for /home/hytdsh/.cursor-server/server-env-setup. Not found.
[2023-12-08 12:43:11.021] WSL version: 5.15.133.1-microsoft-standard-WSL2 Ubuntu
[2023-12-08 12:43:11.021] Installing VS Code Server for x64 (23e4a35b958128d799597f309a7f42dd50d007c0)
[2023-12-08 12:43:11.021] Downloading:     
[2023-12-08 12:43:11.258] 100%
[2023-12-08 12:43:11.258] Failed
[2023-12-08 12:43:11.260] --2023-12-08 21:43:11--  https://update.code.visualstudio.com/commit:23e4a35b958128d799597f309a7f42dd50d007c0/server-linux-x64/stable
[2023-12-08 12:43:11.260] Resolving update.code.visualstudio.com (update.code.visualstudio.com)... 13.107.246.46, 13.107.213.46, 2620:1ec:46::46, ...
[2023-12-08 12:43:11.260] Connecting to update.code.visualstudio.com (update.code.visualstudio.com)|13.107.246.46|:443... connected.
[2023-12-08 12:43:11.260] HTTP request sent, awaiting response... 404 Not Found
[2023-12-08 12:43:11.260] 2023-12-08 21:43:11 ERROR 404: Not Found.
[2023-12-08 12:43:11.260] 
[2023-12-08 12:43:11.260] ERROR: Failed to download https://update.code.visualstudio.com/commit:23e4a35b958128d799597f309a7f42dd50d007c0/server-linux-x64/stable to /home/hytdsh/.cursor-server/bin/23e4a35b958128d799597f309a7f42dd50d007c0-1702039390.tar.gz
[2023-12-08 12:43:11.260] For help with startup problems, go to https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips

same issue.

Update 0.22.0 has some WSL fixes. Do they fix your issues?

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.