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
Update prompt conflicts with VSCode python venv functionality #12307
Comments
Hi! That's an unfortunate corner case. I think changing the way [[ $TERM_PROGRAM == vscode ]] && zstyle ':omz:update' mode disabled |
Could a simple check for incoming input on shell startup suffice? I assume VSCode sends its command right away, faster than a human would, so a simple check for input before prompting user to update could solve the issue for VSCode and any other automated shell-creating programs that could interfere with ohmyzsh and have ohmyzsh interfere with them |
The problem is that the input comes after the shell is initialized, that's why the first char gets cached by the update system. |
what if the update prompt simply tells the user to run an update command and doesn't directly ask/listen for a y/n input? |
You can choose that as well by setting the update mode |
But given the wide adoption of VSCode as an editor is there a chance we could make the case for having that as a default? |
I think that's an idea in the short run, let's add the check ourselves, but ideally in the long run I'd like to have a better solution for delayed initial input. |
I experienced the same issue with Ok imediatelly after update |
I'm not able to reproduce this in VS Code (tried following [1] to no avail), and I don't have IntelliJ installed to reproduce this. Could you write a bullet point list of the steps to set this up, and confirm that you're in the latest OMZ version? |
Why not just avoid capturing initial terminal output, which anecdotally conflicts with more than one application? I think a prompt that asks the user to run a command to update would work just as well in all instances, no? Is there a big advantage in capturing input? Forcing the user to decide immediately whether they want to update (seems a bit intrusive)? I appreciate all your effort here, just an idea of what I would do here 🙏 |
Describe the bug
VSCode python venv functionality runs
source venv/bin/activate
on terminal startupUpdate prompt from oh my zsh captures the first character
Steps to reproduce
See above
Expected behavior
See above
Screenshots and recordings
No response
OS / Linux distribution
MacOS
Zsh version
5.8.1
Terminal emulator
VSCode
If using WSL on Windows, which version of WSL
None
Additional context
No response
The text was updated successfully, but these errors were encountered: