Skip to content

[progress] add support for polling the ProgressListener with a timeout#14

Merged
ttiimm merged 3 commits into
ttiimm:mainfrom
tstack:proglistentimeout
Sep 24, 2025
Merged

[progress] add support for polling the ProgressListener with a timeout#14
ttiimm merged 3 commits into
ttiimm:mainfrom
tstack:proglistentimeout

Conversation

@tstack

@tstack tstack commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

There's a thread in lnav that needs to poll for
progress and can't block waiting for an update.

There's a thread in lnav that needs to poll for
progress and can't block waiting for an update.
If multiple regexes match a message, we should prefer
the one with the most non-whitespace surrounding
text.  For example, between "Hello, {name}!" and
"{salutation}, {name}!", we should prefer the "Hello"
version when matched since that is more specific.

Files:
* lib.rs: Sort the matched SourceRefs by their
  quality.  Refine the rust query to ignore some
  macros, allow for qualified macro names, and
  capture only the first literal since a literal
  arg might be used when there's an alignment (e.g.
  `log::debug!("foo {:16} {}", "bar", baz)`).
* source_query.rs: Only return a sibling result if
  it is non-zero in length.
* source_ref.rs: Add quality field.
@ttiimm ttiimm merged commit 097635b into ttiimm:main Sep 24, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants