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

Viewing/Editing summary.md deletes all my files #2323

Open
ebigalee opened this issue Feb 23, 2024 · 5 comments
Open

Viewing/Editing summary.md deletes all my files #2323

ebigalee opened this issue Feb 23, 2024 · 5 comments
Labels
C-bug Category: A bug, incorrect or unintended behavior

Comments

@ebigalee
Copy link

Problem

When I at, first set up my book, I updated summary.md and it made the pages for me. Later, I sometimes did that, sometimes made the page and then made a choice about whether to include it. (I don't know if that is relevant) But regardless, I'm at a point where I need to add new pages and when I click on summary.md in VSCode and open the file, even if I don't edit it, it marks all of my pages as uncommited and deletes the content.

Steps

  1. Click on summary.md and open it in VS Code
  2. Make any change
  3. All files are deleted

Possible Solution(s)

No response

Notes

It's possible that this is only an issue if running: mdbook serve --open but I'm not sure and I'm scared to go back and try this. I'm in the middle of the semester trying to use this as a way to provide a course reference / workbook and I don't want to lose anything else. The first time it happened, it deleted all the MD files I have made under src that were impacted by me reordering summary.md and created new files that only had the title. It deleted my versions with all my work, even though most of those, perhaps all of those files were originally created by adding to summary.md in the first place. Please help.

Version

mdbook v0.4.21
@ebigalee ebigalee added the C-bug Category: A bug, incorrect or unintended behavior label Feb 23, 2024
@ehuss
Copy link
Contributor

ehuss commented Feb 23, 2024

Can you clarify exactly what files were removed (what were their paths)? What does book.toml contain?

mdbook doesn't ever delete anything except the output directory called book by default.

@ebigalee
Copy link
Author

ebigalee commented Feb 23, 2024 via email

@ebigalee
Copy link
Author

ebigalee commented Mar 2, 2024 via email

@joshrotenberg
Copy link
Contributor

Weird, I read this issue a couple days ago and I think I just saw the same behavior. I'm pretty sure it's a VS Code issue, or rather possibly an issue with a Markdown plugin. @ebigalee do you happen to use Markdown All in One?

@ebigalee
Copy link
Author

ebigalee commented Apr 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: A bug, incorrect or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants