gitstatus
gitstatus copied to clipboard
Issue running on netbsd through Powerlevel9000
I tried sshing to my sdf.org account from Windows and Fedora
> GITSTATUS_LOG_LEVEL=DEBUG zsh
[ERROR]: gitstatus failed to initialize.
Zsh log (/tmp/gitstatus.POWERLEVEL9K.26901.17689.1700067428.2.xtrace.log):
+(anon):7> setopt monitor
+(anon):9> (( ! _GITSTATUS_STATE_POWERLEVEL9K ))
+(anon):10> [[ -r /proc/version && 'NetBSD version 9.3 (netbsd@localhost) (gcc version 7.5.0) NetBSD 9.3 (GENERIC) #0: Thu Aug 4 15:30:37 UTC 2022' == *Microsoft* ]]
+(anon):13> print -rn
+(anon):14> zsystem flock -f lock_fd /tmp/gitstatus.POWERLEVEL9K.26901.17689.1700067428.2.lock
+(anon):15> [[ 14 == <1-> ]]
+(anon):18> typeset -gi '_GITSTATUS_LOCK_FD_POWERLEVEL9K=lock_fd'
+(anon):20> [[ netbsd == cygwin* ]]
+(anon):41> sysopen -r -o cloexec -u resp_fd /proc/self/fd/13
+(anon):44> typeset -gi 'GITSTATUS_DAEMON_PID_POWERLEVEL9K=22535'
+(anon):46> [[ 16 == <1-> ]]
+(anon):47> typeset -gi '_GITSTATUS_RESP_FD_POWERLEVEL9K=resp_fd'
+(anon):48> typeset -gi '_GITSTATUS_STATE_POWERLEVEL9K=1'
+(anon):51> (( ! async ))
+(anon):52> (( _GITSTATUS_CLIENT_PID_POWERLEVEL9K == sysparams[pid] ))
+(anon):54> local pgid
+(anon):55> (( 0 < 20 ))
+(anon):56> [[ -t 16 ]]
+(anon):57> sysread -s 20 -t 10.0000000000 -i 16 'pgid[$#pgid+1]'
+(anon):57> return
System information:
zsh: 5.9
uname -a: NetBSD sdf 9.3 NetBSD 9.3 (GENERIC) #0: Thu Aug 4 15:30:37 UTC 2022 [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC amd64
If you need help, open an issue and attach this whole error message to it:
https://github.com/romkatv/gitstatus/issues/new
> zsystem
zsystem: not enough arguments
> cat /proc/version
NetBSD version 9.3 (netbsd@localhost) (gcc version 7.5.0) NetBSD 9.3 (GENERIC) #0: Thu Aug 4 15:30:37 UTC 2022
~ GITSTATUS_LOG_LEVEL=DEBUG
That looks odd. Does this happen every time you log in?
Yes.
On Thu, Nov 16, 2023, 06:59 Roman Perepelitsa @.***> wrote:
That looks odd. Does this happen every time you log in?
— Reply to this email directly, view it on GitHub https://github.com/romkatv/gitstatus/issues/412#issuecomment-1814305984, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABD34UJW5I6L4RI4SDNQM3YEX5ZDAVCNFSM6AAAAAA7M2F5XGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUGMYDKOJYGQ . You are receiving this because you authored the thread.Message ID: @.***>
Does it fail fast or after approximately 10 seconds?
About a second
On Thu, Nov 16, 2023, 07:30 Roman Perepelitsa @.***> wrote:
Does it fail fast or after approximately 10 seconds?
— Reply to this email directly, view it on GitHub https://github.com/romkatv/gitstatus/issues/412#issuecomment-1814350083, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABD34VBUWKI5MOZ7IF2LC3YEYBOTAVCNFSM6AAAAAA7M2F5XGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUGM2TAMBYGM . You are receiving this because you authored the thread.Message ID: @.***>
This is very strange. It looks as if zsh forks and then the child dies immediately.
If you don't need git status in your prompt on that machine, you can comment out "vcs" in ~/.p10k.zsh
. This will avoid the use of gitstatusd although given the forking prompt you might still have a broken shell afterwards.