y-scope / yscope-log-viewer

A tool that can be used to view logs compressed in CLP's IR Stream format.
Apache License 2.0
10 stars 12 forks source link

new-log-viewer: Load errors don't clear the data of the currently loaded file but the file no longer exists in the worker. #75

Open kirkrodrigues opened 1 month ago

kirkrodrigues commented 1 month ago

Bug

After loading a file successfully, trying to load an invalid file (by dragging and dropping) will:

This has two issues:

Ideally, we should:

https://github.com/y-scope/yscope-log-viewer/commit/HEAD

yscope-log-viewer version

https://github.com/y-scope/yscope-log-viewer/commit/1d5d95eab234190837c258efa9fef207621f8570

Environment

Reproduction steps

kirkrodrigues commented 1 month ago

Looking more into it, the worker is replaced immediately when trying to load a new file, so keeping the previous file loaded won't be possible without more significant code changes. At least, we should clear the UI's state when we fail to load another file.