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

**URL:** <https://discourse.julialang.org/t/bug-with-edit-macro-attempts-to-edit-non-existant-file-on-osx/32879>\
**Category:** Internals & Design\
**Tags:** bug\
**Created:** [January 2, 2020, 4:38pm UTC](https://discourse.julialang.org/t/bug-with-edit-macro-attempts-to-edit-non-existant-file-on-osx/32879 "2020-01-02T16:38:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcastel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dcastel/32/10692_2.png) [@dcastel](https://discourse.julialang.org/u/dcastel)\
**Post date:** [January 2, 2020, 4:38pm UTC](https://discourse.julialang.org/t/bug-with-edit-macro-attempts-to-edit-non-existant-file-on-osx/32879/1 "2020-01-02T16:38:33Z")

</div>

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.

```julia
ERROR: no unique matching method found for the specified argument types
Stacktrace:
 [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`

---

<div class="post-metadata">

**Author:** ![dcastel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dcastel/32/10692_2.png) [@dcastel](https://discourse.julialang.org/u/dcastel)\
**Post date:** [January 2, 2020, 4:41pm UTC](https://discourse.julialang.org/t/bug-with-edit-macro-attempts-to-edit-non-existant-file-on-osx/32879/2 "2020-01-02T16:41:52Z")

</div>

When searching this discourse for the string [`sabae`](https://discourse.julialang.org/search?q=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.

---

<div class="post-metadata">

**Author:** ![thofma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thofma/32/1691_2.png) [@thofma](https://discourse.julialang.org/u/thofma)\
**Post date:** [January 2, 2020, 7:14pm UTC](https://discourse.julialang.org/t/bug-with-edit-macro-attempts-to-edit-non-existant-file-on-osx/32879/3 "2020-01-02T19:14:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dcastel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dcastel/32/10692_2.png) [@dcastel](https://discourse.julialang.org/u/dcastel)\
**Post date:** [January 8, 2020, 6:28pm UTC](https://discourse.julialang.org/t/bug-with-edit-macro-attempts-to-edit-non-existant-file-on-osx/32879/4 "2020-01-08T18:28:18Z")

</div>

Thx, I’ll update Julia to find out!
