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

Fix: Don't drop disabled cells #2677

Merged
merged 3 commits into from
Oct 30, 2023
Merged

Fix: Don't drop disabled cells #2677

merged 3 commits into from
Oct 30, 2023

Conversation

Pangoraw
Copy link
Collaborator

Fixes #2676.

@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/fonsp/Pluto.jl", rev="disabled_cells_dropped")
julia> using Pluto

@@ -56,18 +56,24 @@ function save_notebook(io::IO, notebook::Notebook)
println(io)

cells_ordered = collect(topological_order(notebook))

# TODO: add test for this case
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 comment here to explain when this can happen?

@ederag
Copy link

ederag commented Oct 28, 2023

While in "safe preview" the file is modified (that's #2674),
but after "Run notebook code", the file is back to normal (only the Pluto version changed from 0.19.29).
So this PR does fix #2676 indeed, even for larger, more involved files (with macros, "skip as script" cells, ...)
Thanks !

@Pangoraw
Copy link
Collaborator Author

Thanks a lot for testing @ederag and for the detailed report!

@fonsp
Copy link
Owner

fonsp commented Oct 30, 2023

@Pangoraw merging this because I am doing a release, but can you still add that comment? (But don't push to main until the release is tagged 🙈)

@fonsp fonsp merged commit 6a33102 into main Oct 30, 2023
14 checks passed
@fonsp fonsp deleted the disabled_cells_dropped branch October 30, 2023 17:22
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.

Disabled cell content sometimes disappears from file
3 participants