Closed janstarke closed 3 weeks ago
Thanks for the bug report. I think the stacktrace will probably be enough to find the error.
Incidentally, have you considered whether it might make sense to add your app's functionality (pinning the first column) to https://github.com/YS-L/csvlens instead of building it out into into another app?
Why doesn't this stacktrace have line numbers?
12: 0x5d67daf3b459 - <ratatui::text::span::Span as ratatui::widgets::WidgetRef>::render_ref::h7d1b172c055f1900
13: 0x5d67daf3ba85 - ratatui::text::line::render_spans::hd7e85f2853a83213
14: 0x5d67daf352ac - <ratatui::text::text::Text as ratatui::widgets::WidgetRef>::render_ref::h9c358aaf6d0b008b
15: 0x5d67daf35007 - <ratatui::text::text::Text as ratatui::widgets::Widget>::render::hc0996a9e0a6c6e20
16: 0x5d67daf33f89 - <ratatui::widgets::table::table::Table as ratatui::widgets::StatefulWidgetRef>::render_ref::h623b727d098fde1a
17: 0x5d67daf32c54 - <ratatui::widgets::table::table::Table as ratatui::widgets::Widget>::render::h37aa979a497a15c4
release mode probably?
Thanks for the bug report. I think the stacktrace will probably be enough to find the error.
Incidentally, have you considered whether it might make sense to add your app's functionality (pinning the first column) to https://github.com/YS-L/csvlens instead of building it out into into another app?
Thank you for this hint, I didn't know this tool until now. I tried, but I think there would be more to change then pinning the first column. csvlens
breaks csv columns which contain JSON data. This helps reading files, but it is not good for forensic work. Furthermore, I want to highlight lines or columns based on regular expressions. When we do forensic investigation, we often read thousands of log lines per day, to find things that should not be there. I want the tool to support this work.
However, I will include csvlens
in my future work, because until now I used xsv table | less -S
; while csvlens
looks much better. :+1:
csvlens breaks csv columns which contain JSON data. This helps reading files, but it is not good for forensic work. Furthermore, I want to highlight lines or columns based on regular expressions.
Both of these seem like reasonable features to implement in csvlens (not breaking json data and highlighting lines or columns)
You're right. Let me think about this
Also, pinning the first n columns would also make a good feature there too. I don't want to discourage you from writing an app like this if you want to, but given a choice of 1 excellent app or 2 good ones, I'd generally take the first choice.
This bug is explicitly hit when the zero width character is at the end of the rendering area. Give the fix in #1165 a try (with a patch dependency pointing at the PR) and let me know if that fixes your issue. I'm about 95% certain that will fix the bug you're seeing, but If it doesn't, can you please provide a debug stack trace which includes the relevant line numbers.
Fixed by #1165
Thanks a lot for your work :+1:
Description
I display a lot of long lines in a table, and in one specific line I receive the following stacktrace:
To Reproduce
I'm trying to display a large csv file, where one line accidently contains some Unicode Left-Right-Marks (U+200E), which seems to cause the issue. I'm not able to construct a MWE for now
Expected behavior
ratatui
should not panicScreenshots
Environment
Additional context