Outdated information in error, Pkg 3.0?

After some cleaning on my computer I run Julia 1.0 and have

using IJulia
ERROR: ArgumentError: Package IJulia not found in current path:
- Run `Pkg.add("IJulia")` to install the IJulia package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:817

Since Pkg.add was removed from REPL is this error just legacy of previous versions? Or this error is left for Jupyter/other environments use?

What do you mean?

import Pkg; Pkg.add("IJulia")

still works. The error message was tweaked here: fixes issue 28553, improves error message for missing packages by affans · Pull Request #28555 · JuliaLang/julia · GitHub

1 Like

Thank you for explanation, I wrongly understood someone words that they removed Pkg from REPL, when they just moved it to some Basic (?) library. I try to fallow changes in the version 1.0, still I miss something.

I think the error should say:
Run "Using Pkg; Pkg.add("IJulia")" to install the IJulia package.

It will be changed to that in Julia v1.0.1.

2 Likes