Is it possible to somehow reduce the verbosity of the stacktrace regarding the type info. I rely on the use of units with unitful.jl and on the color types used within Images.jl. Btw. both packages are fantastic. Unfortunatelly, with their types, reading the error information is a nightmare.
For example, just the warning that I redefine the function:
function GetLensalignWEGSMF(Ek0::Unitful.Energy, zfocus::Unitful.Length, zXover::Unitful.Length;
dX0=[.0, .0, .0]u"mm", dXEBA=[.0, .0, .0]u"mm")
return zfocus+zXover
end
will produce a unreadable block of lines like this:
WARNING: Method definition GetLensalignWEGSMF(Unitful.Quantity{T<:Any,
Unitful.Dimensions{(Unitful.Dimension{:Length}(power=Base.Rational{Int64}(num=2, den=1)),
Unitful.Dimension{:Mass}(power=Base.Rational{Int64}(num=1, den=1)), Unitful.Dimension{:Time}
(power=Base.Rational{Int64}(num=-2, den=1)))}, U<:Any}, Unitful.Quantity{T<:Any,
Unitful.Dimensions{(Unitful.Dimension{:Length}(power=Base.Rational{Int64}(num=1, den=1)),)},
U<:Any}, Unitful.Quantity{T<:Any, Unitful.Dimensions{(Unitful.Dimension{:Length}
(power=Base.Rational{Int64}(num=1, den=1)),)}, U<:Any}) in module Main at In[44]:2 overwritten at
In[45]:3.
WARNING: Method definition #GetLensalignWEGSMF(Array{Any, 1}, Main.#GetLensalignWEGSMF,
Unitful.Quantity{T<:Any, Unitful.Dimensions{(Unitful.Dimension{:Length}(power=Base.Rational{Int64}
(num=2, den=1)), Unitful.Dimension{:Mass}(power=Base.Rational{Int64}(num=1, den=1)),
Unitful.Dimension{:Time}(power=Base.Rational{Int64}(num=-2, den=1)))}, U<:Any},
Unitful.Quantity{T<:Any, Unitful.Dimensions{(Unitful.Dimension{:Length}(power=Base.Rational{Int64}
(num=1, den=1)),)}, U<:Any}, Unitful.Quantity{T<:Any,
Unitful.Dimensions{(Unitful.Dimension{:Length}(power=Base.Rational{Int64}(num=1, den=1)),)},
U<:Any}) in module Main overwritten.
As you see, currently the ease of use of julia error reports is almost reaching the level of the famous C++ compiler error reports (with templates).
Is there a way how to somehow simplify the output so instead of the full type definitions I could see the type aliases I used in the method definition?
Thank you
Petr