-
-
Notifications
You must be signed in to change notification settings - Fork 376
Description
lnav version
Due to the nature of the minor issue, have tested and compared behavior between and old version and current :
$ lnav --version
lnav 0.13.0-rc5-1-g61c3cd4-dirty
$ lnav --version
lnav 0.14.0-beta2-9-ga056757-dirty
Made this report a "bug" instead of a "enhancement", although what's described below may be the way it was supposed to, it may be a little usability improvement if behavior was like in the old "lnav" days.
Describe the bug
With current "lnav" , when opening a log file which goes through a "converter", even if the result of the conversion is a LOG file, the TUI keeps showing the TEXT view instead, even if it gives instructions on what to do next.
This is a change in behavior, as in older "lnav" the TUI would automatically drop to the LOG view when the single file as input was eventually detected as LOG post "converter" completed.
To Reproduce
Same input file results in two slightly different behaviors depending on "lnav" version. Using same input file in both, for a custom log file format which goes through a "converted" in the format definition file before "lnav" has the chance to load up the real contents.
Old lnav :
$ lnav --version
lnav 0.13.0-rc5-1-g61c3cd4-dirty
While the "converter" is running, the following is shown in the TUI :
2026-02-24T10:12:11 EST
LOG ▼ :
ⓘ info: Only text files are currently loaded, they have not been detected as log files
= note: Check the Files panel below to get more details on why the files are treated as text
= help: Press 't' to switch to the TEXT view
When the file completes loading, as the output of the converter matches the log file definition, it is determined as LOG and the logs are shown in the interface without any further user interaction.
However, with current "lnav" :
$ lnav --version
lnav 0.14.0-beta2-9-ga056757-dirty
TUI first shows this while file is being converted :
2026-02-24T10:15:54 EST
TEXT ▼ :input-file.log :
ⓘ info: File is empty, content will be shown when added
When the converted file is finally loaded up, the TUI shows this :
2026-02-24T10:18:27 EST
TEXT ▼ :
info: All loaded files have been detected as logs, there are no plain text files
= help: Press 'q' to exit this view
So "lnav" properly sees the input is a LOG, and notices there is only a single input file, yet it asks the user to press "q" to "exit this view", when doing so, TUI switches away from TEXT to LOG and things are good.