You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 5 methods for type constructor:
(::Type{LineSearches.HagerZhang})(; delta, sigma, alphamax, rho, epsilon, gamma, linesearchmax, psi3, display, mayterminate) in LineSearches at /home/kirill/.julia/packages/Parameters/cGriM/src/Parameters.jl:520
(::Type{LineSearches.HagerZhang})(pp::LineSearches.HagerZhang; kws...) in LineSearches at /home/kirill/.julia/packages/Parameters/cGriM/src/Parameters.jl:530
(::Type{LineSearches.HagerZhang})(pp::LineSearches.HagerZhang, di::AbstractDict) in LineSearches at /home/kirill/.julia/packages/Parameters/cGriM/src/Parameters.jl:533
(::Type{LineSearches.HagerZhang})(pp::LineSearches.HagerZhang, di::Tuple{Symbol,Any}...) in LineSearches at /home/kirill/.julia/packages/Parameters/cGriM/src/Parameters.jl:534
(::Type{LineSearches.HagerZhang})(delta::T, sigma::T, alphamax::T, rho::T, epsilon::T, gamma::T, linesearchmax, psi3::T, display, mayterminate::Tm) where {T, Tm} in LineSearches at /home/kirill/.julia/packages/Parameters/cGriM/src/Parameters.jl:501
and the file line information is all wrong because it's taking it from the definition macro, not the original definition.
One reason this matters is that methods(f) is a way to find out precisely where f is defined, even in the presence of multiple package versions in Julia's .julia/packages/ directory. In particular, the edit function
edit(LineSearches.HagerZhang,())
is broken by the line info being wrong, it opens the editor at Parameters.jl
The text was updated successfully, but these errors were encountered:
Yes, I'm semi aware of this. Thanks for reporting. Unfortunately, I don't think I will have time to look into this until end of February. I think the cause is probably:
methods(LineSearches.HagerZhang)
gives:and the file line information is all wrong because it's taking it from the definition macro, not the original definition.
One reason this matters is that
methods(f)
is a way to find out precisely wheref
is defined, even in the presence of multiple package versions in Julia's.julia/packages/
directory. In particular, theedit
functionis broken by the line info being wrong, it opens the editor at Parameters.jl
The text was updated successfully, but these errors were encountered: