-
Notifications
You must be signed in to change notification settings - Fork 105
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
gitstatus failed to initialize #102
Comments
I found a bug in my newly inserted PATH in my .zshrc, and the git now works. However, following message comes out every time I launch zsh. [ERROR]: gitstatus failed to initialize.
Your git prompt may disappear or become slow.
The content of /var/folders/26/rm7bwnzj6p78hmz2hm5shyth0000gn/T//gitstatus.62450.xtrace.1582000591.9028229713.23161 (gitstatus_start_impl xtrace):
+gitstatus_start_impl:6> (( daemon_pid == -1 ))
+gitstatus_start_impl:7> local os
+gitstatus_start_impl:8> local daemon=/Users/HRB/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/bin/gitstatusd--
+gitstatus_start_impl:9> [[ -n /Users/HRB/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/bin/gitstatusd-- ]]
+gitstatus_start_impl:16> [[ -x /Users/HRB/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/bin/gitstatusd-- ]]
^ this command failed
Your system information:
zsh: 5.7.1
uname -a: Darwin HRBs-MBP.home 19.3.0 Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64 x86_64
If you need help, open an issue and attach this whole error message to it:
https://github.com/romkatv/gitstatus/issues/new |
Hi, also using
|
Ouch, that looks bad. Thanks for reporting this! I'll need a bit more information to figure out what's going on. Please run the following command and attach () {
emulate -L zsh -o xtrace
typeset -pm '__p9k_dump_file|_p9k_uname_*'
if (( $+__p9k_dump_file )); then
ls -l $__p9k_dump_file{,.zwc}
grep '_p9k_uname_' $__p9k_dump_file
(
unset -m '_p9k_*'
unset -fm _p9k_restore_state_impl
source $__p9k_dump_file
echo $?
_p9k_restore_state_impl
echo $?
typeset -pm '_p9k_uname_*'
)
fi
} &>/tmp/p10k.txt |
Thanks for the quick reply! I will leave this issue open for @jcgay. PEACE! |
@ryanbyon Glad it's working for you now. @jcgay Please don't change anything in your settings yet. Run the command first. Those logs are vital for fixing this issue. |
Sure, here it is: p10k.txt Thanks for the help 😇 |
@jcgay Thanks! It appears that there was an issue with PATH on your machine that caused all system commands to fail. Things like Does this sound plausible? Did you have invalid PATH recently with everything failing? Please run the following command to wipe powerlevel10k cache and restart Zsh: rm $__p9k_dump_file{,.zwc} && exec zsh This should fix your prompt. Please let me know whether it did or didn't. I'll fix powerlevel10k so that it doesn't cache obviously invalid output of |
Oh yes, I have messed up with my Thanks again (and sorry for the noise :p). |
Thanks for the confirmation that wiping the cached fixed the problem. And thanks again for reporting the bug! Powerlevel10k isn't supposed to fail like that. Working on a fix. |
Hi, I started to use
powerlevel10k
today, and everything was working just fine until I got this error message. For some reason, git status stopped working.Please help!
The text was updated successfully, but these errors were encountered: