!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

347 Members
https://github.com/nix-community/NixOS-WSL61 Servers

Load older messages


SenderMessageTime
11 Mar 2023
@i97henka:matrix.orghenrik-chvscodeerror.png
Download vscodeerror.png
12:25:12
@k900:0upti.meK900You probably want to just use nix-ld12:26:06
@k900:0upti.meK900 programs.nix-ld.enable = true 12:26:10
@k900:0upti.meK900Without any of the other stuff12:26:16
@k900:0upti.meK900
In reply to@sandro:supersandro.de
setting "remote.WSL2.connectionMethod": "wsl2VMAddress" did the trick. Probably some variable loading issue, again
You may also need this
12:26:49
@i97henka:matrix.orghenrik-ch Thank you K900 , I don't even know what that nix-ld is yet 😆, but I'll investigate - much appreciated, I would never have found this out myself.
I'll keep you posted on my progress.
12:28:40
@i97henka:matrix.orghenrik-ch

I added nix-ld successfully I think in my configuration.nix.

I kept the vscode-remote-wsl-nixos script in the .vscode-server folder, but I am not sure if that is necessary.
This script still runs without error as far as I can see when I trigger it manually.

running the code . command in the nixos command line now gives the following result.

[2023-03-11 12:43:34.519] Resolving wsl+NixOS, resolveAttempt: 1
[2023-03-11 12:43:34.927] Starting VS Code Server inside WSL (wsl2)
[2023-03-11 12:43:34.927] Extension version: 0.76.1
[2023-03-11 12:43:34.927] Windows build: 22621. Multi distro support: available. WSL path support: enabled
[2023-03-11 12:43:35.284] Using shell environment from invoking shell: /tmp/vscode-distro-env.4xitW2
[2023-03-11 12:43:35.444] WSL daemon log file: 
[2023-03-11 12:43:35.445] Probing if server is already installed: C:\WINDOWS\System32\wsl.exe -d NixOS -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m"
[2023-03-11 12:43:35.816] Unable to detect if server is already installed: Error: Command failed: C:\WINDOWS\System32\wsl.exe -d NixOS -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m"
[2023-03-11 12:43:35.816] /nix/store/k90dlx0yw3463kxbfvyi9hf3q64bm5rj-bash-interactive-5.1-p16/bin/sh: line 1: uname: command not found
[2023-03-11 12:43:35.816] 
[2023-03-11 12:43:35.816] 湩瑳污⵬潦湵⁤
[2023-03-11 12:43:35.816] 港硩猯潴敲欯〹汤へ睹㐳㌶硫晢祶㥩晨焳㐶浢爵⵪慢桳椭瑮牥捡楴敶㔭ㄮ瀭㘱戯湩猯㩨氠湩⁥㨱甠慮敭›潣浭湡⁤潮⁴潦湵੤
[2023-03-11 12:43:35.817] Launching C:\WINDOWS\System32\wsl.exe -d NixOS sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 5e805b79fcb6ba4c2d23712967df89a089da575b stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=4156266028-1343363423-1808892915-2055051780 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
[2023-03-11 12:43:36.127] Setting up server environment: Looking for /home/i97henka/.vscode-server/server-env-setup. Found, executing...
[2023-03-11 12:43:36.127] == '~/.vscode-server/server-env-setup' SCRIPT START ==
[2023-03-11 12:43:36.128] NIXOS_VERSION detected as ""
[2023-03-11 12:43:36.129] /home/i97henka/.vscode-server/server-env-setup: line 10: cut: command not found
[2023-03-11 12:43:36.129] /home/i97henka/.vscode-server/server-env-setup: line 10: nixos-version: command not found
[2023-03-11 12:43:36.369] Got vscode directory : /mnt/c/Program Files/Microsoft VS Code
[2023-03-11 12:43:36.369] If the directory is incorrect, you can hardcode it on the script.
[2023-03-11 12:43:36.369] Patching nodejs binaries...
[2023-03-11 12:43:36.369] == '~/.vscode-server/server-env-setup' SCRIPT END ==
[2023-03-11 12:43:36.369] WSL version:  NixOS
[2023-03-11 12:43:36.370] /home/i97henka/.vscode-server/server-env-setup: line 17: dirname: command not found
[2023-03-11 12:43:36.370] /home/i97henka/.vscode-server/server-env-setup: line 22: nix: command not found
[2023-03-11 12:43:36.370] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 28: uname: command not found
[2023-03-11 12:43:36.370] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 32: dirname: command not found
[2023-03-11 12:43:36.370] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 32: /wslDownload.sh: No such file or directory
[2023-03-11 12:43:36.370] VS Code Server for WSL closed unexpectedly.
[2023-03-11 12:43:36.370] For help with startup problems, go to https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
[2023-03-11 12:43:36.381] WSL Daemon exited with code 0
[2023-03-11 12:43:39.394] Download in background is enabled
[2023-03-11 12:44:09.401] Update check by another window detected, skipping.

