Bug with @edit macro attempts to edit non-existant file on OSX

When I for example tested the edit macro for some of the InteractiveUtils I get a reference to a file name that isn’t correct.

ERROR: no unique matching method found for the specified argument types
 [1] error(::String) at ./error.jl:33
 [2] which(::Any, ::Any) at ./reflection.jl:1133
 [3] functionloc at ./methodshow.jl:141 [inlined]
 [4] edit(::Function, ::Any) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/InteractiveUtils/src/editless.jl:102
 [5] top-level scope at REPL[1]:1

I suspect this has something to do with the build process. The actual file is located at /Applications/Julia-1.3.app/Contents/Resources/julia/share/julia/stdlib/v1.3/InteractiveUtils/src/editless.jl

When searching this discourse for the string sabae, I get several results. So I suspect this is a more widespread issue not specific to the @edit fuction or InteractiveUtils which is included in the standard lib.

Resolving this issue might also be a small step towards reproducible builds.

I think this is https://github.com/JuliaLang/julia/issues/26314, which was fixed by https://github.com/JuliaLang/julia/pull/32763. I don’t think it made it into version 1.3.1.

1 Like

Thx, I’ll update Julia to find out!