Turning off inheritEnv
as per prompt breaks vscode-remote
#12176
Labels
bug
Issue identified by VS Code Team member as probable bug
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): Language serverpython.languageServer
setting: MicrosoftExpected behaviour
The prompt to disable
inheritEnv
should warn that it'll break other thingsActual behaviour
When using a conda env, a prompt appears to disable
inheritEnv
so thatconda activate
will work in the terminal. Unfortunately, disabling inheritEnv breaks SSH agent forwarding in vscode-remote.Steps to reproduce:
Set
terminal.integrated.inheritEnv
to False, then connect to a container with vscode remote and check the$SSH_AUTH_SOCK
value in the terminal. It'll be empty, meaning SSH agent forwarding won't work.For an exemplar container, I've followed this vscode tutorial:
Then from vscode, click through
Remote Explorer -> right-click on container -> Attach to Container
.Within the window that opens inside the container, create a new terminal.
Run
echo $SSH_AUTH_SOCK
. It'll return an empty string.The text was updated successfully, but these errors were encountered: