Skip to content

Prettify + search: clicking a search result goes to incorrect location #402

@hoophalab

Description

@hoophalab

Bug

Clicking a search result goes to incorrect location

yscope-log-viewer version

6858c01

Environment

Chrome

Reproduction steps

Link to Test: https://y-scope.github.io/yscope-log-viewer/?filePath=https://yscope.s3.us-east-2.amazonaws.com/sample-logs/yarn-ubuntu-resourcemanager-ip-172-31-17-135.log.1.clp.zst

Steps to Reproduce:

  1. Click the "Prettify" button in the bottom-right corner of the log viewer.
  2. Enter a search term in the Search tab (e.g., e5d112ea).
  3. Click on any matched item in the Search results list.

Expected Result: The log viewer should scroll to the exact line containing the matched search result.

Actual Result: The log viewer navigates to an incorrect or unrelated location in the log file.

This bug is more obvious in a kv ir file.
It's probably because the search code isn't updated when adding the prettify feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions