This package gives a URL to github/gitlab/etc where a method from a package is defined.
julia> import MethodURL, Example
julia> MethodURL.url(
methods(Example.hello)[1]
)
1-element Vector{String}:
"https://github.com/JuliaLang/Example.jl/blob/v0.5.5/src/Example.jl#L9"
Julia has a function Base.url(::Method)
, but this function only works for methods from Base. It worked on non-Base methods in previous Julia versions, but this functionality disappeared (see JuliaLang/julia#47709). This package aims to reimplement that functionality for modern Julia versions.
This package is still being worked on. When it is finished, we want to use it in Pluto.jl stack frames, see fonsp/Pluto.jl#2813