Skip to content

Commit

Permalink
Pkg complete_remote_package Julia 1.11 compat (#2975)
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp authored Aug 5, 2024
1 parent 67666c0 commit e0055fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/packages/PkgCompat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit e0055fc

Please sign in to comment.