# @edit does not work on my system

**URL:** <https://discourse.julialang.org/t/edit-does-not-work-on-my-system/57431>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 18, 2021, 1:41am UTC](https://discourse.julialang.org/t/edit-does-not-work-on-my-system/57431 "2021-03-18T01:41:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![linwaytin](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Post date:** [March 18, 2021, 1:41am UTC](https://discourse.julialang.org/t/edit-does-not-work-on-my-system/57431/1 "2021-03-18T01:41:21Z")

</div>

I want to try the macro `@edit` but I got

```julia
julia> @edit 3+5
ERROR: could not find source file for function
Stacktrace:
 [1] edit(::Nothing, ::Int32) at /build/julia/src/julia-1.5.3/usr/share/julia/stdlib/v1.5/InteractiveUtils/src/editless.jl:224
 [2] edit(::Function, ::Any) at /build/julia/src/julia-1.5.3/usr/share/julia/stdlib/v1.5/InteractiveUtils/src/editless.jl:223
 [3] top-level scope at REPL[167]:1
 [4] run_repl(::REPL.AbstractREPL, ::Any) at /build/julia/src/julia-1.5.3/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:288

```

I know there was a bug but has been fixed [https://github.com/JuliaLang/julia/pull/32763](https://github.com/JuliaLang/julia/pull/32763)  
Do I need some setup to use this macro?  
My system is Manjaro Linux.

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [March 18, 2021, 2:08am UTC](https://discourse.julialang.org/t/edit-does-not-work-on-my-system/57431/2 "2021-03-18T02:08:42Z")

</div>

How did you download julia? If you didn’t download from the official binaries that could be the cause of the problem.

---

<div class="post-metadata">

**Author:** ![Shuhua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shuhua/32/27618_2.png) [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Post date:** [March 18, 2021, 2:43am UTC](https://discourse.julialang.org/t/edit-does-not-work-on-my-system/57431/3 "2021-03-18T02:43:23Z")

</div>

I have a similar issue on Windows 10.

```julia
julia> @edit 3+5
ERROR: SystemError: edit: No error
Stacktrace:
 [1] systemerror(::Symbol, ::Int32; extrainfo::Nothing) at .\error.jl:168
 [2] #systemerror#48 at .\error.jl:167 [inlined]
 [3] systemerror at .\error.jl:167 [inlined]
 [4] (::InteractiveUtils.var"#14#24")(::Cmd, ::String, ::Int32) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\InteractiveUtils\src\editless.jl:151
 [5] edit(::String, ::Int32) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\InteractiveUtils\src\editless.jl:202
 [6] edit(::Function, ::Any) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\InteractiveUtils\src\editless.jl:223
 [7] top-level scope at REPL[2]:1

```

I installed the official binary v1.5.3.

---

<div class="post-metadata">

**Author:** ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Post date:** [March 18, 2021, 3:07am UTC](https://discourse.julialang.org/t/edit-does-not-work-on-my-system/57431/4 "2021-03-18T03:07:27Z")

</div>

Look at this issue: [https://github.com/JuliaLang/julia/issues/40036](https://github.com/JuliaLang/julia/issues/40036)

Another user reports the problem as specific to the Manjaro package. i think it is usually better to use the official binaries. It is not rare to see problems in the packages shipped by the distributions themselves.

---

<div class="post-metadata">

**Author:** ![linwaytin](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Post date:** [March 18, 2021, 1:49pm UTC](https://discourse.julialang.org/t/edit-does-not-work-on-my-system/57431/5 "2021-03-18T13:49:00Z")

</div>

Thank you. I didn’t know the package shipped by the distribution has that problem. I will try the official binary.
