Skip to content

gitstatus failed to initialize  #112

@ttonnellier

Description

@ttonnellier

First of all, thank you a lot for your work!

When I start zsh, I obtain the gitstatus failed to initiliaze error message.
However, it seems to work in a git directory.

I was not able to see a similar issue in the closed ones...
On another computer with the same version of the OS, I don't have the issue...

❯ GITSTATUS_LOG_LEVEL=DEBUG gitstatus_start POWERLEVEL9K                                                         ─╯
[ERROR]: gitstatus failed to initialize.

  Your Git prompt may disappear or become slow.

  The content of /tmp/gitstatus.POWERLEVEL9K.1000.7769.1583853567.xtrace.log (gitstatus_start xtrace):

    +(anon):7> ((  ! _GITSTATUS_STATE_POWERLEVEL9K  ))
    +(anon):8> [[ -r /proc/version && 'Linux version 4.19.0-8-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.98-1 (2020-01-26)' == *Microsoft* ]]
    +(anon):11> print -rn
    +(anon):12> zsystem flock -f lock_fd /tmp/gitstatus.POWERLEVEL9K.1000.7769.1583853567.lock
    +(anon):13> [[ 21 == <1-> ]]
    +(anon):15> typeset -gi '_GITSTATUS_LOCK_FD_POWERLEVEL9K=lock_fd'
    +(anon):18> '(anon)' /proc/self/fd/24
    +(anon):1> typeset -gi 'GITSTATUS_DAEMON_PID_POWERLEVEL9K=7939'
    +(anon):2> sysopen -r -o cloexec -u resp_fd -- /proc/self/fd/24
    +(anon):3> [[ 26 == <1-> ]]
    +(anon):4> typeset -gi '_GITSTATUS_RESP_FD_POWERLEVEL9K=resp_fd'
    +(anon):119> typeset -gi '_GITSTATUS_STATE_POWERLEVEL9K=1'
    +(anon):122> ((  ! async  ))
    +(anon):123> ((  _GITSTATUS_CLIENT_PID_POWERLEVEL9K == sysparams[pid]  ))
    +(anon):125> local pgid
    +(anon):126> ((  0 < 20  ))
    +(anon):127> [[ -t 26 ]]
    +(anon):128> sysread -s 20 -t 5.0000000000 -i 26 'pgid[$#pgid+1]'
    +(anon):128> return
                         ^ this command failed (5)

  The content of /tmp/gitstatus.POWERLEVEL9K.1000.7769.1583853567.daemon.log (gitstatus daemon log):

    +(anon):20> local pgid=7939
    +(anon):21> [[ 7939 == <1-> ]]
    +(anon):103> ((  lock_fd == -1  ))
    +(anon):25> trap '' PIPE
    +(anon):27> [[ -z '' ]]
    +(anon):28> local kernel
    +(anon):29> kernel=+(anon):29> uname -s
    +(anon):106> zsystem flock -- /tmp/gitstatus.POWERLEVEL9K.1000.7769.1583853567.lock
    +(anon):29> kernel=linux 
    +(anon):30> [[ -n linux ]]
    +(anon):33> [[ '' == /* ]]
    +(anon):35> ((  0  ))
    +(anon):37> [[ -n '' ]]
    +(anon):40> local -aU os
    +(anon):41> case linux (linux)
    +(anon):43> os=+(anon):43> uname -o
    Usage: uname [OPTION] . . .
    Print system information,  No options defaults to -s.
    
      -a   print all the information in the same order as follows below
      -s   kernel name
      -n   network node name (hostname)
      -r   kernel release
      -v   kernel version
      -m   machine hardware name
      -i   hardware platform
    
      -h   help/usage
    
    +(anon):43> os=( '' ) 
    +(anon):43> return
    +(anon):98> local -i ret=1
    +(anon):99> kill -- -7939

  Your system information:

    zsh:      5.7.1
    uname -a: Linux aberlour 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 x86_64

Thank you for your help,

Best,
Thibaud

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions