From e0055fce26dc8533ce38ebda11f2de36e0ce78c5 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Mon, 5 Aug 2024 13:11:33 +0200 Subject: [PATCH] Pkg complete_remote_package Julia 1.11 compat (#2975) --- src/packages/PkgCompat.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]