I gave it a couple of reruns to make sure that the result is consistent. Was I supposed to keep that server-env-setup script in the .vscode-server?
Error seems a bit similar to previous go with command missing, but I am not sure what to think about that.

What I realise that I haven't done yet is setting the remote.WSL2.connectionMethod to wsl2VMAddress
Is that a vscode setting in the gui on the Windows machine?

12:49:25
@i97henka:matrix.orghenrik-ch *

I added nix-ld successfully I think in my configuration.nix.

I kept the vscode-remote-wsl-nixos script in the .vscode-server folder, but I am not sure if that is necessary.
This script still runs without error as far as I can see when I trigger it manually.

running the code . command in the nixos command line now gives the following result.

[2023-03-11 12:43:34.519] Resolving wsl+NixOS, resolveAttempt: 1
[2023-03-11 12:43:34.927] Starting VS Code Server inside WSL (wsl2)
[2023-03-11 12:43:34.927] Extension version: 0.76.1
[2023-03-11 12:43:34.927] Windows build: 22621. Multi distro support: available. WSL path support: enabled
[2023-03-11 12:43:35.284] Using shell environment from invoking shell: /tmp/vscode-distro-env.4xitW2
[2023-03-11 12:43:35.444] WSL daemon log file: 
[2023-03-11 12:43:35.445] Probing if server is already installed: C:\WINDOWS\System32\wsl.exe -d NixOS -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m"
[2023-03-11 12:43:35.816] Unable to detect if server is already installed: Error: Command failed: C:\WINDOWS\System32\wsl.exe -d NixOS -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m"
[2023-03-11 12:43:35.816] /nix/store/k90dlx0yw3463kxbfvyi9hf3q64bm5rj-bash-interactive-5.1-p16/bin/sh: line 1: uname: command not found
[2023-03-11 12:43:35.816] 
[2023-03-11 12:43:35.816] 湩瑳污⵬潦湵⁤
[2023-03-11 12:43:35.816] 港硩猯潴敲欯〹汤へ睹㐳㌶硫晢祶㥩晨焳㐶浢爵⵪慢桳椭瑮牥捡楴敶㔭ㄮ瀭㘱戯湩猯㩨氠湩⁥㨱甠慮敭›潣浭湡⁤潮⁴潦湵੤
[2023-03-11 12:43:35.817] Launching C:\WINDOWS\System32\wsl.exe -d NixOS sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 5e805b79fcb6ba4c2d23712967df89a089da575b stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=4156266028-1343363423-1808892915-2055051780 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
[2023-03-11 12:43:36.127] Setting up server environment: Looking for /home/i97henka/.vscode-server/server-env-setup. Found, executing...
[2023-03-11 12:43:36.127] == '~/.vscode-server/server-env-setup' SCRIPT START ==
[2023-03-11 12:43:36.128] NIXOS_VERSION detected as ""
[2023-03-11 12:43:36.129] /home/i97henka/.vscode-server/server-env-setup: line 10: cut: command not found
[2023-03-11 12:43:36.129] /home/i97henka/.vscode-server/server-env-setup: line 10: nixos-version: command not found
[2023-03-11 12:43:36.369] Got vscode directory : /mnt/c/Program Files/Microsoft VS Code
[2023-03-11 12:43:36.369] If the directory is incorrect, you can hardcode it on the script.
[2023-03-11 12:43:36.369] Patching nodejs binaries...
[2023-03-11 12:43:36.369] == '~/.vscode-server/server-env-setup' SCRIPT END ==
[2023-03-11 12:43:36.369] WSL version:  NixOS
[2023-03-11 12:43:36.370] /home/i97henka/.vscode-server/server-env-setup: line 17: dirname: command not found
[2023-03-11 12:43:36.370] /home/i97henka/.vscode-server/server-env-setup: line 22: nix: command not found
[2023-03-11 12:43:36.370] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 28: uname: command not found
[2023-03-11 12:43:36.370] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 32: dirname: command not found
[2023-03-11 12:43:36.370] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 32: /wslDownload.sh: No such file or directory
[2023-03-11 12:43:36.370] VS Code Server for WSL closed unexpectedly.
[2023-03-11 12:43:36.370] For help with startup problems, go to https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
[2023-03-11 12:43:36.381] WSL Daemon exited with code 0
[2023-03-11 12:43:39.394] Download in background is enabled
[2023-03-11 12:44:09.401] Update check by another window detected, skipping.

