juliaup icon indicating copy to clipboard operation
juliaup copied to clipboard

Error message disappears too quickly

Open davidanthoff opened this issue 3 years ago • 2 comments

I deleted all files in juliaup, then from the command prompt, then ran julia.

No Julia version for channel 1 is installed on this system. Run:

  juliaup update

to install Julia 1, the latest Julia version for the current channel.

Windows console windows are closed as soon as their program exits. I suggest adding a "press any key to exit" read prompt to ensure the window stays open so the message can be read.

Originally posted by @BioTurboNick in https://github.com/davidanthoff/juliaup/issues/36#issuecomment-848779449

davidanthoff avatar May 26 '21 14:05 davidanthoff

Here is another idea: if there is really no Julia version to run installed, we could show a prompt that queries the user whether they want to install the latest version of Julia for that channel, and if they say "yes" we install it. That would be more convenient in any case, plus there would be another benefit: if we just add a prompt "press any key to exist" then that makes sense if Julia is started from the start menu, but it is kind of unnecessary if Julia is started from a shell. But if the prompt actually asks whether a user wants to install something then the prompt makes sense in both scenarios.

davidanthoff avatar May 26 '21 14:05 davidanthoff

Might be worth generalizing this. Offering to upgrade to new version just before launching Julia would also be nice.

BioTurboNick avatar May 26 '21 15:05 BioTurboNick