# Revise.jl does not seem to work on my environment

**URL:** <https://discourse.julialang.org/t/revise-jl-does-not-seem-to-work-on-my-environment/21868>\
**Category:** New to Julia\
**Created:** [March 14, 2019, 2:03pm UTC](https://discourse.julialang.org/t/revise-jl-does-not-seem-to-work-on-my-environment/21868 "2019-03-14T14:03:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HiroIshida](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hiroishida/32/7424_2.png) [@HiroIshida](https://discourse.julialang.org/u/HiroIshida)\
**Post date:** [March 14, 2019, 2:03pm UTC](https://discourse.julialang.org/t/revise-jl-does-not-seem-to-work-on-my-environment/21868/1 "2019-03-14T14:03:51Z")

</div>

I tryied [usage example](https://timholy.github.io/Revise.jl/stable/#Usage-example-1) of Revise.jl on my environment (julia 1.0.1, Ubuntu 16.04), but it doesn’t seem to work.

I typed `edit(hello)`, which opened file `~/.julia/dev/Example/src/Example.jl` on vim. I put `g() = true` inside, and closed vim. Then, typed `Example.g()` and get `ERROR: UndefVarError: g not defined`. Would anyone explain why?

Before trying the above example, I hit `Pkg.test("Revise")` and checked that no error occured. (`Testing Revise tests passes`). Also, please note that `using Revise` was done before `using Example`.

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [March 14, 2019, 3:31pm UTC](https://discourse.julialang.org/t/revise-jl-does-not-seem-to-work-on-my-environment/21868/2 "2019-03-14T15:31:58Z")

</div>

> [@HiroIshida](#):
>
> `ERROR: UndefVarError: g not defined`

Would be useful if you could show the full error output. In particular it shows from where the error was thrown, and makes it easier to locate the problem.

If you have just `add`ed `Example` the problem might be that `Revise` does not track such packages, since the are (supposed to be) immutable, and the files are write protected.

---

<div class="post-metadata">

**Author:** ![HiroIshida](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hiroishida/32/7424_2.png) [@HiroIshida](https://discourse.julialang.org/u/HiroIshida)\
**Post date:** [March 14, 2019, 3:57pm UTC](https://discourse.julialang.org/t/revise-jl-does-not-seem-to-work-on-my-environment/21868/3 "2019-03-14T15:57:05Z")

</div>

Thank you very much for your reply. I corrected typo in my post (f → g). I’m sorry for confusing you.

Could you tell me how to check the Revise track the `Example`? I thought that Revise successfully tracked the `Example` since `edit(hello)` didn’t cause any error, which means Revise knows the existence of `Example`. (function hello belongs to module `Example`)

I will show full error output tomorrow when I go back to the office.

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [March 14, 2019, 4:20pm UTC](https://discourse.julialang.org/t/revise-jl-does-not-seem-to-work-on-my-environment/21868/4 "2019-03-14T16:20:30Z")

</div>

> [@HiroIshida](#):
>
> I thought that Revise successfully tracked the `Example` since `edit(hello)` didn’t cause any error

`edit` does not come from `Revise`. I believe that

> [@fredrikekre](#):
>
> If you have just `add` ed `Example` the problem might be that `Revise` does not track such packages, since the are (supposed to be) immutable, and the files are write protected.

is the reason.

---

<div class="post-metadata">

**Author:** ![HiroIshida](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hiroishida/32/7424_2.png) [@HiroIshida](https://discourse.julialang.org/u/HiroIshida)\
**Post date:** [March 15, 2019, 3:00am UTC](https://discourse.julialang.org/t/revise-jl-does-not-seem-to-work-on-my-environment/21868/5 "2019-03-15T03:00:29Z")

</div>

As for

> If you have just `add` ed `Example` the problem might be that `Revise` does not track such packages, since the are (supposed to be) immutable, and the files are write protected.

, does this mean some additional procedures are required other than those explained in the [example](https://timholy.github.io/Revise.jl/stable/#Usage-example-1) of ducumentation?

By the way, the full error message I got is the following

> ERROR: UndefVarError: g not defined  
> Stacktrace:  
> [1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13  
> [2] top-level scope at none:0
