con-f-use / xontrib-histcpy

Useful aliases and shortcuts for extracting links and text from command output history in xonsh
https://pypi.org/project/xontrib-histcpy/
GNU General Public License v3.0
4 stars 3 forks source link

IndexError: list index out of range #11

Open anki-code opened 4 years ago

anki-code commented 4 years ago
$ pip install git+github.com/xonsh/xonsh # https://github.com/xonsh/xonsh/commit/53bfe8c99ce3c8d4396fe7c2741b19fd6555af12
$ xonsh -V
xonsh/0.9.17   
$ xonsh --no-rc
$ xontrib load histcpy
$ getout                                                                                           
xonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE = <filename>
Traceback (most recent call last):
  File "/home/pc/miniconda3/lib/python3.7/site-packages/xonsh/proc.py", line 1439, in run
    r = self.f(self.args, sp_stdin, sp_stdout, sp_stderr, spec, spec.stack)
  File "/home/pc/miniconda3/lib/python3.7/site-packages/xonsh/proc.py", line 1238, in proxy_three
    return f(args, stdin, stdout)
  File "/home/pc/miniconda3/lib/python3.7/site-packages/xontrib/histcpy.py", line 130, in _getouts
    out = outs[args[0]].strip()
IndexError: list index out of range