I gave it a couple of reruns to make sure that the result is consistent. Was I supposed to keep that server-env-setup script in the .vscode-server?
Error seems a bit similar to previous go with command missing, but I am not sure what to think about that.

What I realise that I haven't done yet is setting the remote.WSL2.connectionMethod to wsl2VMAddress
Is that a vscode setting in the gui on the Windows machine?

12:49:47
@k900:0upti.meK900 It's a VSCode setting on the host. Yes 12:50:21
@i97henka:matrix.orghenrik-chThink I found the correct setting on the host now:12:57:26
@i97henka:matrix.orghenrik-chwslsetting.png
Download wslsetting.png
12:57:34
@i97henka:matrix.orghenrik-chkind of same error message after that, I'll restart to make sure that all settings have taken effect. 12:58:47
@i97henka:matrix.orghenrik-ch

Looks very similar unfortunately:

[2023-03-11 12:59:43.645] Resolving wsl+NixOS, resolveAttempt: 1
[2023-03-11 12:59:44.090] Starting VS Code Server inside WSL (wsl2)
[2023-03-11 12:59:44.090] Extension version: 0.76.1
[2023-03-11 12:59:44.090] Windows build: 22621. Multi distro support: available. WSL path support: enabled
[2023-03-11 12:59:44.476] Using shell environment from invoking shell: /tmp/vscode-distro-env.pX6LWf
[2023-03-11 12:59:44.630] WSL daemon log file: 
[2023-03-11 12:59:44.632] Probing if server is already installed: C:\WINDOWS\System32\wsl.exe -d NixOS -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m"
[2023-03-11 12:59:45.009] Unable to detect if server is already installed: Error: Command failed: C:\WINDOWS\System32\wsl.exe -d NixOS -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m"
[2023-03-11 12:59:45.009] /nix/store/k90dlx0yw3463kxbfvyi9hf3q64bm5rj-bash-interactive-5.1-p16/bin/sh: line 1: uname: command not found
[2023-03-11 12:59:45.009] 
[2023-03-11 12:59:45.009] 湩瑳污⵬潦湵⁤
[2023-03-11 12:59:45.009] 港硩猯潴敲欯〹汤へ睹㐳㌶硫晢祶㥩晨焳㐶浢爵⵪慢桳椭瑮牥捡楴敶㔭ㄮ瀭㘱戯湩猯㩨氠湩⁥㨱甠慮敭›潣浭湡⁤潮⁴潦湵੤
[2023-03-11 12:59:45.010] Launching C:\WINDOWS\System32\wsl.exe -d NixOS sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 5e805b79fcb6ba4c2d23712967df89a089da575b stable code-server .vscode-server --host=:: --print-ip-address --port=0 --connection-token=3174441629-2582994394-53326944-2227632483 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
[2023-03-11 12:59:45.955] Setting up server environment: Looking for /home/i97henka/.vscode-server/server-env-setup. Found, executing...
[2023-03-11 12:59:45.955] == '~/.vscode-server/server-env-setup' SCRIPT START ==
[2023-03-11 12:59:46.266] NIXOS_VERSION detected as ""
[2023-03-11 12:59:46.266] Got vscode directory : /mnt/c/Program Files/Microsoft VS Code
[2023-03-11 12:59:46.266] If the directory is incorrect, you can hardcode it on the script.
[2023-03-11 12:59:46.266] Patching nodejs binaries...
[2023-03-11 12:59:46.266] == '~/.vscode-server/server-env-setup' SCRIPT END ==
[2023-03-11 12:59:46.267] /home/i97henka/.vscode-server/server-env-setup: line 10: nixos-version: command not found
[2023-03-11 12:59:46.267] /home/i97henka/.vscode-server/server-env-setup: line 10: cut: command not found
[2023-03-11 12:59:46.267] /home/i97henka/.vscode-server/server-env-setup: line 17: dirname: command not found
[2023-03-11 12:59:46.267] /home/i97henka/.vscode-server/server-env-setup: line 22: nix: command not found
[2023-03-11 12:59:46.407] WSL version:  NixOS
[2023-03-11 12:59:46.410] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 28: uname: command not found
[2023-03-11 12:59:46.410] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 32: dirname: command not found
[2023-03-11 12:59:46.410] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 32: /wslDownload.sh: No such file or directory
[2023-03-11 12:59:46.410] VS Code Server for WSL closed unexpectedly.
[2023-03-11 12:59:46.410] For help with startup problems, go to https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
[2023-03-11 12:59:46.436] WSL Daemon exited with code 0
[2023-03-11 12:59:49.460] Download in background is enabled

What I would like to do is change:
[2023-03-11 12:59:44.632] Probing if server is already installed: C:\WINDOWS\System32\wsl.exe -d NixOS -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m"
to:
[2023-03-11 12:59:44.632] Probing if server is already installed: C:\WINDOWS\System32\wsl.exe -d NixOS -u i97henka -e sh .... but I don't know how to do that.

13:02:05
@k900:0upti.meK900Remove the server-env-setup file13:03:46
@i97henka:matrix.orghenrik-chfile only, or the whole .vscode-server folder?13:04:03
@k900:0upti.meK900If there's nothing else in the folder, you can remove the folder as well 13:04:20
@i97henka:matrix.orghenrik-chthere's a bin folder in there, so I won't touch the .vscode-server folder - script deleted now.13:05:04
@i97henka:matrix.orghenrik-ch

The terminal error output looks the same afterwards unfortunately:

[2023-03-11 13:05:47.776] Resolving wsl+NixOS, resolveAttempt: 1
[2023-03-11 13:05:48.229] Starting VS Code Server inside WSL (wsl2)
[2023-03-11 13:05:48.229] Extension version: 0.76.1
[2023-03-11 13:05:48.229] Windows build: 22621. Multi distro support: available. WSL path support: enabled
[2023-03-11 13:05:48.595] Using shell environment from invoking shell: /tmp/vscode-distro-env.ejew9b
[2023-03-11 13:05:48.744] WSL daemon log file: 
[2023-03-11 13:05:48.746] Probing if server is already installed: C:\WINDOWS\System32\wsl.exe -d NixOS -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m"
[2023-03-11 13:05:49.119] Unable to detect if server is already installed: Error: Command failed: C:\WINDOWS\System32\wsl.exe -d NixOS -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m"
[2023-03-11 13:05:49.119] /nix/store/k90dlx0yw3463kxbfvyi9hf3q64bm5rj-bash-interactive-5.1-p16/bin/sh: line 1: uname: command not found
[2023-03-11 13:05:49.119] 
[2023-03-11 13:05:49.119] 湩瑳污⵬潦湵⁤
[2023-03-11 13:05:49.119] 港硩猯潴敲欯〹汤へ睹㐳㌶硫晢祶㥩晨焳㐶浢爵⵪慢桳椭瑮牥捡楴敶㔭ㄮ瀭㘱戯湩猯㩨氠湩⁥㨱甠慮敭›潣浭湡⁤潮⁴潦湵੤
[2023-03-11 13:05:49.120] Launching C:\WINDOWS\System32\wsl.exe -d NixOS sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 5e805b79fcb6ba4c2d23712967df89a089da575b stable code-server .vscode-server --host=:: --print-ip-address --port=0 --connection-token=1933795805-3547129303-155333572-2104169279 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
[2023-03-11 13:05:49.736] Setting up server environment: Looking for /home/i97henka/.vscode-server/server-env-setup. Not found.
[2023-03-11 13:05:49.736] WSL version:  NixOS
[2023-03-11 13:05:49.737] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 28: uname: command not found
[2023-03-11 13:05:49.737] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 32: dirname: command not found
[2023-03-11 13:05:49.737] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 32: /wslDownload.sh: No such file or directory
[2023-03-11 13:05:49.742] VS Code Server for WSL closed unexpectedly.
[2023-03-11 13:05:49.742] For help with startup problems, go to https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
[2023-03-11 13:05:49.767] WSL Daemon exited with code 0
[2023-03-11 13:06:04.005] Download in background is enabled

As a new angle I am trying to run this command in my powershell terminal, and my error message is in line with what I get in the terminal print above:

PS C:\Users\i97he>  C:\WINDOWS\System32\wsl.exe -d NixOS -u i97henka -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m"
install-found /nix/store/k90dlx0yw3463kxbfvyi9hf3q64bm5rj-bash-interactive-5.1-p16/bin/sh: line 1: uname: command not found
PS C:\Users\i97he>

Any suggestions where to go from here? I am a bit lost myself I must admit.

13:10:29
@i97henka:matrix.orghenrik-ch(I tried the powershell command with and without specifying the user - so that seems to be a red herring)13:11:17
@k900:0upti.meK900Have you restarted vscode as it tells you to? 13:14:09
@i97henka:matrix.orghenrik-ch

restarted the whole machine to be on the safe side, still same message afaic.

