Open theluk opened 2 months ago
Same for WSL. Just hangs and fails eventually. Started after an update today.
[2024-08-15 08:27:26.786] Scriptless setup: false
[2024-08-15 08:27:26.786] No shell environment set or found for current distro.
[2024-08-15 08:27:26.861] WSL daemon log file:
[2024-08-15 08:27:26.864] Probing if server is already installed: if [ -d ~/.cursor-server/bin/274e2e5d572bd0b99449183635a0f94c7b9f54d0 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-08-15 08:27:26.864] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu-22.04 -e sh -c if [ -d ~/.cursor-server/bin/274e2e5d572bd0b99449183635a0f94c7b9f54d0 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-08-15 08:27:26.922] Probing result: x86_64
[2024-08-15 08:27:26.922] No server install found in WSL, needs linux-x64
[2024-08-15 08:27:26.923] Getting server from client side
[2024-08-15 08:27:26.923] Downloading VS Code Server stable - 274e2e5d572bd0b99449183635a0f94c7b9f54d0 into C:\Users\Anatolii\AppData\Local\Temp\vscode-remote-wsl\274e2e5d572bd0b99449183635a0f94c7b9f54d0\vscode-server-stable-linux-x64.tar.gz.
[2024-08-15 08:27:27.687] Download checksum: undefined```
Hm, eventually it somehow managed to install the dev server:
[2024-08-15 08:27:26.702] L10N bundle: undefined
[2024-08-15 08:27:26.712] authorityHierarchy: wsl+ubuntu-22.04
[2024-08-15 08:27:26.712] WSL extension activating for a local WSL instance
[2024-08-15 08:27:26.727] Resolving wsl+ubuntu-22.04, resolveAttempt: 1
[2024-08-15 08:27:26.728] NodeExecServer run: C:\WINDOWS\System32\wsl.exe --status
[2024-08-15 08:27:26.759] WSL feature installed: true (wsl --status)
[2024-08-15 08:27:26.759] NodeExecServer run: C:\WINDOWS\System32\wsl.exe --list --verbose
[2024-08-15 08:27:26.786] 3 distros found
[2024-08-15 08:27:26.786] Starting VS Code Server inside WSL (wsl2)
[2024-08-15 08:27:26.786] Windows build: 22631. Multi distro support: available. WSL path support: enabled
[2024-08-15 08:27:26.786] Scriptless setup: false
[2024-08-15 08:27:26.786] No shell environment set or found for current distro.
[2024-08-15 08:27:26.861] WSL daemon log file:
[2024-08-15 08:27:26.864] Probing if server is already installed: if [ -d ~/.cursor-server/bin/274e2e5d572bd0b99449183635a0f94c7b9f54d0 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-08-15 08:27:26.864] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu-22.04 -e sh -c if [ -d ~/.cursor-server/bin/274e2e5d572bd0b99449183635a0f94c7b9f54d0 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-08-15 08:27:26.922] Probing result: x86_64
[2024-08-15 08:27:26.922] No server install found in WSL, needs linux-x64
[2024-08-15 08:27:26.923] Getting server from client side
[2024-08-15 08:27:26.923] Downloading VS Code Server stable - 274e2e5d572bd0b99449183635a0f94c7b9f54d0 into C:\Users\Anatolii\AppData\Local\Temp\vscode-remote-wsl\274e2e5d572bd0b99449183635a0f94c7b9f54d0\vscode-server-stable-linux-x64.tar.gz.
[2024-08-15 08:27:27.687] Download checksum: undefined
[2024-08-15 08:30:32.750] Server available at C:\Users\Anatolii\AppData\Local\Temp\vscode-remote-wsl\274e2e5d572bd0b99449183635a0f94c7b9f54d0\vscode-server-stable-linux-x64.tar.gz
[2024-08-15 08:30:32.750] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu-22.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 274e2e5d572bd0b99449183635a0f94c7b9f54d0 stable cursor-server .cursor-server --host=127.0.0.1 --port=0 --connection-token=1565996178-3852465025-2959458894-251615696 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
[2024-08-15 08:30:33.066] Setting up server environment: Looking for /home/tsdaemon/.cursor-server/server-env-setup. Not found.
[2024-08-15 08:30:33.066] WSL version: 5.15.153.1-microsoft-standard-WSL2 Ubuntu-22.04
[2024-08-15 08:30:33.066] Updating VS Code Server to version 274e2e5d572bd0b99449183635a0f94c7b9f54d0
[2024-08-15 08:30:33.066] Removing previous installation...
[2024-08-15 08:30:33.066] Installing VS Code Server from tar available at /mnt/c/Users/Anatolii/AppData/Local/Temp/vscode-remote-wsl/274e2e5d572bd0b99449183635a0f94c7b9f54d0/vscode-server-stable-linux-x64.tar.gz
[2024-08-15 08:30:33.675] Unpacking: 0%
[2024-08-15 08:30:34.291] 1% 2% 3% 4% 5% 6% 7% 8% 9% 10% 11% 12% 13% 14% 15% 16% 17% 18% 19% 20% 21% 22% 23% 24% 25% 26% 27% 28% 29% 30% 31% 32% 33% 34% 35% 36% 37% 38% 39% 40% 41% 42% 43% 44% 45% 46% 47% 48%
[2024-08-15 08:30:34.597] 49% 50% 51% 52% 53% 54% 55% 56% 57% 58% 59% 60% 61% 62% 63% 64% 65% 66% 67% 68% 69% 70% 71% 72% 73% 74% 75% 76% 77% 78% 79% 80% 81% 82% 83% 84% 85% 86% 87% 88% 89% 90% 91% 92% 93% 94% 95% 96% 97% 98% 99%100%
[2024-08-15 08:30:34.597] Unpacked 1888 files and folders to /home/tsdaemon/.cursor-server/bin/274e2e5d572bd0b99449183635a0f94c7b9f54d0.
[2024-08-15 08:30:34.597] WSL-shell-PID: 3140
[2024-08-15 08:30:34.597] Node executable: /home/tsdaemon/.cursor-server/bin/274e2e5d572bd0b99449183635a0f94c7b9f54d0/node
[2024-08-15 08:30:34.597] Starting server: /home/tsdaemon/.cursor-server/bin/274e2e5d572bd0b99449183635a0f94c7b9f54d0/bin/cursor-server --host=127.0.0.1 --port=0 --connection-token=1565996178-3852465025-2959458894-251615696 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all
[2024-08-15 08:30:34.597] Server bound to 127.0.0.1:41043 (IPv4)
[2024-08-15 08:30:34.597] Extension host agent listening on 41043
[2024-08-15 08:30:34.597]
[2024-08-15 08:30:34.605] Started local proxy server on 62879.
[2024-08-15 08:30:34.605] WSL resolver response: 127.0.0.1:62879
[2024-08-15 08:30:34.605] To debug connection issues, open a local browser on http://127.0.0.1:62879/version
[2024-08-15 08:30:34.633] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu-22.04 -e /home/tsdaemon/.cursor-server/bin/274e2e5d572bd0b99449183635a0f94c7b9f54d0/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 41043 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2024-08-15 08:30:34.694] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu-22.04 -e /home/tsdaemon/.cursor-server/bin/274e2e5d572bd0b99449183635a0f94c7b9f54d0/node -e const net = require('net'); process.stdin.pause(); const client = net.createConnection({ host: '127.0.0.1', port: 41043 }, () => { client.pipe(process.stdout); process.stdin.pipe(client); }); client.on('close', function (hadError) { console.error(hadError ? 'Remote close with error' : 'Remote close'); process.exit(hadError ? 1 : 0); }); client.on('error', function (err) { process.stderr.write(err && (err.stack || err.message) || String(err)); });
[2024-08-15 08:30:35.196] Download in background is enabled
[2024-08-15 08:32:05.203] Update check by another window detected, skipping.```
Same bug, fixed it by https://github.com/getcursor/cursor/issues/1339#issuecomment-2014385695.
Same for WSL. Just hangs and fails eventually. Started after an update today.
[2024-08-15 08:27:26.786] Scriptless setup: false [2024-08-15 08:27:26.786] No shell environment set or found for current distro. [2024-08-15 08:27:26.861] WSL daemon log file: [2024-08-15 08:27:26.864] Probing if server is already installed: if [ -d ~/.cursor-server/bin/274e2e5d572bd0b99449183635a0f94c7b9f54d0 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m [2024-08-15 08:27:26.864] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu-22.04 -e sh -c if [ -d ~/.cursor-server/bin/274e2e5d572bd0b99449183635a0f94c7b9f54d0 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m [2024-08-15 08:27:26.922] Probing result: x86_64 [2024-08-15 08:27:26.922] No server install found in WSL, needs linux-x64 [2024-08-15 08:27:26.923] Getting server from client side [2024-08-15 08:27:26.923] Downloading VS Code Server stable - 274e2e5d572bd0b99449183635a0f94c7b9f54d0 into C:\Users\Anatolii\AppData\Local\Temp\vscode-remote-wsl\274e2e5d572bd0b99449183635a0f94c7b9f54d0\vscode-server-stable-linux-x64.tar.gz. [2024-08-15 08:27:27.687] Download checksum: undefined```
I've closed the cursor windows. I've opened an wsl terminal window, typed cursor --help
. It will download the server. I was struggling with this after each cursor update, but this steps solved to me.
I've find this solution based on this stackoverflow thread, but this is for vscode: https://stackoverflow.com/questions/71464269/vscode-remote-wsl-downloading-server-every-time
You should have the cursor command on the wsl.
Currently using Windows, but we are using dev containers
the logs
as you can see, the vscode server is not findable based on the commit