Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-pkg-installation error should probably load Pkg #53668

Closed
Keno opened this issue Mar 8, 2024 · 1 comment
Closed

Auto-pkg-installation error should probably load Pkg #53668

Keno opened this issue Mar 8, 2024 · 1 comment
Milestone

Comments

@Keno
Copy link
Member

Keno commented Mar 8, 2024

Here's another one of the "things behave differently after loading Pkg" issues:

julia> using BenchmarkTools
ERROR: ArgumentError: Package BenchmarkTools not found in current path.
- Run `import Pkg; Pkg.add("BenchmarkTools")` to install the BenchmarkTools package.
Stacktrace:
 [1] macro expansion
   @ ./loading.jl:2074 [inlined]
 [2] macro expansion
   @ ./lock.jl:273 [inlined]
 [3] __require(into::Module, mod::Symbol)
   @ Base ./loading.jl:2049
 [4] #invoke_in_world#3
   @ ./essentials.jl:1064 [inlined]
 [5] invoke_in_world
   @ ./essentials.jl:1061 [inlined]
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:2042

(@v1.12) pkg>

julia> using BenchmarkTools
 │ Package BenchmarkTools not found, but a package named BenchmarkTools is
 │ available from a registry.
 │ Install package?
 │   (@v1.12) pkg> add BenchmarkTools
 └ (y/n/o) [y]:

Since this is an error path in the REPL, I don't see any reason for this not to try to automatically load Pkg.

@Keno Keno added this to the 1.11 milestone Mar 8, 2024
@Keno
Copy link
Member Author

Keno commented Mar 9, 2024

Dup of #52090, I just searched for the wrong keyword.

@Keno Keno closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant