Closed Jiri-Stary closed 4 months ago
Thanks for raising this; it looks like a bug in the new code for truncating long descriptions. Are you able to share the input file?
@balgillo Unfortunately no, i used the error together with AI to debug this and looks like it may be an error .
ValueError: placeholder too large for max width, is due to the textwrap.shorten method being called with a width that is too small to accommodate the placeholder. The placeholder " ..." itself is 4 characters long, so if the width provided is less than 4, this error will be raised.
Thanks, it's pretty clear that we need some defensive code to ensure that the word wrap is only attempted if there is enough space in the line length budget. I've added that in #52.
I am running the summary on multiple sarif files and it seems that it does not correctly handle larger input