We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d6a726 commit 521cf11Copy full SHA for 521cf11
src/REPLMode/REPLMode.jl
@@ -655,6 +655,10 @@ const help = gen_help()
655
656
function try_prompt_pkg_add(pkgs::Vector{Symbol})
657
ctx = Context()
658
+ if isempty(ctx.registries)
659
+ Registry.download_default_registries(ctx.io)
660
+ ctx = Context()
661
+ end
662
available_uuids = [Types.registered_uuids(ctx.registries, String(pkg)) for pkg in pkgs] # vector of vectors
663
available_pkgs = pkgs[isempty.(available_uuids) .== false]
664
isempty(available_pkgs) && return false
0 commit comments