-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
remote-cli code
command works in bash, but zsh or tmux
#236401
Comments
It's not clear what's causing this to me, if bash works and zsh doesn't in the same session I'm guessing it's because zsh is replacing the path against out will? |
FWIW I worked around this by adding export PATH="''${VSCODE_GIT_ASKPASS_NODE%/*}/bin/remote-cli:$PATH" to Outside of a nix file ( export PATH="${VSCODE_GIT_ASKPASS_NODE%/*}/bin/remote-cli:$PATH" |
This is where the remote-cli is set: vscode/src/vs/server/node/extensionHostConnection.ts Lines 51 to 60 in 7722c2b
This needs someone to follow the process creation through and see where that PATH variable gets removed. |
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.96.0. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
There was a report for "git bash" not getting set properly too, I suspect for the same reasons: microsoft/vscode-remote-release#9298 |
This has been happening for me, too, for a long time. Just found this earlier issue; had opened mine on the VSCode-Remote repos: microsoft/vscode-remote-release#6641 Heck, even the workaround doesn't work for me, as the VScode shell-integration doesn't seem to be working in WSL unless it's set to |
Version: 1.71.0 (Universal)
Commit: 784b017
Date: 2022-09-01T07:25:38.437Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin arm64 21.6.0
Sandboxed: No
Steps to Reproduce:
terminal.integrated.inheritEnv
is set to true (the default).code
. Observe that it works.code
. Observe that it fails.Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: Yes
It appears as though PATH is propagating correctly for bash, but not the other two:
Opening a bash terminal and then running zsh from within that terminal works.
Why is VSCode propagating different environment variables to different shells?
Potentially related: microsoft/vscode-remote-release#4460
The text was updated successfully, but these errors were encountered: