romkatv / gitstatus

Git status for Bash and Zsh prompt
GNU General Public License v3.0
1.65k stars 101 forks source link

iSH App issue #413

Closed devicemanager closed 5 months ago

devicemanager commented 7 months ago

Trying out powerlevel10k gives the following issues in iSH App (https://apps.apple.com/no/app/ish-shell/id1436902243):

[ERROR]: gitstatus failed to initialize.

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

+(anon):7> setopt monitor
+(anon):9> ((  ! _GITSTATUS_STATE_POWERLEVEL9K  ))
+(anon):10> [[ -r /proc/version && 'Linux version 4.20.69-ish SUPER AWESOME May 20 2023 23:41:32' == *Microsoft* ]]
+(anon):13> print -rn
+(anon):14> zsystem flock -f lock_fd /tmp/gitstatus.POWERLEVEL9K.0.4061.1700630824.1.lock
+(anon):15> [[ 15 == <1-> ]]
+(anon):18> typeset -gi '_GITSTATUS_LOCK_FD_POWERLEVEL9K=lock_fd'
+(anon):20> [[ linux-musl == cygwin* ]]
+(anon):41> sysopen -r -o cloexec -u resp_fd /proc/self/fd/14
(anon):sysopen:41: can't open file /proc/self/fd/14: no such file or directory
+(anon):41> return
+(anon):41> _gitstatus_daemon_p9k_
+_gitstatus_daemon_p9k_:1> local -i pipe_fd

Daemon log (/tmp/gitstatus.POWERLEVEL9K.0.4061.1700630824.1.daemon.log):

+_gitstatus_daemon_p9k_:3> local pgid=4087
+_gitstatus_daemon_p9k_:4> [[ 4087 == <1-> ]]
+_gitstatus_daemon_p9k_:5> cd -q /
+_gitstatus_daemon_p9k_:9> trap '' PIPE
+_gitstatus_daemon_p9k_:11> local uname_sm
+_gitstatus_daemon_p9k_:90> ((  lock_fd == -1  ))
+_gitstatus_daemon_p9k_:93> zsystem flock -- /tmp/gitstatus.POWERLEVEL9K.0.4061.1700630824.1.lock
_gitstatus_daemon_p9k_:zsystem:93: failed to open /tmp/gitstatus.POWERLEVEL9K.0.4061.1700630824.1.lock for writing: no such file or directory
+_gitstatus_daemon_p9k_:12> uname_sm=+_gitstatus_daemon_p9k_:12> uname -sm

System information: zsh: 5.8.1 uname -a: Linux localhost 4.20.69-ish SUPER AWESOME May 20 2023 23:41:32 i686 Linux

If you need help, open an issue and attach this whole error message to it:

https://github.com/romkatv/gitstatus/issues/new

_p9k_worker_start:sysopen:12: can't open file /proc/self/fd/11: no such file or directory prompt_vcs:17: vcs_info: function definition file not found ❯

romkatv commented 7 months ago

https://github.com/romkatv/gitstatus/issues?q=ish

tl;dr: bug in iSH: ish-app/ish#783