Skip to content

Indicate which project(s) are active when emitting Pkg errors #4249

@LilithHafner

Description

@LilithHafner

When working with AirspeedVelocity.jl, I got this error:

shell> benchpkg
ERROR: LoadError: ArgumentError: Package AirspeedVelocity [1c8270ee-6884-45cc-9545-60fa71ec23e4] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

Stacktrace:
  [1] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2515
  [2] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2388
  [3] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
  [4] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
  [5] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2375
  [6] macro expansion
    @ ./loading.jl:2314 [inlined]
  [7] macro expansion
    @ ./lock.jl:273 [inlined]
  [8] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2271
  [9] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [10] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [11] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2260
in expression starting at /home/x/.julia/bin/benchpkg:13

The Pkg level issue here is that there is no indication of what project I must activate before running Pkg.instantiate(), nor is there any apparent way to get that information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions