Open hschaeidt opened 2 years ago
The unexpected CJK characters there 桳›楬敮ㄠ›湵浡㩥挠浯慭摮渠瑯映畯摮
when encoded as UTF-16 and then decoded as UTF-8 yields the text sh: line 1: uname: command not found
.
After messing around with wrapping /bin/sh to always be a login shell, without much success, I've determined that the best workaround currently is to install https://github.com/msteen/nixos-vscode-server on the WSL NixOS.
This is just a workaround. Ideally VSCode remote should use the locally-installed NodeJS if it passes a basic smoke test.
There is a issue when starting VSCode from within a NixOS. The node path does not resolve on NixOS systems. A known Workaround is to replace the
/home/nixos/.vscode-server-insiders/bin/ed2619e11b68bec43b788486230b0c2afeb4672d/node
binary with a symlink to a locally installed NodeJS:https://github.com/msteen/nixos-vscode-server/blob/master/modules/vscode-server/module.nix#L26 I am wondering if we can figure a solution without this workaround.
VSCode Version: 1.66.2 and 1.67.0-insider
Local OS Version: Windows11 21H2
Remote OS Version: NixOS 21.11 (https://github.com/nix-community/NixOS-WSL)
Remote Extension/Connection Type: WSL
Logs:
Steps to Reproduce:
code .
from inside the WSL home directory (/home/nixos is the default username)