-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Prepending using shell integration does not work for zsh, even when shell integration is activated #205133
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.86.1. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
Btw, both 633 and 133 shell integration sequences were not reported via the terminal data write event, so automatic shell integration may not be working, despite saying it's activated? |
Yes, exactly this is happening on my system! Version: 1.86.1
Commit: 31c37ee8f63491495ac49e43b8544550fbae4533
Date: 2024-02-07T09:07:19.849Z
Electron: 27.2.3
ElectronBuildId: 26495564
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Linux x64 6.5.13-7-MANJARO |
Since shell integration is getting activated, but the sequences are not coming through, the only thing I can imagine is that somewhere within our script, there's an error getting thrown so it exits before our sequences are put into place. I see that you have powerlevel 10k sourced within your
|
@Tyriar reminded me that powerlevel 10k will disable our shell integration script from running by design as there were problems with the interplay of that and our shell integration. |
We should be good to move the env stuff above the p10k exit to fix this problem: vscode/src/vs/workbench/contrib/terminal/browser/media/shellIntegration-rc.zsh Lines 35 to 39 in e4a37b2
|
Verified via code review |
Does this issue occur when all extensions are disabled?: Yes/No
Extension version: 2024.1.10391007
VS Code version: Code 1.86.0 (0504748, 2024-01-31T10:27:46.147Z)
Opening on behalf of @JoelFeiner-viimed: microsoft/vscode-python#22881, and @matt-hires: microsoft/vscode-python#22899
Steps to Reproduce:
Prepending environment variable PATH in environment collection with
/home/joel/.vscode/extensions/ms-python.python-2024.1.10441459/pythonFiles/deactivate/zsh:/home/joel/.local/share/virtualenvs/edge-49eYqZTG/bin:
using options:{"applyAtShellIntegration":true,"applyAtProcessCreation":true}
Value of
PATH
in zsh, notice how/home/joel/.vscode/extensions/ms-python.python-2024.1.10441459/pythonFiles/deactivate/zsh:/home/joel/.local/share/virtualenvs/edge-49eYqZTG/bin:
appears exactly once despite prepending it twicePrepending environment variable PATH in environment collection with the same value using options:
{"applyAtShellIntegration":true,"applyAtProcessCreation":false}
Value of
PATH
in zshNotice how the value is not prepended, both of them which suggests that automatic shell integration fails to prepend to
PATH
.Relevant details:
.zshrc
Shell integration is activated according to screenshot:
The text was updated successfully, but these errors were encountered: