# Define\_editor not found

**URL:** <https://discourse.julialang.org/t/define-editor-not-found/93323>\
**Category:** General Usage\
**Created:** [January 21, 2023, 4:28pm UTC](https://discourse.julialang.org/t/define-editor-not-found/93323 "2023-01-21T16:28:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Post date:** [January 21, 2023, 4:28pm UTC](https://discourse.julialang.org/t/define-editor-not-found/93323/1 "2023-01-21T16:28:33Z")

</div>

According to the Julia documentation, `define_editor` should be available by default. On my mac, Julia 1.8.3, `edit` is found, while `define_editor` is not. As a result, I cannot use the `@edit` macro. Any insight is appreciated. Nobody appeared to have reported this error, so I am not sure what to do to fix this. Thanks.

---

<div class="post-metadata">

**Author:** ![logankilpatrick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/logankilpatrick/32/38123_2.png) [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Post date:** [January 21, 2023, 4:48pm UTC](https://discourse.julialang.org/t/define-editor-not-found/93323/2 "2023-01-21T16:48:25Z")

</div>

This seems like a bug, it also does not work for me.

---

<div class="post-metadata">

**Author:** ![logankilpatrick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/logankilpatrick/32/38123_2.png) [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Post date:** [January 21, 2023, 4:48pm UTC](https://discourse.julialang.org/t/define-editor-not-found/93323/3 "2023-01-21T16:48:57Z")

</div>

Mind opening an issue here: [GitHub - JuliaLang/julia: The Julia Programming Language](https://github.com/JuliaLang/julia)

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [January 21, 2023, 7:45pm UTC](https://discourse.julialang.org/t/define-editor-not-found/93323/4 "2023-01-21T19:45:20Z")

</div>

Do you have a minimal example? It is available for me:

```julia
julia> using InteractiveUtils

julia> InteractiveUtils.define_editor
define_editor (generic function with 1 method)

```

Note that being in the documentation does NOT mean that the function is also exported. That’s also why the documentation specifies it as `InteractiveUtils.define_editor`, to make people aware that it is not exported.

Since this is meant for overloading to change behavior once and should not otherwise be called in code, not exporting this makes perfect sense. Internally this function is used e.g. in [`InteractiveUtils/src/editless.jl:152`](https://github.com/JuliaLang/julia/blob/62c1137e38c6838045140531a85abd9f9d8de1ee/stdlib/InteractiveUtils/src/editless.jl#L151) for defining the default editors.

---

<div class="post-metadata">

**Author:** ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Post date:** [January 21, 2023, 9:40pm UTC](https://discourse.julialang.org/t/define-editor-not-found/93323/5 "2023-01-21T21:40:41Z")

</div>

Thanks. I did not realize it was in `InteractiveUtils.jl`, especially since the `edit` command was available without starting up the module. Sorry about that. It works now.