[2023-03-11 13:18:05.596] Resolving wsl+NixOS, resolveAttempt: 1
[2023-03-11 13:18:06.475] Starting VS Code Server inside WSL (wsl2)
[2023-03-11 13:18:06.475] Extension version: 0.76.1
[2023-03-11 13:18:06.475] Windows build: 22621. Multi distro support: available. WSL path support: enabled
[2023-03-11 13:18:07.207] Using shell environment from invoking shell: /tmp/vscode-distro-env.4uhLDI
[2023-03-11 13:18:07.468] WSL daemon log file: 
[2023-03-11 13:18:07.470] Probing if server is already installed: C:\WINDOWS\System32\wsl.exe -d NixOS -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m"
[2023-03-11 13:18:07.926] Unable to detect if server is already installed: Error: Command failed: C:\WINDOWS\System32\wsl.exe -d NixOS -e sh -c "if [ -d ~/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b ]; then printf 'install-found '; fi; if [ -f /etc/alpine-release ]; then printf alpine-; fi; uname -m"
[2023-03-11 13:18:07.926] /nix/store/k90dlx0yw3463kxbfvyi9hf3q64bm5rj-bash-interactive-5.1-p16/bin/sh: line 1: uname: command not found
[2023-03-11 13:18:07.926] 
[2023-03-11 13:18:07.926] 湩瑳污⵬潦湵⁤
[2023-03-11 13:18:07.926] 港硩猯潴敲欯〹汤へ睹㐳㌶硫晢祶㥩晨焳㐶浢爵⵪慢桳椭瑮牥捡楴敶㔭ㄮ瀭㘱戯湩猯㩨氠湩⁥㨱甠慮敭›潣浭湡⁤潮⁴潦湵੤
[2023-03-11 13:18:07.927] Launching C:\WINDOWS\System32\wsl.exe -d NixOS sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 5e805b79fcb6ba4c2d23712967df89a089da575b stable code-server .vscode-server --host=:: --print-ip-address --port=0 --connection-token=1821804161-1383173471-3142305905-1140375785 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
[2023-03-11 13:18:08.490] Setting up server environment: Looking for /home/i97henka/.vscode-server/server-env-setup. Not found.
[2023-03-11 13:18:08.490] WSL version:  NixOS
[2023-03-11 13:18:08.491] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 28: uname: command not found
[2023-03-11 13:18:08.491] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 32: dirname: command not found
[2023-03-11 13:18:08.491] /mnt/c/Users/i97he/.vscode/extensions/ms-vscode-remote.remote-wsl-0.76.1/scripts/wslServer.sh: line 32: /wslDownload.sh: No such file or directory
[2023-03-11 13:18:08.491] VS Code Server for WSL closed unexpectedly.
[2023-03-11 13:18:08.491] For help with startup problems, go to https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
[2023-03-11 13:18:08.502] WSL Daemon exited with code 0
[2023-03-11 13:18:10.639] Download in background is enabled
13:19:01
@k900:0upti.meK900 Maybe try running code from inside the VM first 13:21:09
@i97henka:matrix.orghenrik-ch Sorry if that's a stupid question, but isn't that what I am doing when I type code . in the nixos wsl instance?
I'm sure that you mean something different though that I don't yet understand.
13:27:39
@k900:0upti.meK900Yes, that13:28:02
@k900:0upti.meK900 Maybe try removing ~/.vscode-server entirely then 13:28:17
@i97henka:matrix.orghenrik-ch

I think that improved things:

[i97henka@nixos:~/github/vscode-remote-wsl-nixos]$ code .
Installing VS Code Server for x64 (5e805b79fcb6ba4c2d23712967df89a089da575b)
Downloading: 100%
Unpacking: 100%
Unpacked 2399 files and folders to /home/i97henka/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b.
cannot execute /home/i97henka/.vscode-server/bin/5e805b79fcb6ba4c2d23712967df89a089da575b/node: NIX_LD or NIX_LD_x86_64-linux is not set

Do you know about that setting NIX_LD or NIX_LD_x86_64-linux?

13:30:04
@k900:0upti.meK900 Are you on 22.11 or unstable? 13:30:48
@k900:0upti.meK900Those should be set by default on unstable13:30:56
@i97henka:matrix.orghenrik-ch
[i97henka@nixos:~/github/vscode-remote-wsl-nixos]$ nixos-version
22.11.2630.e6d5772f351 (Raccoon)

[i97henka@nixos:~/github/vscode-remote-wsl-nixos]$ sudo nix-channel --list
home-manager https://github.com/nix-community/home-manager/archive/master.tar.gz
nixos https://nixos.org/channels/nixos-22.11
13:32:40
@i97henka:matrix.orghenrik-chso I need to change that.13:32:59

Show newer messages


Back to Room ListRoom Version: 9