Andy Kipp

Results 168 issues of Andy Kipp

From https://results.pre-commit.ci/run/github/471969357/1720041589.abHns_7JRguzMEFrN9AjWQ: ```xsh tests/test_xonfig.py:36:89: E501 Line too long (94 > 88) tests/test_xonfig.py:41:9: SIM102 Use a single `if` statement instead of nested `if` statements tests/test_xonfig.py:67:9: RUF100 [*] Unused blanket `noqa` directive...

good first issue

```xsh echo $123 # Unexpected token: TokenInfo(type=55 (OP), string='$123', start=(1, 7), end=(1, 11), line='![echo $123]\n') showcmd echo $123 # ['echo', "Unexpected token: TokenInfo(type=55 (OP), string='$123', start=(1, 15), end=(1, 19), line='![showcmd...

good first issue
v1
error-handling

### Motivation In #5631 we found that during execution of callable alias we have [double open](https://github.com/xonsh/xonsh/issues/5631#issuecomment-2252347565) of stdout and stderr descriptors and this produces the [exceptions](https://github.com/xonsh/xonsh/issues/5631#issue-2429860610) in core code or...

needs-discussion
threading
need-more-info

### Motivation Windows has slow IO operation on is_file check. So this PR is to reduce running is_file two times. ## For community ⬇️ **Please click the 👍 reaction instead...

### How it looks for a user The exceptions below are not the root of the issue. It's just consequences of closing the descriptor somewhere in upstream or in parallel...

help wanted
threading
priority-high
v1
aliases-callable

Two ways for reproduce: ```xsh $XONSH_SHOW_TRACEBACK = True @aliases.register def _e(): echo -n O echo -n E 1>2 execx("echo -n O") execx("echo -n E 1>2") print("o") print("O", file=o) print("E", file=e)...

threading
edge-case
aliases-callable

Working on https://github.com/xonsh/xonsh/issues/5631 ## For community ⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍 comment**

```xsh $XONSH_SHOW_TRACEBACK = True @aliases.register def _e(): echo -n O echo -n E 1>2 $[e 1>2] ``` Exception: ```xsh Traceback (most recent call last): File "", line 1, in File...

threading
priority-high
v1
aliases-callable

This is working as expected: ```xsh $XONSH_SHOW_TRACEBACK = True @aliases.register def _e(a,i,o,e): print('O', file=o) print('E', file=e) !(e 1>2) # redirect stdout to stderr # output='', # errors='O\nE\n' ``` But: ```xsh...

threading
priority-high
v1
aliases-callable

Hi! xonsh is a giant snail in small conch! I found that xonsh compiles scripts and save it to the `~/.local/share/xonsh/xonsh_script_cache` directory. But xonsh does not compile `.xsh` xontribs unlike...

xontrib
speed
priority-high
v1