Revise.jl icon indicating copy to clipboard operation
Revise.jl copied to clipboard

"Revise is not watching" errors

Open yha opened this issue 3 years ago • 2 comments

Recently I'm seeing "Revise is no watching" errors again. I don't have a reproducing example, unfortunately, so I'm not sure how to proceed looking into it. It sometimes pops up when I've not actually revised anything. Usually (or perhaps always) the error refers to some ]deved package and to https://github.com/JuliaPlots/Plots.jl/blob/c392cc122707851927039ba361a6d1f71952085c/src/utils.jl#L152. This example happened when doing a "Goto symbol" (ctrl+j,ctrl+g) in Juno:

julia> Revise.LogRecord(Error, evaluation error starting at C:\Users\sternlab\.julia\packages\Plots\qcY0P\src\utils.jl:152, lowered, Revise_e943ed8b, "C:\Users\sternlab\.julia\packages\Revise\ucYAZ\src\lowered.jl", 106, (mod=Plots, ex=begin┌ Warning: C:\Users\sternlab\.julia\dev\Dierckx\deps is not an existing directory, Revise is not watching
└ @ Revise C:\Users\sternlab\.julia\packages\Revise\ucYAZ\src\Revise.jl:636

    #= toplevel:151 =#
    for i = 2:4
        #= C:\Users\sternlab\.julia\packages\Plots\qcY0P\src\utils.jl:152 =#
        #= C:\Users\sternlab\.julia\packages\Plots\qcY0P\src\utils.jl:152 =# @eval begin
                #= C:\Users\sternlab\.julia\packages\Plots\qcY0P\src\utils.jl:153 =#
                RecipesPipeline.unzip(v::Union{AVec{<:Tuple{Vararg{T, $i} where T}}, AVec{<:_Point{$i}}}) = begin
                        #= C:\Users\sternlab\.julia\packages\Plots\qcY0P\src\utils.jl:154 =#
                        $(Expr(:tuple, (:([t[$j] for t = v]) for j = 1:i)...))
                    end
            end
    end
end)MethodError: no method matching (::Plots.var"#533#534")(::Int64)
The applicable method may be too new: running in world age 27243, while current world is 27881.
Closest candidates are:
  #533(::Any) at none:0 (method too new to be called from this world context.)
Stacktrace:
 [1] iterate(::Base.Generator{UnitRange{Int64},Plots.var"#533#534"}) at .\generator.jl:47

Using Revise 2.7.5, Julia 1.4.2

yha avatar Sep 07 '20 15:09 yha

Possibly relevant: I believe in all cases where I've seen this, Revise was loaded in the default environment, and then I activated a different environment.

yha avatar Sep 07 '20 15:09 yha

A reproducer would help. It may be that Revise is trying to update you to your new environment more faithfully than Julia itself does, https://github.com/JuliaLang/julia/issues/35663

timholy avatar Sep 07 '20 16:09 timholy