`harper-cli lint` (and probably `just lint`) can produce mangled interleaved output from multiple threads.
Describe the bug
If you run harper-cli lint over multiple directories (possibly only multiple files?), different dirs or files can be processed in parallel on different threads, but they print to stdout at the same time, resulting in mangled output.
To Reproduce Steps to reproduce the behavior:
cargo run --release --manifest-path harper/Cargo.toml -p harper-cli -- lint --quiet --format default --only PassiveVoice ~/harper/harper-core/tests/text |& less -R
Note that in this case I was testing a new linter from a new PR.
Expected behaviour A clear and concise description of what you expected to happen.
Screenshots
I'm guessing there's probably a quick fix and a proper fix.
The quick fix is to put the parallel processing behind a switch.
The proper fix would be to figure out how to do the linting in parallel but without each thread's output stomping on the output of other threads.
Maybe an intermediate fix would be having an output mode that does the linting in parallel but without the live lint updates and only the summary at the end, and turning off parallel in the detailed output modes.
An ultimate fix might be to contribute a separate app using harper-core with a Tauri cross-platform user interface that can lint whole directories of files with a nice navigable GUI.
Source: Automattic/harper