-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
git module seems to break stderr #1869
Comments
@gnuletik I'm not sure what is causing this issue but I know a fix for this. |
Thanks for the answer ! However, the issue still appears when spamming other commands.
NB: I cannot reopen the issue. Also, the issue do not appears with oh-my-zsh. |
My current guess is that something in our git-info function or the external zsh-async are using stderr redirection with a command stored in a variable and that var is somehow unset sometimes. I think we've had similar issues with people holding down Control C... Does this seem correlated to how quickly you rerun the command, or is that not a factor? |
Hi @belak, Thanks for the answer. Holding Ctrl-C do not reproduce the problem. I tried this test
The issue occurred after 40 occurrences. So, it does not seems correlated to how quickly I rerun the command. Thanks! |
Hej! I was just digging into the same problem and found this issue. In my case it looks like the reason is a redirected stderr (as @belak correctly guessed):
There's a related issue in zsh-async which has been fixed in recent releases. So I locally updated the submodule to v1.8.5 in the hope that it'll fix this (annoying) issue (and won't break anything else) 🤞 |
Just updated async to 1.8.5 via #1926. This was in my backlog for a while. |
Description
When enabling the git module, the
stderr
output occasionally breaks and nothing is printed on the terminal.Expected behavior
When writing to
stderr
, it should be printed into the terminal.Steps to Reproduce
It's quite hard to reproduce this bug. I tried many different scenarios but I didn't found any simple steps to reproduce it.
Sometimes, I just cd into a git repository, and the issue occurs.
I tried to disable the git module and I could not reproduce the issue.
Versions
The text was updated successfully, but these errors were encountered: