Closed superdump closed 11 months ago
Does this happen every time you start zsh?
Did it ever work for you?
Does it take 10 seconds before the error message is printed?
What happens if you run the following command?
~/.cache/gitstatus/gitstatusd-darwin-arm64
Does this happen every time you start zsh?
Yes.
Did it ever work for you?
Yes, it used to work, but after updating to macOS 13.5, my shell is super slow so I tried uninstalling and reinstalling oh-my-zsh and powerline10k, and now I see this error.
Does it take 10 seconds before the error message is printed?
Yes.
What happens if you run the following command?
~/.cache/gitstatus/gitstatusd-darwin-arm64
It takes about 15s before anything is printed. I'm running on an M1 Max.
~/.cache/gitstatus/gitstatusd-darwin-arm64
[2023-08-01 10:04:20 0000000206bde080 INFO src/gitstatus.cc:186] argv[0]: "/Users/roberts/.cache/gitstatus/gitstatusd-darwin-arm64"
[2023-08-01 10:04:20 0000000206bde080 INFO src/thread_pool.cc:81] Spawning 1 thread(s)
It looks like your machine is incredibly slow. At least 100 slower than normal. You can try adding the following parameter to ~/.p10k.zsh
:
# Give gitstatusd 100s to initialize. Normally this takes
# milliseconds but on this machine everything is slower.
typeset -g POWERLEVEL9K_GITSTATUS_INIT_TIMEOUT_SEC=100
I had rebooted before and the problem persisted. But now after a second reboot today, it seems to be fine. False alarm, just that p10k had a startup time check on gitstatus, so seems unrelated to gitstatus itself, I just came here because it seemed like my terminal was taking a long time to start up and run commands and such.
Perhaps your machine was "optimizing" after the upgrade. macOS can be very slow and even borderline unusable during that process. All you can do is wait for it to finish.
[ERROR]: gitstatus failed to initialize.
Zsh log (/private/var/folders/l6/j8s7vn_90wg7w2twyy0lt3800000gn/T/gitstatus.POWERLEVEL9K.501.97934.1690868094.2.xtrace.log):
Daemon log (/private/var/folders/l6/j8s7vn_90wg7w2twyy0lt3800000gn/T/gitstatus.POWERLEVEL9K.501.97934.1690868094.2.daemon.log):
System information: