Skip to content

Autoinstall prompt should appear in more cases #53549

@aplavin

Description

@aplavin

Currently:

julia> using StatsBase
 │ Package StatsBase not found, but a package named StatsBase is available from a registry. 
 │ Install package?

but

julia> using StatsBase; mean([])
ERROR: ArgumentError: Package StatsBase not found in current path.
- Run `import Pkg; Pkg.add("StatsBase")` to install the StatsBase package.

I think it should appear whenever the input starts with a using or import statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions