You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set @debug begin...end around base/pkg.jl's "_resolve" function, as well as some other functions. With these additions, line 194 corresponds to if has(have,pkg).
After stepping through the early parts of the function, I got to a place where I wanted to set a breakpoint on each iteration of that loop. I got this:
debug:194> add($bp, $n)
no method add(Set{Node{T}},Node{ExValue})
debug:194> $bp
Set{Node{T}}()
debug:194> $n
^CNode(ExValue(:if,
debug:194> s
at /home/tim/src/julia/base/pkg.jl:195
Executing $n caused the prompt to hang, so I hit Ctrl-C.
The text was updated successfully, but these errors were encountered:
Ah, the trouble with add must be because Pkg.add shadows Base.add. You would probably have been able to do it with Base.add($bp, $n) in this case. But there should of course be a way that always works. I'll make $(add(bp,n)) and $add($bp, $n) work consistently.
The trouble with printing $n might stem from the fact that the decorated AST is circular. I though I had fixed that, but I'll take a look to see that nodes are printable.
I set @debug begin...end around base/pkg.jl's "_resolve" function, as well as some other functions. With these additions, line 194 corresponds to
if has(have,pkg)
.After stepping through the early parts of the function, I got to a place where I wanted to set a breakpoint on each iteration of that loop. I got this:
Executing
$n
caused the prompt to hang, so I hit Ctrl-C.The text was updated successfully, but these errors were encountered: