getcursor / cursor

The AI Code Editor
https://cursor.com
23.97k stars 1.51k forks source link

wsl plugin don't work #1349

Open chendonghp opened 6 months ago

chendonghp commented 6 months ago

os: win11, wsl:ubuntu 22.04 image

Log

[2024-03-23 00:14:16.338] Extension version: 0.81.8 [2024-03-23 00:14:16.338] L10N bundle: undefined [2024-03-23 00:14:16.353] authorityHierarchy: wsl+Ubuntu-22.04 [2024-03-23 00:14:16.353] WSL extension activating for a local WSL instance [2024-03-23 00:14:16.380] Resolving wsl+Ubuntu-22.04, resolveAttempt: 1 [2024-03-23 00:14:16.381] NodeExecServer run: C:\WINDOWS\System32\wsl.exe --status [2024-03-23 00:14:16.514] WSL feature installed: true (wsl --status) [2024-03-23 00:14:16.514] NodeExecServer run: C:\WINDOWS\System32\wsl.exe --list --verbose [2024-03-23 00:14:16.607] 4 distros found [2024-03-23 00:14:16.608] Starting VS Code Server inside WSL (wsl2) [2024-03-23 00:14:16.608] Windows build: 26085. Multi distro support: available. WSL path support: enabled [2024-03-23 00:14:16.608] Scriptless setup: false [2024-03-23 00:14:16.609] No shell environment set or found for current distro. [2024-03-23 00:14:16.885] WSL daemon log file: [2024-03-23 00:14:16.887] Probing if server is already installed: if [ -d ~/.cursor-server/bin/2e7179e3e051701daa9a88391f21ae69d01be4e0 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m [2024-03-23 00:14:16.887] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu-22.04 -e sh -c if [ -d ~/.cursor-server/bin/2e7179e3e051701daa9a88391f21ae69d01be4e0 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m [2024-03-23 00:14:20.069] Probing result: x86_64 [2024-03-23 00:14:20.069] No server install found in WSL, needs linux-x64 [2024-03-23 00:14:20.069] Getting server from client side [2024-03-23 00:14:20.071] Found C:\Users\xx\AppData\Local\Temp\vscode-remote-wsl\2e7179e3e051701daa9a88391f21ae69d01be4e0\vscode-server-stable-linux-x64.tar.gz. Skipping download. [2024-03-23 00:14:20.073] Server available at C:\Users\xx\AppData\Local\Temp\vscode-remote-wsl\2e7179e3e051701daa9a88391f21ae69d01be4e0\vscode-server-stable-linux-x64.tar.gz [2024-03-23 00:14:20.074] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu-22.04 sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 2e7179e3e051701daa9a88391f21ae69d01be4e0 stable cursor-server .cursor-server --host=127.0.0.1 --port=0 --connection-token=65477690-2973171238-2447552850-3330577969 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all' [2024-03-23 00:14:20.708] Setting up server environment: Looking for /root/.cursor-server/server-env-setup. Found, executing... [2024-03-23 00:14:20.708] [2024-03-23 00:14:20.708] [2024-03-23 00:14:20.709] + [ ! -d /root/.cursor-server/bin/2e7179e3e051701daa9a88391f21ae69d01be4e0 ] [2024-03-23 00:14:20.709] + [ ! -d /root/.cursor-server/bin_commit ] [2024-03-23 00:14:20.709] + set -e [2024-03-23 00:14:20.709] + fix_download [2024-03-23 00:14:20.709] + local app_name=cursor [2024-03-23 00:14:20.709] + wslpath -u c:\Users\ddd\AppData\Local\Programs\Cursor\resources\app [2024-03-23 00:14:20.709] + local install_dir=/mnt/c/Users/ddd/AppData/Local/Programs/Cursor/resources/app [2024-03-23 00:14:20.709] + local product_json=/mnt/c/Users/ddd/AppData/Local/Programs/Cursor/resources/app/product.json [2024-03-23 00:14:20.709] + awk -F: /commit"/ {gsub(/[" ,]/, "", $2); print $2} /mnt/c/Users/ddd/AppData/Local/Programs/Cursor/resources/app/product.json [2024-03-23 00:14:20.709] awk: fatal: cannot open file /mnt/c/Users/ddd/AppData/Local/Programs/Cursor/resources/app/product.json' for reading: No such file or directory [2024-03-23 00:14:20.709] + local cursorCommitString= [2024-03-23 00:14:20.709] + awk -F: /release/ {gsub(/[" ,]/, "", $2); print $2} /mnt/c/Users/ddd/AppData/Local/Programs/Cursor/resources/app/product.json [2024-03-23 00:14:20.709] awk: fatal: cannot open file/mnt/c/Users/ddd/AppData/Local/Programs/Cursor/resources/app/product.json' for reading: No such file or directory [2024-03-23 00:14:20.709] + local vscodium_release= [2024-03-23 00:14:20.709] + awk -F: /version/ {gsub(/[" ,]/, "", $2); print $2} /mnt/c/Users/ddd/AppData/Local/Programs/Cursor/resources/app/product.json [2024-03-23 00:14:20.709] + tail -n 1 [2024-03-23 00:14:20.709] awk: fatal: cannot open file /mnt/c/Users/ddd/AppData/Local/Programs/Cursor/resources/app/product.json' for reading: No such file or directory [2024-03-23 00:14:20.709] + local version= [2024-03-23 00:14:20.709] + awk -F: /vscodeVersion/ {gsub(/[" ,]/, "", $2); print $2} /mnt/c/Users/ddd/AppData/Local/Programs/Cursor/resources/app/product.json [2024-03-23 00:14:20.709] awk: fatal: cannot open file/mnt/c/Users/ddd/AppData/Local/Programs/Cursor/resources/app/product.json' for reading: No such file or directory [2024-03-23 00:14:20.709] + local vscodium_version= [2024-03-23 00:14:20.709] + echo [2024-03-23 00:14:20.709] + echo [2024-03-23 00:14:20.709] + uname -m [2024-03-23 00:14:20.709] + local arch=x86_64 [2024-03-23 00:14:20.709] + local platform=x64 [2024-03-23 00:14:20.709] + local url=https://cursor.blob.core.windows.net/remote-releases/-/vscode-reh-linux-x64.tar.gz [2024-03-23 00:14:20.709] + local fallback_url=https://github.com/VSCodium/vscodium/releases/download/./vscodium-reh-linux-x64-..tar.gz [2024-03-23 00:14:20.709] + curl -fLOJ https://cursor.blob.core.windows.net/remote-releases/-/vscode-reh-linux-x64.tar.gz -w %{filename_effective} [2024-03-23 00:14:20.709] % Total % Received % Xferd Average Speed Time Time Time Current [2024-03-23 00:14:20.709] Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 215 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 [2024-03-23 00:14:21.316] curl: (22) The requested URL returned error: 404 [2024-03-23 00:14:21.316] + export VSCODE_SERVER_TAR=vscode-reh-linux-x64.tar.gz [2024-03-23 00:14:21.316] + [ 0 -ne 0 ] [2024-03-23 00:14:21.316] + export REMOVE_SERVER_TAR_FILE=true [2024-03-23 00:14:21.316] + set +e [2024-03-23 00:14:21.624] WSL version: 5.15.133.1-microsoft-standard-WSL2 Ubuntu-22.04 [2024-03-23 00:14:21.624] Updating VS Code Server to version 2e7179e3e051701daa9a88391f21ae69d01be4e0 [2024-03-23 00:14:21.624] Removing previous installation... [2024-03-23 00:14:21.624] Installing VS Code Server for x64 (2e7179e3e051701daa9a88391f21ae69d01be4e0) [2024-03-23 00:14:21.624] Downloading:
[2024-03-23 00:14:21.627] + unset fix_download [2024-03-23 00:14:21.627] + VSCODE_REMOTE_BIN=/root/.cursor-server/bin [2024-03-23 00:14:21.627] + uname -r [2024-03-23 00:14:21.627] + WSL_VERSION=5.15.133.1-microsoft-standard-WSL2 [2024-03-23 00:14:21.627] + echo WSL version: 5.15.133.1-microsoft-standard-WSL2 Ubuntu-22.04 [2024-03-23 00:14:21.627] + dirname /mnt/c/Users/xx/.cursor/extensions/ms-vscode-remote.remote-wsl-0.81.8/scripts/wslServer.sh [2024-03-23 00:14:21.627] + /mnt/c/Users/xx/.cursor/extensions/ms-vscode-remote.remote-wsl-0.81.8/scripts/wslDownload.sh 2e7179e3e051701daa9a88391f21ae69d01be4e0 stable /root/.cursor-server/bin [2024-03-23 00:14:21.627] + [ ! -d /root/.cursor-server/bin/2e7179e3e051701daa9a88391f21ae69d01be4e0 ] [2024-03-23 00:14:21.627] + set -e [2024-03-23 00:14:21.627] + [ -f /etc/alpine-release ] [2024-03-23 00:14:21.627] + [ -d /root/.cursor-server/bin ] [2024-03-23 00:14:21.627] + echo Updating VS Code Server to version 2e7179e3e051701daa9a88391f21ae69d01be4e0 [2024-03-23 00:14:21.627] + echo Removing previous installation... [2024-03-23 00:14:21.627] + rm -rf /root/.cursor-server/bin/???????????????????????????????????????? [2024-03-23 00:14:21.627] + rm -rf /root/.cursor-server/bin/????????????????????????????????????????-?????????? [2024-03-23 00:14:21.627] + rm -rf /root/.cursor-server/bin/2e7179e3e051701daa9a88391f21ae69d01be4e0-1711150837.tar.gz [2024-03-23 00:14:21.627] + mkdir -p /root/.cursor-server/bin [2024-03-23 00:14:21.627] + [ vscode-reh-linux-x64.tar.gz ] [2024-03-23 00:14:21.627] + [ -f vscode-reh-linux-x64.tar.gz ] [2024-03-23 00:14:21.627] + [ ! ] [2024-03-23 00:14:21.627] + date +%s [2024-03-23 00:14:21.627] + SERVER_TAR_FILE=/root/.cursor-server/bin/2e7179e3e051701daa9a88391f21ae69d01be4e0-1711152861.tar.gz [2024-03-23 00:14:21.627] + download /root/.cursor-server/bin/2e7179e3e051701daa9a88391f21ae69d01be4e0-1711152861.tar.gz [2024-03-23 00:14:21.627] + command -v wget [2024-03-23 00:14:21.627] + [ ! /usr/bin/wget ] [2024-03-23 00:14:21.627] + local_name=/root/.cursor-server/bin/2e7179e3e051701daa9a88391f21ae69d01be4e0-1711152861.tar.gz [2024-03-23 00:14:21.627] + [ -f /etc/alpine-release ] [2024-03-23 00:14:21.627] + uname -m [2024-03-23 00:14:21.627] + PLATFORM=x64 [2024-03-23 00:14:21.627] + echo Installing VS Code Server for x64 (2e7179e3e051701daa9a88391f21ae69d01be4e0) [2024-03-23 00:14:21.627] + printf Downloading:
[2024-03-23 00:14:21.627] + local_url=https://update.code.visualstudio.com/commit:2e7179e3e051701daa9a88391f21ae69d01be4e0/server-linux-x64/stable [2024-03-23 00:14:21.627] + set +x [2024-03-23 00:14:22.244] 100% [2024-03-23 00:14:22.244] Failed [2024-03-23 00:14:22.245] + [ ! -s /root/.cursor-server/bin/2e7179e3e051701daa9a88391f21ae69d01be4e0-1711152861.tar.gz ] [2024-03-23 00:14:22.245] + echo Failed [2024-03-23 00:14:22.245] + set +e [2024-03-23 00:14:22.245] + wget -O /root/.cursor-server/bin/2e7179e3e051701daa9a88391f21ae69d01be4e0-1711152861.tar.gz https://update.code.visualstudio.com/commit:2e7179e3e051701daa9a88391f21ae69d01be4e0/server-linux-x64/stable [2024-03-23 00:14:22.245] --2024-03-23 08:14:22-- https://update.code.visualstudio.com/commit:2e7179e3e051701daa9a88391f21ae69d01be4e0/server-linux-x64/stable [2024-03-23 00:14:22.245] Resolving update.code.visualstudio.com (update.code.visualstudio.com)... 13.107.213.74, 13.107.246.74, 2620:1ec:bdf::74, ... [2024-03-23 00:14:22.245] Connecting to update.code.visualstudio.com (update.code.visualstudio.com)|13.107.213.74|:443... connected. [2024-03-23 00:14:22.559] HTTP request sent, awaiting response... [2024-03-23 00:14:23.070] 404 Not Found [2024-03-23 00:14:23.070] 2024-03-23 08:14:23 ERROR 404: Not Found. [2024-03-23 00:14:23.070] [2024-03-23 00:14:23.070] + local_rc=8 [2024-03-23 00:14:23.070] + echo ERROR: Failed to download https://update.code.visualstudio.com/commit:2e7179e3e051701daa9a88391f21ae69d01be4e0/server-linux-x64/stable to /root/.cursor-server/bin/2e7179e3e051701daa9a88391f21ae69d01be4e0-1711152861.tar.gz [2024-03-23 00:14:23.070] ERROR: Failed to download https://update.code.visualstudio.com/commit:2e7179e3e051701daa9a88391f21ae69d01be4e0/server-linux-x64/stable to /root/.cursor-server/bin/2e7179e3e051701daa9a88391f21ae69d01be4e0-1711152861.tar.gz [2024-03-23 00:14:23.070] + [ 8 -eq 5 ] [2024-03-23 00:14:23.070] + exit 13 [2024-03-23 00:14:23.070] + RC=13 [2024-03-23 00:14:23.070] + [ 13 -ne 0 ] [2024-03-23 00:14:23.070] + exit 13 [2024-03-23 00:14:23.071] For help with startup problems, go to https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips [2024-03-23 00:14:26.663] Download in background is enabled

truell20 commented 6 months ago

Can you confirm that you're on Cursor 0.30.3?

chendonghp commented 6 months ago

yes, image

chendonghp commented 6 months ago

and I use win11 insider dev version, image

chendonghp commented 6 months ago

possible cause: the download link of the server-linux-x64 correspond to the commit version is dead. https://update.code.visualstudio.com/commit:2e7179e3e051701daa9a88391f21ae69d01be4e0/server-linux-x64/stable

tatakof commented 2 months ago

possible cause: the download link of the server-linux-x64 correspond to the commit version is dead. https://update.code.visualstudio.com/commit:2e7179e3e051701daa9a88391f21ae69d01be4e0/server-linux-x64/stable

how can i fix this?