diff --git a/src/packages/PkgCompat.jl b/src/packages/PkgCompat.jl index da0c7ee667..841c46f3dc 100644 --- a/src/packages/PkgCompat.jl +++ b/src/packages/PkgCompat.jl @@ -299,7 +299,9 @@ end function _registered_package_completions(partial_name::AbstractString)::Vector{String} # compat try - @static if hasmethod(REPLMode.complete_remote_package, (String,)) + @static if hasmethod(REPLMode.complete_remote_package, (String,), (:hint,)) + REPLMode.complete_remote_package(partial_name; hint=false) + elseif hasmethod(REPLMode.complete_remote_package, (String,)) REPLMode.complete_remote_package(partial_name) else REPLMode.complete_remote_package(partial_name, 1, length(partial_name))[1]