Closed chile12 closed 11 months ago
Hi @chile12 thanks for raising this issue.
Your problem was caused by passing a nonsense value of -12 for width
. Can you change your code to pass meaningful values?
I will soon update the definition of shortenName()
to ensure values make sense. I need to decide what is a meaningful minimum width
value.
Sorry for not being clear. The nonsense value is generated automatically by recursively calling shortenName
(line 76) applying width -2
. I do not call this function, the RenderAnsi Renderer does.
I see: the issue arises if the extension function right20()
is called on a string that has too many delimiters in it. It then calls shortenName()
. From your stack trace, RENDER_ANSI
calls right20()
on the logger name.
That had never happened in my testing. It is fixed by my most recent commit.
Out of interest, what is the name of the logger that caused your issue?
This function will cause an IooB Exception if given a sting with many delimiters: