romkatv / romkatv/gitstatus

[ERROR]: gitstatus failed to initialize.

Open
#451 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.8k
Forks
134
Avg merge
2d 18h
Merged PRs (30d)
1

Description

[ERROR]: gitstatus failed to initialize.

Zsh log (/tmp/gitstatus.POWERLEVEL9K.1000.127.1733237584.1.xtrace.log):

+(anon):7> setopt monitor
+(anon):9> ((  ! _GITSTATUS_STATE_POWERLEVEL9K  ))
+(anon):51> ((  ! async  ))
+(anon):52> ((  _GITSTATUS_CLIENT_PID_POWERLEVEL9K == sysparams[pid]  ))
+(anon):54> local pgid
+(anon):55> ((  0 < 20  ))
+(anon):56> [[ -t 20 ]]
+(anon):57> sysread -s 20 -t 10.0000000000 -i 20 'pgid[$#pgid+1]'
+(anon):55> ((  20 < 20  ))
+(anon):59> [[ '                 148' == \ #<1-> ]]
+(anon):60> typeset -gi 'GITSTATUS_DAEMON_PID_POWERLEVEL9K=pgid'
+(anon):62> sysopen -w -o cloexec -u req_fd -- /tmp/gitstatus.POWERLEVEL9K.1000.127.1733237584.1.fifo
(anon):sysopen:62: can't open file /tmp/gitstatus.POWERLEVEL9K.1000.127.1733237584.1.fifo: không có tập tin hoặc thư mục như vậy
+(anon):62> return

System information:

zsh:      5.9
uname -a: Linux ACER 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 GNU/Linux

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Zsh xtrace log at /tmp/gitstatus.POWERLEVEL9K.1000.127.1733237584.1.xtrace.log, especially the sysopen call for the missing FIFO. Reproduce the initialization failure in the reported zsh 5.9 and Linux WSL2 environment, then trace why the FIFO is absent; done means gitstatus initializes without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, git, linux, zsh
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.