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

Autoinstall? #3

Closed
aplavin opened this issue Apr 10, 2024 · 3 comments
Closed

Autoinstall? #3

aplavin opened this issue Apr 10, 2024 · 3 comments

Comments

@aplavin
Copy link

aplavin commented Apr 10, 2024

I wonder if using SomePackage executed by BasicAutoloads triggers the base Julia autoinstall prompt?
Like

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

Doesn't seem so on the first glance...

This is a very convenient feature to have! See https://gist.github.com/aplavin/cb39121225954e37b6fe8efeebfb6404 for an example & autoload implementation that triggers this prompt.

@LilithHafner
Copy link
Owner

Good feature! I've implemented it as a special case for target exprs of the form using Blah, Blah, Blah and import Blah, Blah, Blah.

31a92d6

@aplavin
Copy link
Author

aplavin commented Apr 10, 2024

Great! Thanks for packaging this, I'll probably switch to this package instead of the adhoc implementation in startup.jl (gist above).

@LilithHafner
Copy link
Owner

Lovely! The hope is to combine all the nice autoload features folks have hacked together into a single easy-to-use place

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

2 participants