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

Display banner from Pluto.__init__, not during precompile #2628

Merged
merged 4 commits into from
Sep 18, 2023

Conversation

mgkuhn
Copy link
Contributor

@mgkuhn mgkuhn commented Aug 12, 2023

Move the printing of the banner into an init function, such that it gets printed at load time, and not any more during pre-compilation (where Pkg currently distractingly presents the banner as a warning).

To preserve the current behaviour that the banner is only shown once after installing the package, use the Scratch package to record if the banner has already been shown.

fixes #548
fixes #2589

@github-actions
Copy link
Contributor

Try this Pull Request!

Open Julia and type:

julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/mgkuhn/Pluto.jl", rev="banner2")
julia> using Pluto

@@ -25,6 +25,7 @@ PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
RegistryInstances = "2792f1a3-b283-48e8-9a74-f99dce5104f3"
RelocatableFolders = "05181044-ff0b-4ac5-8273-598c1e38db00"
Scratch = "6c6a2e73-6563-6170-7368-637461726353"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a compat entry?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compat entry added (needs at least Scratch 1.1 due to the underscore used in the key banner_shown)

Use the Scratch package to record if the banner has already been shown.

fixes fonsp#548
Copy link
Owner

@fonsp fonsp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for contributing! Will merge after the CI failures are figured out :)

@fonsp
Copy link
Owner

fonsp commented Sep 13, 2023

Retried the frontend tests a bunch of times, it looks like the Pluto server is not launching or is not accepting connections, but the logs are hidden. Working on #2645 to be able to see the logs.

@fonsp fonsp merged commit 89037c8 into fonsp:main Sep 18, 2023
14 of 15 checks passed
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

Successfully merging this pull request may close these issues.

Pluto shows welcome message on precompilation Please don't print banner
2 participants