You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
open Cargo.toml | to-json | jq . hangs forever #928
Describe the bug
When using jq as external program, it fails to read the provided json from stdin and thus waits forever. CTRL+C has to be used to abort it.
When looking into the open files of the running jq process I noticed that its standard input was connected to the TTY, not the nu process producing the data.
To Reproduce (within nushell)
cd nushell (the nushell repository)
open Cargo.toml | to-json | jq .
When executing open Cargo.toml | to-json it shows a JSON string as expected and awaits further user input.
Expected behavior jq reads the JSON encoded string produced by to-json and outputs it with white space and colors. When done, the whole pipeline finishes and nu awaits further input.
Configuration:
OS: MacOS 10.15
Version 0.5.0 (compiled from source with default features)
Activity
[-]`open Cargo.toml | to-json | jq .` hangs forver[/-][+]`open Cargo.toml | to-json | jq .` hangs forever[/+]fix find tests (nushell#928)
fix find tests (#928)