julia icon indicating copy to clipboard operation
julia copied to clipboard

show function arguments in different colors in method errors

Open rafaqz opened this issue 2 years ago • 4 comments

I have always struggled to read method errors. Past a degree of type complexity it becomes very hard to see where one argument stops and the next starts.

This PR gives each argument an alternating color, making it trivial to distinguish them.

We may want better colors than green and black, if anyone has opinions.

rafaqz avatar Aug 11 '23 14:08 rafaqz

Will #50809 make it easier to read?

timholy avatar Aug 11 '23 14:08 timholy

Oh good timing, yes that's another way to do it. Maybe we could still alternate colors in the full show(err)

rafaqz avatar Aug 11 '23 14:08 rafaqz

We shouldn't use black, since many people use dark terminal backgrounds and it's very hard to see.

JeffBezanson avatar Aug 11 '23 18:08 JeffBezanson

Yes I guess :default is better, and blue seems more subtle in most themes.

So maybe :default and :blue ?

rafaqz avatar Aug 12 '23 16:08 rafaqz