Skip to content

@less and @edit broken for stdlib in official Julia v1.0 (v0.7) binaries #28560

Closed
@oschulz

Description

@oschulz

On Linux (possibly other platforms too), when using the current official Julia v1.0 and v0.7 binaries, @less and @edit seem to look for stdlib files in the original build path, instead of the actual path of the extracted julia distribution.

With "julia-1.0.0-linux-x86_64.tar.gz", this happens:

julia> using Statistics

julia> mean(rand(100))
0.5062243680035762

julia> @less mean(rand(100))
/buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Statistics/src/Statistics.jl: No such file or directory
ERROR: failed process: Process(`less +128g /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Statistics/src/Statistics.jl`, ProcessExited(1)) [1]

julia> using LinearAlgebra

julia> @edit UpperTriangular(rand(5,5))

realpath: /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/LinearAlgebra/src/triangular.jl: No such file or directory

Version info:

julia> versioninfo()
Julia Version 1.0.0
Commit 5d4eaca0c9 (2018-08-08 20:58 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, skylake)
Environment:
  JULIA_DEPOT_PATH = $HOME/.julia/linux-ubuntu-16.04-x86_64
  JULIA_EDITOR = sublime_text_venv
  JULIA_ARRAYFIRE_BACKEND = cpu
  JULIA_PKGDIR = $HOME/.julia/linux-ubuntu-16.04-x86_64
  JULIA_PKG_DEVDIR = $HOME/.julia/linux-ubuntu-16.04-x86_64/dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions