getcursor / cursor

The AI-powered code editor
https://cursor.sh
20.55k stars 1.38k forks source link

[Blocking all use] WSL Not working, error in upgrade download #1476

Open JacquesSyn opened 4 weeks ago

JacquesSyn commented 4 weeks ago

1) If you can, please include a screenshot of your problem 2) Please include the name of your operating system 3) If you can, steps to reproduce are super helpful

All files that I try to open show :

The editor could not be opened due to an unexpected error: ENOPRO: No file system provider found for resource 'vscode-remote://wsl%2Bubuntu/home/jdurand/dev/.vscode/dev.code-workspace

This si what I have in console :

[2024-06-03 08:04:39.924] Extension version: 0.81.8
[2024-06-03 08:04:39.924] L10N bundle: undefined
[2024-06-03 08:04:39.927] authorityHierarchy: wsl+ubuntu
[2024-06-03 08:04:39.927] WSL extension activating for a local WSL instance
[2024-06-03 08:04:39.933] Resolving wsl+ubuntu, resolveAttempt: 1
[2024-06-03 08:04:39.934] NodeExecServer run: C:\WINDOWS\System32\wsl.exe --status
[2024-06-03 08:04:40.151] WSL feature installed: true (wsl --status)
[2024-06-03 08:04:40.152] NodeExecServer run: C:\WINDOWS\System32\wsl.exe --list --verbose
[2024-06-03 08:04:40.370] 1 distros found
[2024-06-03 08:04:40.370] Starting VS Code Server inside WSL (wsl2)
[2024-06-03 08:04:40.370] Windows build: 22631. Multi distro support: available. WSL path support: enabled
[2024-06-03 08:04:40.370] Scriptless setup: false
[2024-06-03 08:04:40.371] No shell environment set or found for current distro.
[2024-06-03 08:04:40.531] WSL daemon log file: 
[2024-06-03 08:04:40.533] Probing if server is already installed: if [ -d ~/.cursor-server/bin/1aa253fa263df64530be0cab8b4e791d45a1a820 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-06-03 08:04:40.533] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu -e sh -c if [ -d ~/.cursor-server/bin/1aa253fa263df64530be0cab8b4e791d45a1a820 ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m
[2024-06-03 08:04:47.338] Probing result: x86_64
[2024-06-03 08:04:47.338] No server install found in WSL, needs linux-x64
[2024-06-03 08:04:47.338] Getting server from client side
[2024-06-03 08:04:47.339] Found C:\Users\jdurand\AppData\Local\Temp\vscode-remote-wsl\1aa253fa263df64530be0cab8b4e791d45a1a820\vscode-server-stable-linux-x64.tar.gz. Skipping download.
[2024-06-03 08:04:47.342] Server available at C:\Users\jdurand\AppData\Local\Temp\vscode-remote-wsl\1aa253fa263df64530be0cab8b4e791d45a1a820\vscode-server-stable-linux-x64.tar.gz
[2024-06-03 08:04:47.343] NodeExecServer run: C:\WINDOWS\System32\wsl.exe -d Ubuntu sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 1aa253fa263df64530be0cab8b4e791d45a1a820 stable cursor-server .cursor-server --host=127.0.0.1 --port=0 --connection-token=3383553822-529045135-3810405389-964828675 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --disable-telemetry --telemetry-level=off'
[2024-06-03 08:04:47.657] Setting up server environment: Looking for /home/jdurand/.cursor-server/server-env-setup. Found, executing...
[2024-06-03 08:04:47.657] 1aa253fa263df64530be0cab8b4e791d45a1a820
[2024-06-03 08:04:47.657] 
[2024-06-03 08:04:47.657] + [ ! -d /home/jdurand/.cursor-server/bin/1aa253fa263df64530be0cab8b4e791d45a1a820 ]
[2024-06-03 08:04:47.657] + [ ! -d /home/jdurand/.cursor-server/bin_commit ]
[2024-06-03 08:04:47.657] + set -e
[2024-06-03 08:04:47.657] + fix_download
[2024-06-03 08:04:47.657] + local app_name=cursor
[2024-06-03 08:04:47.657] + wslpath -u c:\Users\jdurand\AppData\Local\Programs\cursor\resources\app
[2024-06-03 08:04:47.657] + local install_dir=/mnt/c/Users/jdurand/AppData/Local/Programs/cursor/resources/app
[2024-06-03 08:04:47.657] + local product_json=/mnt/c/Users/jdurand/AppData/Local/Programs/cursor/resources/app/product.json
[2024-06-03 08:04:47.657] + awk -F: /commit"/ {gsub(/[" ,]/, "", $2); print $2} /mnt/c/Users/jdurand/AppData/Local/Programs/cursor/resources/app/product.json
[2024-06-03 08:04:47.657] + local cursorCommitString=1aa253fa263df64530be0cab8b4e791d45a1a820
[2024-06-03 08:04:47.657] + awk -F: /release/ {gsub(/[" ,]/, "", $2); print $2} /mnt/c/Users/jdurand/AppData/Local/Programs/cursor/resources/app/product.json
[2024-06-03 08:04:47.657] + local vscodium_release=
[2024-06-03 08:04:47.657] + awk -F: /version/ {gsub(/[" ,]/, "", $2); print $2} /mnt/c/Users/jdurand/AppData/Local/Programs/cursor/resources/app/product.json
[2024-06-03 08:04:47.657] + tail -n 1
[2024-06-03 08:04:47.657] + local version=0.34.5
[2024-06-03 08:04:47.657] + awk -F: /vscodeVersion/ {gsub(/[" ,]/, "", $2); print $2} /mnt/c/Users/jdurand/AppData/Local/Programs/cursor/resources/app/product.json
[2024-06-03 08:04:47.657] + local vscodium_version=1.89.1
[2024-06-03 08:04:47.657] + echo 1aa253fa263df64530be0cab8b4e791d45a1a820
[2024-06-03 08:04:47.657] + echo 
[2024-06-03 08:04:47.958] + uname -m
[2024-06-03 08:04:47.958] + local arch=x86_64
[2024-06-03 08:04:47.958] + local platform=x64
[2024-06-03 08:04:47.958] + local url=https://cursor.blob.core.windows.net/remote-releases/0.34.5-1aa253fa263df64530be0cab8b4e791d45a1a820/vscode-reh-linux-x64.tar.gz
[2024-06-03 08:04:47.958] + local fallback_url=https://github.com/VSCodium/vscodium/releases/download/1.89.1./vscodium-reh-linux-x64-1.89.1..tar.gz
[2024-06-03 08:04:47.958] + curl -fLOJ https://cursor.blob.core.windows.net/remote-releases/0.34.5-1aa253fa263df64530be0cab8b4e791d45a1a820/vscode-reh-linux-x64.tar.gz -w %{filename_effective}
[2024-06-03 08:04:47.958]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[2024-06-03 08:04:47.958]                                  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     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:07 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:08 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:09 --:--:--     0
[2024-06-03 08:04:57.873] WSL version: 5.15.146.1-microsoft-standard-WSL2 Ubuntu
[2024-06-03 08:04:57.873] Updating VS Code Server to version 1aa253fa263df64530be0cab8b4e791d45a1a820
[2024-06-03 08:04:57.873] Removing previous installation...
[2024-06-03 08:04:57.873] Installing VS Code Server for x64 (1aa253fa263df64530be0cab8b4e791d45a1a820)
[2024-06-03 08:04:57.873] Downloading:     
[2024-06-03 08:04:57.874] curl: (6) Could not resolve host: cursor.blob.core.windows.net
[2024-06-03 08:04:57.874] + export VSCODE_SERVER_TAR=vscode-reh-linux-x64.tar.gz
[2024-06-03 08:04:57.874] + [ 0 -ne 0 ]
[2024-06-03 08:04:57.874] + export REMOVE_SERVER_TAR_FILE=true
[2024-06-03 08:04:57.874] + set +e
[2024-06-03 08:04:57.874] + unset fix_download
[2024-06-03 08:04:57.874] + VSCODE_REMOTE_BIN=/home/jdurand/.cursor-server/bin
[2024-06-03 08:04:57.874] + uname -r
[2024-06-03 08:04:57.874] + WSL_VERSION=5.15.146.1-microsoft-standard-WSL2
[2024-06-03 08:04:57.874] + echo WSL version: 5.15.146.1-microsoft-standard-WSL2 Ubuntu
[2024-06-03 08:04:57.874] + dirname /mnt/c/Users/jdurand/.cursor/extensions/ms-vscode-remote.remote-wsl-0.81.8/scripts/wslServer.sh
[2024-06-03 08:04:57.874] + /mnt/c/Users/jdurand/.cursor/extensions/ms-vscode-remote.remote-wsl-0.81.8/scripts/wslDownload.sh 1aa253fa263df64530be0cab8b4e791d45a1a820 stable /home/jdurand/.cursor-server/bin
[2024-06-03 08:04:57.874] + [ ! -d /home/jdurand/.cursor-server/bin/1aa253fa263df64530be0cab8b4e791d45a1a820 ]
[2024-06-03 08:04:57.874] + set -e
[2024-06-03 08:04:57.874] + [ -f /etc/alpine-release ]
[2024-06-03 08:04:57.874] + [ -d /home/jdurand/.cursor-server/bin ]
[2024-06-03 08:04:57.874] + echo Updating VS Code Server to version 1aa253fa263df64530be0cab8b4e791d45a1a820
[2024-06-03 08:04:57.874] + echo Removing previous installation...
[2024-06-03 08:04:57.874] + rm -rf /home/jdurand/.cursor-server/bin/????????????????????????????????????????
[2024-06-03 08:04:57.874] + rm -rf /home/jdurand/.cursor-server/bin/????????????????????????????????????????-??????????
[2024-06-03 08:04:57.874] + rm -rf /home/jdurand/.cursor-server/bin/1aa253fa263df64530be0cab8b4e791d45a1a820-1717400430.tar.gz
[2024-06-03 08:04:57.874] + mkdir -p /home/jdurand/.cursor-server/bin
[2024-06-03 08:04:57.874] + [ vscode-reh-linux-x64.tar.gz ]
[2024-06-03 08:04:57.874] + [ -f vscode-reh-linux-x64.tar.gz ]
[2024-06-03 08:04:57.874] + [ !  ]
[2024-06-03 08:04:57.874] + date +%s
[2024-06-03 08:04:57.874] + SERVER_TAR_FILE=/home/jdurand/.cursor-server/bin/1aa253fa263df64530be0cab8b4e791d45a1a820-1717401897.tar.gz
[2024-06-03 08:04:57.874] + download /home/jdurand/.cursor-server/bin/1aa253fa263df64530be0cab8b4e791d45a1a820-1717401897.tar.gz
[2024-06-03 08:04:57.874] + command -v wget
[2024-06-03 08:04:57.874] + [ ! /usr/bin/wget ]
[2024-06-03 08:04:57.874] + local_name=/home/jdurand/.cursor-server/bin/1aa253fa263df64530be0cab8b4e791d45a1a820-1717401897.tar.gz
[2024-06-03 08:04:57.874] + [ -f /etc/alpine-release ]
[2024-06-03 08:04:57.874] + uname -m
[2024-06-03 08:04:57.874] + PLATFORM=x64
[2024-06-03 08:04:57.874] + echo Installing VS Code Server for x64 (1aa253fa263df64530be0cab8b4e791d45a1a820)
[2024-06-03 08:04:57.874] + printf Downloading:     
[2024-06-03 08:04:57.874] + local_url=https://update.code.visualstudio.com/commit:1aa253fa263df64530be0cab8b4e791d45a1a820/server-linux-x64/stable
[2024-06-03 08:04:57.874] + set +x
[2024-06-03 08:05:07.809] 100%
[2024-06-03 08:05:07.809] Failed
[2024-06-03 08:05:07.810] + [ ! -s /home/jdurand/.cursor-server/bin/1aa253fa263df64530be0cab8b4e791d45a1a820-1717401897.tar.gz ]
[2024-06-03 08:05:07.810] + echo Failed
[2024-06-03 08:05:07.810] + set +e
[2024-06-03 08:05:07.810] + wget -O /home/jdurand/.cursor-server/bin/1aa253fa263df64530be0cab8b4e791d45a1a820-1717401897.tar.gz https://update.code.visualstudio.com/commit:1aa253fa263df64530be0cab8b4e791d45a1a820/server-linux-x64/stable
[2024-06-03 08:05:07.810] --2024-06-03 10:05:07--  https://update.code.visualstudio.com/commit:1aa253fa263df64530be0cab8b4e791d45a1a820/server-linux-x64/stable
[2024-06-03 08:05:07.810] Resolving update.code.visualstudio.com (update.code.visualstudio.com)... 
[2024-06-03 08:05:17.742] failed: Temporary failure in name resolution.
[2024-06-03 08:05:17.742] wget: unable to resolve host address ‘update.code.visualstudio.com’
[2024-06-03 08:05:17.742] + local_rc=4
[2024-06-03 08:05:17.743] + echo ERROR: Failed to download https://update.code.visualstudio.com/commit:1aa253fa263df64530be0cab8b4e791d45a1a820/server-linux-x64/stable to /home/jdurand/.cursor-server/bin/1aa253fa263df64530be0cab8b4e791d45a1a820-1717401897.tar.gz
[2024-06-03 08:05:17.743] ERROR: Failed to download https://update.code.visualstudio.com/commit:1aa253fa263df64530be0cab8b4e791d45a1a820/server-linux-x64/stable to /home/jdurand/.cursor-server/bin/1aa253fa263df64530be0cab8b4e791d45a1a820-1717401897.tar.gz
[2024-06-03 08:05:17.743] + [ 4 -eq 5 ]
[2024-06-03 08:05:17.743] + exit 13
[2024-06-03 08:05:17.743] + RC=13
[2024-06-03 08:05:17.743] + [ 13 -ne 0 ]
[2024-06-03 08:05:17.743] + exit 13
[2024-06-03 08:05:17.743] For help with startup problems, go to https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
[2024-06-03 08:05:20.371] Download in background is enabled

Screen :

image

remy727 commented 3 weeks ago

+1 on this.

JacquesSyn commented 2 weeks ago

Ok strangely it worked again for me

I did nothing special for the fix, just started cursor again, waited a loooong time for this to download :

I think it its this step that failed bacause it was too long : "Downloading WSL server"

image