# Is it just me getting frequent error messages from Revise.jl?

**URL:** <https://discourse.julialang.org/t/is-it-just-me-getting-frequent-error-messages-from-revise-jl/99210>\
**Category:** General Usage\
**Tags:** question, revise, environment\
**Created:** [May 22, 2023, 10:17am UTC](https://discourse.julialang.org/t/is-it-just-me-getting-frequent-error-messages-from-revise-jl/99210 "2023-05-22T10:17:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Euhan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/euhan/32/36548_2.png) [@Euhan](https://discourse.julialang.org/u/Euhan)\
**Post date:** [May 22, 2023, 10:17am UTC](https://discourse.julialang.org/t/is-it-just-me-getting-frequent-error-messages-from-revise-jl/99210/1 "2023-05-22T10:17:36Z")

</div>

When working with Julia (and using my startup file that has `@eval using Revise` in it), many operations fail with the error message:

```julia
ERROR: UndefVarError: re_section_capture not defined

```

This seems to come from Revise. IFAIU `re_section_capture` is a predifined regular expression that could be found in `Base` at some point. I assume that what I attempt to do in some way triggers Revise and that the offending line (in my case line 272 in `src/pkgs.jl` of `Revise`) is then executed.

Still I’m confused why this suddenly started to happen (possibly it began after I added Transducers.jl to the (specific project) environment).

Any advice?

Some info:  
running on linux  
Julia 1.8.5  
Revise 1.0.3

I could have misunderstood the way the environments are supposed to work. `Revise` is present in my default (`@v1.8`) environment. I then use `Pkg.activate` to get to my specific environment, could this have anything to do with it? Could the `--proj` flag change the order modules are loaded?

---

<div class="post-metadata">

**Author:** ![barucden](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/barucden/32/26154_2.png) [@barucden](https://discourse.julialang.org/u/barucden)\
**Post date:** [May 22, 2023, 10:54am UTC](https://discourse.julialang.org/t/is-it-just-me-getting-frequent-error-messages-from-revise-jl/99210/2 "2023-05-22T10:54:38Z")

</div>

Having zero understanding of how Revise.jl works, I suggest you to try upgrading it. Just run `]up Revise` in your default environment.

---

<div class="post-metadata">

**Author:** ![Euhan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/euhan/32/36548_2.png) [@Euhan](https://discourse.julialang.org/u/Euhan)\
**Post date:** [May 22, 2023, 1:52pm UTC](https://discourse.julialang.org/t/is-it-just-me-getting-frequent-error-messages-from-revise-jl/99210/3 "2023-05-22T13:52:20Z")

</div>

Yup, worked! Turned out I had some packages that has not been worked on for a long time in my default environment. They in turn forced Revise to a very old version. I removed the packages (that I just wanted to try out at some point, but had forgotten about) and updated Revise. Now, I don’t get that error message all the time.

Trivial solution, but apparently not trivial enough for me to think of, so thanks!
