Open Tobbe opened 1 month ago
npx @arethetypeswrong/cli -P -f json | jq doesn't work I get jq: parse error: Unfinished string at EOF at line 1, column 98304
npx @arethetypeswrong/cli -P -f json | jq
jq: parse error: Unfinished string at EOF at line 1, column 98304
Redirecting the output to a file, and then reading that file with jq does work however.
I think I see something similar when I try to tee the output:
As you can see the terminal output ends unexpectedly. (But the file I teed to (attw.json) has the complete output and can be parsed by jq)
attw.json
So it seems something weird happens with the output when it's piped to another command
npx @arethetypeswrong/cli -P -f json | jq
doesn't work I getjq: parse error: Unfinished string at EOF at line 1, column 98304
Redirecting the output to a file, and then reading that file with jq does work however.
I think I see something similar when I try to tee the output:
![image](https://github.com/user-attachments/assets/c8dc0676-ae5a-4e5a-9c1c-73157c008a5b)
As you can see the terminal output ends unexpectedly. (But the file I teed to (
attw.json
) has the complete output and can be parsed by jq)So it seems something weird happens with the output when it's piped to another command