Skip to content

v0.13 broke pretty-print view when content is piped #1621

@heiwen

Description

@heiwen

lnav version
v0.13.0 and above

Describe the bug
When I pipe NDJSON produced by pino using cat out.json | lnav -, the pretty mode breaks with the following error:

│{"level":30,"time":1770445728003,"pid":97579,"hostname":"Heinrichs-MacBook-Air.local","requestI│
│parse error: trailing garbage                                                                  │
│          gateway] request completed"} {"level":30,"time":177044572800                         │
│                     (right here) ------^  

Pointing lnav directly at the file with lnav out.json works like a charm.

The latest working version that I could find is 0.12.2.

Sample file attached: out.json

OS: Darwin 25.2.0 arm64 arm
Shell: zsh 5.9 (arm64-apple-darwin25.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions