nvbn / thefuck

Magnificent app which corrects your previous console command.
MIT License
84.95k stars 3.43k forks source link

time-out exception seems triggered by a correct command #1360

Open xzcxzcyy opened 1 year ago

xzcxzcyy commented 1 year ago

The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release):

The Fuck 3.32 using Python 3.10.9 and ZSH 5.9

Your system (Debian 7, ArchLinux, Windows, etc.):

ArchLinux

How to reproduce the bug:

The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

DEBUG: Run with settings: {'alter_history': True,
 'debug': True,
 'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'},
 'exclude_rules': [],
 'excluded_search_path_prefixes': [],
 'history_limit': None,
 'instant_mode': False,
 'no_colors': False,
 'num_close_matches': 3,
 'priority': {},
 'repeat': False,
 'require_confirmation': True,
 'rules': [<const: All rules enabled>],
 'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'],
 'user_dir': PosixPath('/home/xzcxzcyy/.config/thefuck'),
 'wait_command': 3,
 'wait_slow_command': 15}
DEBUG: Call: yay -Syu; with env: {'COLORFGBG': '15;0', 'COLORTERM': 'truecolor', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'DEBUGINFOD_URLS': 'https://debuginfod.archlinux.org', 'DESKTOP_SESSION': 'plasma', 'DISPLAY': ':0', 'GTK2_RC_FILES': '/etc/gtk-2.0/gtkrc:/home/xzcxzcyy/.gtkrc-2.0:/home/xzcxzcyy/.config/gtkrc-2.0', 'GTK_IM_MODULE': 'fcitx', 'GTK_MODULES': 'canberra-gtk-module', 'GTK_RC_FILES': '/etc/gtk/gtkrc:/home/xzcxzcyy/.gtkrc:/home/xzcxzcyy/.config/gtkrc', 'HOME': '/home/xzcxzcyy', 'INVOCATION_ID': '5dac73a8b385465da6ee4f5ee6af5103', 'JOURNAL_STREAM': '8:24935', 'KDE_APPLICATIONS_AS_SCOPE': '1', 'KDE_FULL_SESSION': 'true', 'KDE_SESSION_UID': '1000', 'KDE_SESSION_VERSION': '5', 'KONSOLE_DBUS_SERVICE': ':1.49', 'KONSOLE_DBUS_SESSION': '/Sessions/2', 'KONSOLE_VERSION': '221202', 'LANG': 'C', 'LANGUAGE': 'zh_CN:en_US', 'LOGNAME': 'xzcxzcyy', 'MAIL': '/var/spool/mail/xzcxzcyy', 'MANAGERPID': '973', 'MOTD_SHOWN': 'pam', 'OLDPWD': '/home/xzcxzcyy', 'PAM_KWALLET5_LOGIN': '/run/user/1000/kwallet5.socket', 'PATH': '/opt/miniconda/condabin:/home/xzcxzcyy/development/flutter/bin:/home/xzcxzcyy/.pyenv/shims:/home/xzcxzcyy/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/xzcxzcyy/development/flutter/.pub-cache/bin:/home/xzcxzcyy/cs_pro/course/os/riskv-toolchains/bin', 'PROFILEHOME': '', 'PWD': '/home/xzcxzcyy', 'PYENV_ROOT': '/home/xzcxzcyy/.pyenv', 'QT_AUTO_SCREEN_SCALE_FACTOR': '0', 'QT_IM_MODULE': 'fcitx', 'QT_SCREEN_SCALE_FACTORS': 'eDP1=1.5;DP1=1.5;DP2=1.5;DP3=1.5;VIRTUAL1=1.5;', 'SESSION_MANAGER': 'local/banson-pc:@/tmp/.ICE-unix/1110,unix/banson-pc:/tmp/.ICE-unix/1110', 'SHELL': '/usr/bin/zsh', 'SHELL_SESSION_ID': 'c4d11e12ed664fa19ae06964323e3f5f', 'SHLVL': '1', 'SYSTEMD_EXEC_PID': '1377', 'TERM': 'xterm-256color', 'USER': 'xzcxzcyy', 'WINDOWID': '54525965', 'XAUTHORITY': '/home/xzcxzcyy/.Xauthority', 'XCURSOR_SIZE': '24', 'XCURSOR_THEME': 'breeze_cursors', 'XDG_CONFIG_DIRS': '/home/xzcxzcyy/.config/kdedefaults:/etc/xdg', 'XDG_CURRENT_DESKTOP': 'KDE', 'XDG_RUNTIME_DIR': '/run/user/1000', 'XDG_SEAT': 'seat0', 'XDG_SEAT_PATH': '/org/freedesktop/DisplayManager/Seat0', 'XDG_SESSION_CLASS': 'user', 'XDG_SESSION_DESKTOP': 'KDE', 'XDG_SESSION_ID': '2', 'XDG_SESSION_PATH': '/org/freedesktop/DisplayManager/Session1', 'XDG_SESSION_TYPE': 'x11', 'XDG_VTNR': '1', 'XMODIFIERS': '@im=fcitx', '_': '/usr/bin/thefuck', 'P9K_TTY': 'old', '_P9K_TTY': '/dev/pts/1', 'ZSH': '/home/xzcxzcyy/.oh-my-zsh', 'PAGER': 'less', 'LESS': '-R', 'LSCOLORS': 'Gxfxcxdxbxegedabagacad', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:', 'PYENV_SHELL': 'zsh', 'ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE': 'fg=gray', 'P9K_SSH': '0', 'RISCV': '/home/xzcxzcyy/cs_pro/course/os/riskv-toolchains', 'PUB_HOSTED_URL': 'https://pub.flutter-io.cn', 'FLUTTER_STORAGE_BASE_URL': 'https://storage.flutter-io.cn', 'CONDA_EXE': '/opt/miniconda/bin/conda', '_CE_M': '', '_CE_CONDA': '', 'CONDA_PYTHON_EXE': '/opt/miniconda/bin/python', 'CONDA_SHLVL': '0', 'TF_SHELL': 'zsh', 'TF_ALIAS': 'fuck', 'TF_SHELL_ALIASES': '-=\'cd -\'\n...=../..\n....=../../..\n.....=../../../..\n......=../../../../..\n1=\'cd -1\'\n2=\'cd -2\'\n3=\'cd -3\'\n4=\'cd -4\'\n5=\'cd -5\'\n6=\'cd -6\'\n7=\'cd -7\'\n8=\'cd -8\'\n9=\'cd -9\'\n_=\'sudo \'\nadb-icebox=\'adb shell sh /data/user_de/0/moe.shizuku.privileged.api/start.sh\'\nafind=\'ack -il\'\ncodeit=\'code ./\'\ndfq=\'sudo systemctl stop clash@xzcxzcyy\'\ndiff=\'diff --color\'\negrep=\'egrep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}\'\nfgrep=\'fgrep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}\'\nfq=\'sudo systemctl start clash@xzcxzcyy\'\ng=git\nga=\'git add\'\ngaa=\'git add --all\'\ngam=\'git am\'\ngama=\'git am --abort\'\ngamc=\'git am --continue\'\ngams=\'git am --skip\'\ngamscp=\'git am --show-current-patch\'\ngap=\'git apply\'\ngapa=\'git add --patch\'\ngapt=\'git apply --3way\'\ngau=\'git add --update\'\ngav=\'git add --verbose\'\ngb=\'git branch\'\ngbD=\'git branch -D\'\ngba=\'git branch -a\'\ngbd=\'git branch -d\'\ngbda=\'git branch --no-color --merged | command grep -vE "^([+*]|\\s*($(git_main_branch)|$(git_develop_branch))\\s*$)" | command xargs git branch -d 2>/dev/null\'\ngbl=\'git blame -b -w\'\ngbnm=\'git branch --no-merged\'\ngbr=\'git branch --remote\'\ngbs=\'git bisect\'\ngbsb=\'git bisect bad\'\ngbsg=\'git bisect good\'\ngbsr=\'git bisect reset\'\ngbss=\'git bisect start\'\ngc=\'git commit -v\'\n\'gc!\'=\'git commit -v --amend\'\ngca=\'git commit -v -a\'\n\'gca!\'=\'git commit -v -a --amend\'\ngcam=\'git commit -a -m\'\n\'gcan!\'=\'git commit -v -a --no-edit --amend\'\n\'gcans!\'=\'git commit -v -a -s --no-edit --amend\'\ngcas=\'git commit -a -s\'\ngcasm=\'git commit -a -s -m\'\ngcb=\'git checkout -b\'\ngcd=\'git checkout $(git_develop_branch)\'\ngcf=\'git config --list\'\ngcl=\'git clone --recurse-submodules\'\ngclean=\'git clean -id\'\ngcm=\'git checkout $(git_main_branch)\'\ngcmsg=\'git commit -m\'\n\'gcn!\'=\'git commit -v --no-edit --amend\'\ngco=\'git checkout\'\ngcor=\'git checkout --recurse-submodules\'\ngcount=\'git shortlog -sn\'\ngcp=\'git cherry-pick\'\ngcpa=\'git cherry-pick --abort\'\ngcpc=\'git cherry-pick --continue\'\ngcs=\'git commit -S\'\ngcsm=\'git commit -s -m\'\ngcss=\'git commit -S -s\'\ngcssm=\'git commit -S -s -m\'\ngd=\'git diff\'\ngdca=\'git diff --cached\'\ngdct=\'git describe --tags $(git rev-list --tags --max-count=1)\'\ngdcw=\'git diff --cached --word-diff\'\ngdfq=\'git config --global --unset http.proxy\'\ngds=\'git diff --staged\'\ngdt=\'git diff-tree --no-commit-id --name-only -r\'\ngdup=\'git diff @{upstream}\'\ngdw=\'git diff --word-diff\'\ngf=\'git fetch\'\ngfa=\'git fetch --all --prune --jobs=10\'\ngfg=\'git ls-files | grep\'\ngfo=\'git fetch origin\'\ngfq=\'git config --global http.proxy http://127.0.0.1:7890\'\ngg=\'git gui citool\'\ngga=\'git gui citool --amend\'\nggpull=\'git pull origin "$(git_current_branch)"\'\nggpur=ggu\nggpush=\'git push origin "$(git_current_branch)"\'\nggsup=\'git branch --set-upstream-to=origin/$(git_current_branch)\'\nghh=\'git help\'\ngignore=\'git update-index --assume-unchanged\'\ngignored=\'git ls-files -v | grep "^[[:lower:]]"\'\ngit-svn-dcommit-push=\'git svn dcommit && git push github $(git_main_branch):svntrunk\'\ngitaa=\'git add -A\'\ngitc=\'git commit\'\ngitd=\'git diff\'\ngits=\'git status\'\ngk=\'\\gitk --all --branches &!\'\ngke=\'\\gitk --all $(git log -g --pretty=%h) &!\'\ngl=\'git pull\'\nglg=\'git log --stat\'\nglgg=\'git log --graph\'\nglgga=\'git log --graph --decorate --all\'\nglgm=\'git log --graph --max-count=10\'\nglgp=\'git log --stat -p\'\nglo=\'git log --oneline --decorate\'\ngloburl=\'noglob urlglobber \'\nglod=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset\'\\\'\nglods=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset\'\\\'\' --date=short\'\nglog=\'git log --oneline --decorate --graph\'\ngloga=\'git log --oneline --decorate --graph --all\'\nglol=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\'\\\'\nglola=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\'\\\'\' --all\'\nglols=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\'\\\'\' --stat\'\nglp=_git_log_prettily\nglum=\'git pull upstream $(git_main_branch)\'\ngm=\'git merge\'\ngma=\'git merge --abort\'\ngmom=\'git merge origin/$(git_main_branch)\'\ngmtl=\'git mergetool --no-prompt\'\ngmtlvim=\'git mergetool --no-prompt --tool=vimdiff\'\ngmum=\'git merge upstream/$(git_main_branch)\'\ngp=\'git push\'\ngpd=\'git push --dry-run\'\ngpf=\'git push --force-with-lease\'\n\'gpf!\'=\'git push --force\'\ngpoat=\'git push origin --all && git push origin --tags\'\ngpr=\'git pull --rebase\'\ngpristine=\'git reset --hard && git clean -dffx\'\ngpsup=\'git push --set-upstream origin $(git_current_branch)\'\ngpu=\'git push upstream\'\ngpv=\'git push -v\'\ngr=\'git remote\'\ngra=\'git remote add\'\ngrb=\'git rebase\'\ngrba=\'git rebase --abort\'\ngrbc=\'git rebase --continue\'\ngrbd=\'git rebase $(git_develop_branch)\'\ngrbi=\'git rebase -i\'\ngrbm=\'git rebase $(git_main_branch)\'\ngrbo=\'git rebase --onto\'\ngrbom=\'git rebase origin/$(git_main_branch)\'\ngrbs=\'git rebase --skip\'\ngrep=\'grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}\'\ngrev=\'git revert\'\ngrh=\'git reset\'\ngrhh=\'git reset --hard\'\ngrm=\'git rm\'\ngrmc=\'git rm --cached\'\ngrmv=\'git remote rename\'\ngroh=\'git reset origin/$(git_current_branch) --hard\'\ngrrm=\'git remote remove\'\ngrs=\'git restore\'\ngrset=\'git remote set-url\'\ngrss=\'git restore --source\'\ngrst=\'git restore --staged\'\ngrt=\'cd "$(git rev-parse --show-toplevel || echo .)"\'\ngru=\'git reset --\'\ngrup=\'git remote update\'\ngrv=\'git remote -v\'\ngsb=\'git status -sb\'\ngsd=\'git svn dcommit\'\ngsh=\'git show\'\ngsi=\'git submodule init\'\ngsps=\'git show --pretty=short --show-signature\'\ngsr=\'git svn rebase\'\ngss=\'git status -s\'\ngst=\'git status\'\ngsta=\'git stash push\'\ngstaa=\'git stash apply\'\ngstall=\'git stash --all\'\ngstc=\'git stash clear\'\ngstd=\'git stash drop\'\ngstl=\'git stash list\'\ngstp=\'git stash pop\'\ngsts=\'git stash show --text\'\ngstu=\'gsta --include-untracked\'\ngsu=\'git submodule update\'\ngsw=\'git switch\'\ngswc=\'git switch -c\'\ngswd=\'git switch $(git_develop_branch)\'\ngswm=\'git switch $(git_main_branch)\'\ngtl=\'gtl(){ git tag --sort=-v:refname -n -l "${1}*" }; noglob gtl\'\ngts=\'git tag -s\'\ngtv=\'git tag | sort -V\'\ngunignore=\'git update-index --no-assume-unchanged\'\ngunwip=\'git log -n 1 | grep -q -c "\\-\\-wip\\-\\-" && git reset HEAD~1\'\ngup=\'git pull --rebase\'\ngupa=\'git pull --rebase --autostash\'\ngupav=\'git pull --rebase --autostash -v\'\ngupom=\'git pull --rebase origin $(git_main_branch)\'\ngupomi=\'git pull --rebase=interactive origin $(git_main_branch)\'\ngupv=\'git pull --rebase -v\'\ngwch=\'git whatchanged -p --abbrev-commit --pretty=medium\'\ngwip=\'git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign -m "--wip-- [skip ci]"\'\nhistory=omz_history\nl=\'ls -lah\'\nla=\'ls -lAh\'\nll=\'ls -lh\'\nls=\'ls --color=tty\'\nlsa=\'ls -lah\'\nmd=\'mkdir -p\'\nrd=rmdir\nrun-help=man\nsvim=\'sudo vim\'\ntfq=\'export http_proxy=\'\\\'\'http://localhost:1080\'\\\'\ntranslate=\'trans :zh -I -b\'\nvim=nvim\nwhich-command=whence\nzshconfig=\'nvim ~/.zshrc\'', 'PYTHONIOENCODING': 'utf-8', 'THEFUCK_DEBUG': 'true', 'TF_HISTORY': 'fuck\npacman -Syu\nfuck\nyay -Syu\nfuck\nexport THEFUCK_DEBUG=true \nfuck\nyay -Syu\nfuck > /tmp/thefuck.log.txt\nyay -Syu', 'LC_ALL': 'C', 'GIT_TRACE': '1'}; is slow: False took: 0:00:03.048200
DEBUG: Total took: 0:00:03.088780
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/thefuck/output_readers/rerun.py", line 36, in _wait_output
    proc.wait(settings.wait_slow_command if is_slow
  File "/usr/lib/python3.10/site-packages/psutil/__init__.py", line 1265, in wait
    self._exitcode = self._proc.wait(timeout)
  File "/usr/lib/python3.10/site-packages/psutil/_pslinux.py", line 1645, in wrapper
    return fun(self, *args, **kwargs)
  File "/usr/lib/python3.10/site-packages/psutil/_pslinux.py", line 1851, in wait
    return _psposix.wait_pid(self.pid, timeout, self._name)
  File "/usr/lib/python3.10/site-packages/psutil/_psposix.py", line 137, in wait_pid
    interval = sleep(interval)
  File "/usr/lib/python3.10/site-packages/psutil/_psposix.py", line 114, in sleep
    raise TimeoutExpired(timeout, pid=pid, name=proc_name)
psutil.TimeoutExpired: timeout after 3 seconds (pid=8077)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/psutil/__init__.py", line 1180, in _send_signal
    os.kill(self.pid, sig)
PermissionError: [Errno 1] Operation not permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/thefuck/output_readers/rerun.py", line 18, in _kill_process
    proc.kill()
  File "/usr/lib/python3.10/site-packages/psutil/__init__.py", line 278, in wrapper
    return fun(self, *args, **kwargs)
  File "/usr/lib/python3.10/site-packages/psutil/__init__.py", line 1243, in kill
    self._send_signal(signal.SIGKILL)
  File "/usr/lib/python3.10/site-packages/psutil/__init__.py", line 1190, in _send_signal
    raise AccessDenied(self.pid, self._name)
psutil.AccessDenied: (pid=8085)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/psutil/_pslinux.py", line 1746, in exe
    return readlink("%s/%s/exe" % (self._procfs_path, self.pid))
  File "/usr/lib/python3.10/site-packages/psutil/_pslinux.py", line 210, in readlink
    path = os.readlink(path)
PermissionError: [Errno 13] Permission denied: '/proc/8085/exe'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/thefuck", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.10/site-packages/thefuck/entrypoints/main.py", line 31, in main
    fix_command(known_args)
  File "/usr/lib/python3.10/site-packages/thefuck/entrypoints/fix_command.py", line 37, in fix_command
    command = types.Command.from_raw_script(raw_command)
  File "/usr/lib/python3.10/site-packages/thefuck/types.py", line 82, in from_raw_script
    output = get_output(script, expanded)
  File "/usr/lib/python3.10/site-packages/thefuck/output_readers/__init__.py", line 20, in get_output
    return rerun.get_output(script, expanded)
  File "/usr/lib/python3.10/site-packages/thefuck/output_readers/rerun.py", line 66, in get_output
    if _wait_output(result, is_slow):
  File "/usr/lib/python3.10/site-packages/thefuck/output_readers/rerun.py", line 41, in _wait_output
    _kill_process(child)
  File "/usr/lib/python3.10/site-packages/thefuck/output_readers/rerun.py", line 21, in _kill_process
    proc.pid, proc.exe()))
  File "/usr/lib/python3.10/site-packages/psutil/__init__.py", line 666, in exe
    return guess_it(fallback=err)
  File "/usr/lib/python3.10/site-packages/psutil/__init__.py", line 659, in guess_it
    raise fallback
  File "/usr/lib/python3.10/site-packages/psutil/__init__.py", line 664, in exe
    exe = self._proc.exe()
  File "/usr/lib/python3.10/site-packages/psutil/_pslinux.py", line 1759, in exe
    raise AccessDenied(self.pid, self._name)
psutil.AccessDenied: (pid=8085)