Skip to content

Bad error for unknown package #32

@Keno

Description

@Keno
julia> JLLPrefixes.collect_artifact_paths(["ripgrep_jll"])
ERROR: MethodError: no method matching haskey(::Vector{Base.UUID}, ::String)
The function `haskey` exists, but no method is defined for this combination of argument types.

Closest candidates are:
  haskey(::Pkg.Types.Manifest, ::Any)
   @ Pkg ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/Pkg/src/Types.jl:323
  haskey(::REPL.Terminals.TTYTerminal, ::Any)
   @ REPL ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/REPL/src/Terminals.jl:155
  haskey(::LibGit2.CachedCredentials, ::Any)
   @ LibGit2 ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/LibGit2/src/types.jl:1357
  ...

Stacktrace:
  [1] fixups_from_projectfile!(ctx::Pkg.Types.Context)
    @ Pkg.Operations ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/Pkg/src/Operations.jl:238
  [2] add(ctx::Pkg.Types.Context, pkgs::Vector{…}, new_git::Set{…}; allow_autoprecomp::Bool, preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, target::Symbol)
    @ Pkg.Operations ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/Pkg/src/Operations.jl:1710
  [3] add
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/Pkg/src/Operations.jl:1680 [inlined]
  [4] add(ctx::Pkg.Types.Context, pkgs::Vector{…}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, target::Symbol, allow_autoprecomp::Bool, kwargs::@Kwargs{…})
    @ Pkg.API ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/Pkg/src/API.jl:328
  [5] (::JLLPrefixes.var"#49#50"{Bool, Dict{Pkg.Types.PackageSpec, Dict}})()
    @ JLLPrefixes ~/.julia/packages/JLLPrefixes/SbX4C/src/JLLPrefixes.jl:140
  [6] activate(f::JLLPrefixes.var"#49#50"{Bool, Dict{Pkg.Types.PackageSpec, Dict}}, new_project::String)
    @ Pkg.API ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.13/Pkg/src/API.jl:1401
  [7] #47
    @ ~/.julia/packages/JLLPrefixes/SbX4C/src/JLLPrefixes.jl:69 [inlined]
  [8] with_depot_path(f::JLLPrefixes.var"#47#48"{Bool, String, Dict{Pkg.Types.PackageSpec, Dict}}, new_path::String)
    @ JLLPrefixes ~/.julia/packages/JLLPrefixes/SbX4C/src/pkg_utils.jl:205
  [9] #45
    @ ~/.julia/packages/JLLPrefixes/SbX4C/src/JLLPrefixes.jl:69 [inlined]
 [10] #with_no_auto_precompilation##0
    @ ~/.julia/packages/JLLPrefixes/SbX4C/src/pkg_utils.jl:46 [inlined]
 [11] withenv(f::JLLPrefixes.var"#with_no_auto_precompilation##0#with_no_auto_precompilation##1"{JLLPrefixes.var"#45#46"{…}}, keyvals::Pair{String, String})
    @ Base ./env.jl:265
 [12] with_no_auto_precompilation
    @ ~/.julia/packages/JLLPrefixes/SbX4C/src/pkg_utils.jl:45 [inlined]
 [13] #43
    @ ~/.julia/packages/JLLPrefixes/SbX4C/src/JLLPrefixes.jl:69 [inlined]
 [14] with_no_pkg_handrails(f::JLLPrefixes.var"#43#44"{String, Bool, String, Dict{Pkg.Types.PackageSpec, Dict}})
    @ JLLPrefixes ~/.julia/packages/JLLPrefixes/SbX4C/src/pkg_utils.jl:32
 [15] collect_artifact_metas(dependencies::Vector{Pkg.Types.PackageSpec}; platform::Base.BinaryPlatforms.Platform, project_dir::String, pkg_depot::String, verbose::Bool)
    @ JLLPrefixes ~/.julia/packages/JLLPrefixes/SbX4C/src/JLLPrefixes.jl:69
 [16] collect_artifact_metas(dependencies::Vector{Pkg.Types.PackageSpec})
    @ JLLPrefixes ~/.julia/packages/JLLPrefixes/SbX4C/src/JLLPrefixes.jl:46
 [17] collect_artifact_paths(dependencies::Vector{Pkg.Types.PackageSpec}; kwargs::@Kwargs{})
    @ JLLPrefixes ~/.julia/packages/JLLPrefixes/SbX4C/src/JLLPrefixes.jl:274
 [18] collect_artifact_paths
    @ ~/.julia/packages/JLLPrefixes/SbX4C/src/JLLPrefixes.jl:273 [inlined]
 [19] collect_artifact_paths(pkg_names::Vector{String}; kwargs::@Kwargs{})
    @ JLLPrefixes ~/.julia/packages/JLLPrefixes/SbX4C/src/JLLPrefixes.jl:303
 [20] collect_artifact_paths(pkg_names::Vector{String})
    @ JLLPrefixes ~/.julia/packages/JLLPrefixes/SbX4C/src/JLLPrefixes.jl:302
 [21] top-level scope
    @ REPL[4]:1
Some type information was truncated. Use `show(err)` to see complete types.

(Assuming ripgrep_jll not in the current manifest)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions