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

"UndefVarError: `#161#162` not defined" when doing any change in Pkg with Revise running

Open KristofferC opened this issue 1 month ago • 0 comments

As an example:

julia +nightly --project -ie 'using Revise; using REPL; using Pkg' 

now add e.g. a x=1 to src/Resolve/graphtype.jl and press enter:

┌ Error: Failed to revise /Users/kc/JuliaPkgs/pkg-allocatins-graph-simplify/src/Resolve/graphtype.jl
│   exception =
│    UndefVarError: `#161#162` not defined in `Pkg.Resolve`
│    Suggestion: check for spelling errors or missing imports.
│    Stacktrace:
│     [1] top-level scope
│       @ ~/JuliaPkgs/pkg-allocatins-graph-simplify/src/Resolve/graphtype.jl:74
│    Revise evaluation error at /Users/kc/JuliaPkgs/pkg-allocatins-graph-simplify/src/Resolve/graphtype.jl:74
│    
└ @ Revise ~/.julia/packages/Revise/7QZSP/src/packagedef.jl:704

KristofferC avatar Oct 28 '25 07:10 KristofferC