wert007 / tabelle

It is a spreadsheet program for your terminal. Written in rust.
MIT License
1 stars 1 forks source link

[Bug Report] Crash on Pycobertura Generated CSV #2

Closed kevinmatthes closed 1 year ago

kevinmatthes commented 1 year ago
wert007 commented 1 year ago

Could you maybe send me such a csv file so I can debug it?

And yes, terminal displaying is still broken in a lot of points (flickering in certain situations, screens often not clearing, even though they should and could and similar things). So it is no surprise that such a crash happens. It would probably be nicer to add thiserror to tabelle-core and make the gui show a error message? At least as a first fix, so that no crashes happen.

I actually uploaded this repository to have it on another computer, but at the same time I actually think it could be something very useful, so that is why I made sure to add a README and polish the repository.

kevinmatthes commented 1 year ago

Here is the cobertura report for Aeruginous v2.0.0:

Filename;Stmts;Miss;Cover;Missing
src/application.rs;29;29;0.00%;87-137
src/cffreference.rs;68;0;100.00%;
src/macros.rs;4;0;100.00%;
src/running.rs;4;0;100.00%;
src/version.rs;26;0;100.00%;
src/pattern/buffer.rs;21;0;100.00%;
src/pattern/io_processor.rs;19;19;0.00%;72-160
src/pattern/reader.rs;31;20;35.48%;57-58, 75-79, 90-109, 123-139
src/pattern/writer.rs;77;30;61.04%;133-152, 187-197, 231-259
src/changelog/comment_changes.rs;163;163;0.00%;106-399
src/changelog/fragment.rs;11;0;100.00%;
src/graphing/agd.rs;156;0;100.00%;
src/graphing/graph.rs;146;0;100.00%;
src/traits/append_as_line.rs;9;0;100.00%;
src/traits/colour_message.rs;8;0;100.00%;
src/traits/convert_buffer.rs;21;0;100.00%;
src/traits/prefer.rs;3;0;100.00%;
src/traits/to_ron.rs;4;0;100.00%;
src/traits/to_stderr.rs;4;0;100.00%;
TOTAL;804;261;67.54%;
wert007 commented 1 year ago

Okay, I know why it fails. tabelle parses csv files very simply by just splitting each line into rows and then splitting everything by a ,. So it does not read this file correctly. I will see, that I fix that today.