-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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 plugin hangs when changing directories #3729
Comments
Can you see any pattern? Maybe the folder is over network? You can disable git prompt in all repositories with Another trick you can use is running zsh in tracing mode and redirecting that to a file. If it works well, when the prompt gets frozen you can just close the shell and the tracing will be there for us to follow the execution trail: exec zsh -xv 2>~/tracing.log The output will be written in /cc @apjanke: look at this method of debugging, I have a memory of us using something a little more complicated, am I right? |
Wait, no, putting that line on |
@mcornella: I remember you used the same If you're going to turn it on for every session, you might want to stick a timestamp in the filename. Otherwise it'll break if you have multiple zsh sessions running at once. (I don't know what happens when multiple processes open the same file for appending. Last one clobbers? Indeterminate interleaving/partial clobbering?)
And I dunno if using that You might be thinking of the detailed oh-my-zsh diagnostic dump function I wrote. That could also be useful here; knowing the exact zsh config could provide hints as to what's happening here, or help us reproduce it. @adko-pl, could you use that to give us details on your OMZ setup? To do so, download that EDIT: Removed the |
Nice, I think a |
@adko-pl any updates? |
@mcornella I have followed your suggestion and enabled tracing, but since then I was not able to reproduce this issue. It seems it no longer exists, therefore I am closing this ticket. Thank you @mcornella for your awesome support! |
Nice, thank you! 😄 |
Thanks,it worked for me |
seriously no way to have working zsh with displaying git info? |
From time to time when I change the directory in my git sources the shell hangs. Unfortunately I am not able to reproduce it, it happens from time to time.
Console output:
Environment:
Windows 7
CYGWIN_NT-6.1 WA-L049 1.7.33-2(0.280/5/3) 2014-11-13 15:47 x86_64 Cygwin
zsh 5.0.6 (x86_64-unknown-cygwin)
The text was updated successfully, but these errors were encountered: