# Revise fails to pre-compile

**URL:** <https://discourse.julialang.org/t/revise-fails-to-pre-compile/106884>\
**Category:** General Usage\
**Tags:** question, package, revise\
**Created:** [November 29, 2023, 8:46am UTC](https://discourse.julialang.org/t/revise-fails-to-pre-compile/106884 "2023-11-29T08:46:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [November 29, 2023, 8:46am UTC](https://discourse.julialang.org/t/revise-fails-to-pre-compile/106884/1 "2023-11-29T08:46:10Z")

</div>

This morning I get the following error:

```julia
julia> using Revise
Precompiling Revise
        Info Given Revise was explicitly requested, output will be shown live 
ERROR: LoadError: UndefVarError: `is_GotoIfNot` not defined

```

Output of versioninfo():

```julia
julia> versioninfo()
Julia Version 1.10.0-rc1
Commit 5aaa9485436 (2023-11-03 07:44 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 32 × AMD Ryzen 9 7950X 16-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
  Threads: 1 on 32 virtual cores
Environment:
  LD_LIBRARY_PATH = /lib:/usr/lib:/usr/local/lib

```

Output of Pkg.status():

```julia
Status `~/repos/EstPitchOffset/Project.toml`
⌅ [aaaaaaaa] ControlSystemsBase v1.9.5
  [a93c6f00] DataFrames v1.6.1
  [82cc6244] DataInterpolations v4.5.0
  [864edb3b] DataStructures v0.18.15
  [39dd38d3] Dierckx v0.5.3
  [ffbed154] DocStringExtensions v0.9.3
  [4e289a0a] EnumX v1.0.4
  [7a1cc6ca] FFTW v1.7.1
  [cf66c380] FastChebInterp v1.2.0
⌅ [a98d9a8b] Interpolations v0.14.7
  [033835bb] JLD2 v0.4.38
  [b964fa9f] LaTeXStrings v1.3.1
  [23992714] MAT v0.10.6
  [33e6dc65] MKL v0.6.1
⌅ [961ee093] ModelingToolkit v8.72.2
⌅ [1dea7af3] OrdinaryDiffEq v6.58.1
⌅ [9b87118b] PackageCompiler v2.1.11
  [438e738f] PyCall v1.96.2
  [d330b81b] PyPlot v2.11.2
⌅ [295af30f] Revise v3.5.9
⌅ [f2b01f46] Roots v2.0.20
⌅ [9672c7b4] SteadyStateDiffEq v1.16.1
  [21f18d07] Timers v0.1.5
  [ddb6d928] YAML v0.4.9
Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated`

```

Any idea?

---

<div class="post-metadata">

**Author:** ![tamasgal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamasgal/32/27946_2.png) [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Post date:** [November 29, 2023, 9:29am UTC](https://discourse.julialang.org/t/revise-fails-to-pre-compile/106884/2 "2023-11-29T09:29:32Z")

</div>

Just a side note: things like Revise.jl are in my opinion better installed in the global environment, which is inherited in all other environments, to make sure that it does not interfere with other dependencies (even if it hasn’t got that many). After all, it’s just a development utility `;)`

I am mentioning this because your `status` output indicates that revise is hold back from upgrading, so there is likely some dependency entanglement. I assume your issue can be solved by removing it and adding it to the global environment.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [November 29, 2023, 9:52am UTC](https://discourse.julialang.org/t/revise-fails-to-pre-compile/106884/3 "2023-11-29T09:52:44Z")

</div>

I removed it from the global environment and upgraded it. Now it works. I need it in the local environment because I am building a system image based on the local environment with PackageCompiler.

---

<div class="post-metadata">

**Author:** ![tt1234567](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Post date:** [November 29, 2023, 10:14am UTC](https://discourse.julialang.org/t/revise-fails-to-pre-compile/106884/4 "2023-11-29T10:14:27Z")

</div>

I had the same error message this morning (Julia 1.9.4, Windows 10). It went away after restarting Julia. In my case Revise is in the global environment.

---

<div class="post-metadata">

**Author:** ![tamasgal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamasgal/32/27946_2.png) [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Post date:** [November 29, 2023, 10:51am UTC](https://discourse.julialang.org/t/revise-fails-to-pre-compile/106884/5 "2023-11-29T10:51:14Z")

</div>

Yes, Revise.jl sometimes chokes on whatever, I was never able to reproduce any of these issues, but either removing the compile artifacts, the package itself or restarting Julia usually solves the problem 😉 I managed to get Revise.jl in such a state a couple of times already and most of the time it happened when installing new packages or resolving/instantiating something, as far as I can recall.
