pearai-app icon indicating copy to clipboard operation
pearai-app copied to clipboard

WSL Connect Issue

Open brandonyee-cs opened this issue 1 year ago • 5 comments

Returns an error when running "Shell: Patch WSL"

PS C:\Users\brand> powershell.exe -ExecutionPolicy Bypass -File "c:\Users\brand\AppData\Local\Programs\PearAI\resources\app\extensions\pearai.pearai-1.2.0\wsl-scripts\fix-wsl.ps1" -wslDownloadScript "c:\Users\brand.pearai\extensions\ms-vscode-remote.remote-wsl-0.88.4\scripts\wslDownload.sh" -PEAR_COMMIT_ID "58996b5e761a7fe74bdfb4ac468e4b91d4d27294" -VSC_COMMIT_ID "4849ca9bdf9666755eb463db297b69e5385090e3" Executing WSL download script ERROR: Failed to download the VS Code server. 'wget' not installed. + CategoryInfo : NotSpecified: (ERROR: Failed t... not installed.:String) [],
RemoteException + FullyQualifiedErrorId : NativeCommandError + PSComputerName : localhost

Please install wget: Debian/Ubuntu: sudo apt-get install wget Updating VS Code Server to version 4849ca9bdf9666755eb463db297b69e5385090e3 Removing previous installation... Download script output: Updating VS Code Server to version 4849ca9bdf9666755eb463db297b69e5385090e3 Removing previous installation... WSL download script executed successfully. Server file not found: /home/root/.pearai-server/bin/4849ca9bdf9666755eb463db297b69e5385090e3/out/vs/server/node/server.main.js An error occurred while trying to edit the file.

----------------------------- wget is in fact installed.

brandonyee-cs avatar Sep 28 '24 00:09 brandonyee-cs

@brandonyee-cs can you confirm again manually that wget is installed. do you have multiple distros in wsl?? maybe the one its trying to connect to, does not have wget. can you connect to wsl using vscode?

Himanshu-Singh-Chauhan avatar Sep 28 '24 03:09 Himanshu-Singh-Chauhan

I have multiple distros; how do I specifically connect to a particular distro?

The distro I'm trying to connect to does, in fact, have wget, and I can connect vs code from wsl.

brandonyee-cs avatar Sep 28 '24 15:09 brandonyee-cs

mmm, strange. what distros you have, and which one you trying to connect to?

i would suggest try checking all distros for wget, if anyone is missing wget, maybe thats the one its trying to connect to.

you can use this option to connect to a particular distro image

can you run this in all distros - sudo apt install wget or sudo apt-get install wget then try running patch WSL command,

Himanshu-Singh-Chauhan avatar Sep 28 '24 17:09 Himanshu-Singh-Chauhan

Hello PearAI community,

I also faced this issue while trying out the editor. I can confirm it happens on my two computers. I am using Windows 11 Pro 23H2.

I installed the WSL extension and run the patch script as described in this guide: https://trypear.ai/blog/wsl-setup

When I try to connect to WSL, this error pops up:

image

When I go to remote explorer, and try to refresh WSL targets, I get this error:

Error running command remote-wsl.explorer.refresh: command 'remote-wsl.explorer.refresh' not found. This is likely caused by the extension that contributes remote-wsl.explorer.refresh.

Please fix this issue so I can consider becoming a customer as I am exploring AI tools for my future venture and WSL integration is crucial for my workflow.

Thank you!

lucrnz avatar Sep 30 '24 21:09 lucrnz

In response to your previous inquiry Himanshu-Singh-Chauhan, the Distro I plan on using is Ubuntu and I do in fact have wget installed. I am searching for a solution in which I can connect to said Distro without uninstalling or altering my other Distros.

brandonyee-cs avatar Oct 02 '24 03:10 brandonyee-cs