Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'$HOME/.wsl-cmds' not in path when starting vscode normally #27

Open
spectrapulse opened this issue Apr 14, 2022 · 2 comments
Open

'$HOME/.wsl-cmds' not in path when starting vscode normally #27

spectrapulse opened this issue Apr 14, 2022 · 2 comments
Assignees
Labels
livestream diddledani to look at this during the next livestream on Twitch.tv/diddledani

Comments

@spectrapulse
Copy link

spectrapulse commented Apr 14, 2022

When starting vscode without launching it from a WSL shell with remote.WSL.useShellEnvironment enabled, $HOME/.wsl-cmds will not be available in path.

Making both the SSH and the GPG agent inaccessible to vscode and other tools that take the same approach as vscode to detect the environment.

Maybe it is an idea to make the script add PATH="$HOME/.wsl-cmds:$PATH:/snap/bin" to ~/.bashrc, ~/.profile or whatever vscode gets the environment from? Or maybe it's an idea to change how the environment is configured?

Without it will make both the forwarded agents and snap inaccessible from vscode as snap is also not in path.

image

@lucyllewy
Copy link
Owner

please redownload the install.ps1 which has been updated since you previously installed and rerun it as per the instructions you followed before or are listed in the README of this repository. It should update your installation to no-longer require the .wsl-cmds directory as we now use the Windows ssh-agent directly by using ssh on the Windows side and pipe it back into Linux via interop.

@lucyllewy
Copy link
Owner

Sorry, I completely got that wrong. I don't know my own code it seems. the .wsl-cmds directory is specifically what we're using for ssh to link it through to windows 🤦‍♀️ I'll have a look tomorrow during a live stream on Twitch to see if I can find out where the problem lies and whether I can fix it.

@lucyllewy lucyllewy self-assigned this Jun 16, 2022
@lucyllewy lucyllewy added the livestream diddledani to look at this during the next livestream on Twitch.tv/diddledani label Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
livestream diddledani to look at this during the next livestream on Twitch.tv/diddledani
Projects
None yet
Development

No branches or pull requests

2 participants