Skip to content

edit and less fail for stdlib functions in distribution binaries  #26314

Closed
@RalphAS

Description

@RalphAS

The trouble is that file names in stdlib methods are (inappropriate) absolute paths:

julia> ml=methods(edit)
# 5 methods for generic function "edit":
[1] edit(path::AbstractString) in InteractiveUtils at 
/buildworker/worker/package_linux64/build/usr/share/julia/site/v0.7/InteractiveUtils/src/editless.jl:37
#etc.

julia> less(edit,(AbstractString,))
/buildworker/worker/package_linux64/build/usr/share/julia/site/v0.7/InteractiveUtils/src/editless.jl: 
No such file or directory

We can cheat:

julia> ml.ms[1].file=Symbol("../site/v0.7/InteractiveUtils/src/editless.jl");
julia> less(edit,(AbstractString,)) # this works

This is troublesome for those of us who want to consult "The Real Documentation" but didn't build from source.

(edited to fit more useful issue title)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIndicates that a maintainer wants help on an issue or pull requestpriorityThis should be addressed urgentlyregressionRegression in behavior compared to a previous versionstdlibJulia's standard library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions