Open ioogithub opened 1 year ago
I had a similar issue with toybox in a Nix powered container, you are right about the cause and the solution is to install full wget on top of busy/toybox. Luckily this was trivial to do in my case thanks to Nix but I imagine this will vary a lot based on the package manager used on your SSH server. Perhaps simply installing wget on top of what you already have will overwrite it correctly?
If you absolutely must use wget that comes with busybox you can also modify this extension but I'd personally recommend compiling from source instead of monkey-patching it and maybe contributing the change back if you manage to make this optional. I have no idea if @jeanp413 will accept it but I'd appreciate this feature too. The code you are looking for can be found here on line 319 at the time of writing.
I am attempting to run open-remote-ssh on an x86 openwrt system. I am getting the following error:
The error seems pretty straight forward, the wget options
--tries=3 --timeout=10 --continue --no-verbose
are not supported opnewrt uses busybox and wget is here:/usr/bin/wget
.I can run this command successfully manually without the arguments on the system:
wget -O vscode-server.tar.gz https://github.com/VSCodium/vscodium/releases/download/1.82.0.23250/vscodi um-reh-linux-x64-1.82.0.23250.tar.gz
and it downloads the file to~/.vscodium-server/bin/13ae69686c4390a9aee7b71b44337eb488319f26
SSH on this system uses dropbear and it is working because it did create the folder:
~/.vscodium-server/bin/13ae69686c4390a9aee7b71b44337eb488319f26
but it does not download the file.This is a linux x86_64 system and busybox is widely used. I don't see any reason why this code could not work however I don't know how to modify the extension and remove the options to get it working.
Is the code in /home/oem/.vscode-oss/extensions/jeanp413.open-remote-ssh-0.0.44-universal/out/extension.js? If so it looks obfuscated or minimized. I wasn't able to open it and made a change successfully.