Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

piping from xonfig is not working #5150

Closed
AsafMah opened this issue May 31, 2023 · 1 comment
Closed

piping from xonfig is not working #5150

AsafMah opened this issue May 31, 2023 · 1 comment

Comments

@AsafMah
Copy link

AsafMah commented May 31, 2023

xonfig

$ xonfig
+------------------+------------------------------+
| xonsh            | 0.13.4                       |
| Git SHA          | 85e85edc                     |
| Commit Date      | Dec 8 14:22:27 2022          |
| Python           | 3.11.0                       |
| PLY              | 3.11                         |
| have readline    | True                         |
| prompt toolkit   | 3.0.38                       |
| shell type       | prompt_toolkit               |
| history backend  | json                         |
| pygments         | 2.14.0                       |
| on posix         | False                        |
| on linux         | False                        |
| on darwin        | False                        |
| on windows       | True                         |
| on cygwin        | False                        |
| on msys2         | False                        |
| is superuser     | False                        |
| default encoding | utf-8                        |
| xonsh encoding   | utf-8                        |
| encoding errors  | surrogateescape              |
| xontrib 1        | commands                     |
| RC file 1        | C:\Users\<redacted>/.xonshrc |
+------------------+------------------------------+

Expected Behavior

xonfig info -j | jq . should finish pretty much immedietly.

Current Behavior

error

It hangs forever.

Weirdly enough:

 xonfig info -j > f

Does work fine

Here it is with the debug flag:

xonfig info -j | jq .
<stdin>:1:7 - xonfig info -j | jq .
<stdin>:1:7 + ![xonfig info -j | jq .]

(Get's stuck there)

Steps to Reproduce

  1. Xonsh windows (emptied my xonshrc file to be sure it's nothing else)
  2. get jq
  3. run the command xonfig info -j | jq .

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

@anki-code anki-code changed the title Piped command windows hangs forever xonfig command hangs forever May 31, 2023
@anki-code anki-code changed the title xonfig command hangs forever piping from xonfig is not working May 31, 2023
@xonsh xonsh deleted a comment from guraltsev Apr 2, 2024
@xonsh xonsh deleted a comment from guraltsev Apr 2, 2024
@anki-code
Copy link
Member

Closed with the reference to #5317 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants