-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When a markdown file is renamed in the content/ folder while npx quartz serve --build is running, it crashes with the error message:
Failed to process markdown `content/Untitled.md`: ENOENT: no such file or directory, open '/tmp/quartz/content/Untitled.md'
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/jackyzha0/quartz.gitcd quartznpm inpx quartz build --serve- Create index file
touch index.md - Create a second file (e.g.
Untitled.md), for example usingtouch Untitled.md - Rename the file to something else (e.g.
test.md) On Linux/Mac this would be usingmv Untitled.md test.md - Observe the server failing to process the markdown file.
Expected behavior
The file existence should be checked prior to processing and the server should continue running.
Screenshots and Source
Here's a quick video showing the steps to reproduce this.
This is using the latest commit on main (13ff64d)
https://www.youtube.com/watch?v=j2QhrmlGOv8
Desktop (please complete the following information):
- Quartz Version: v4.5.2 (also tested using latest main)
nodeVersion: v22.21.1npmversion: 10.9.4- OS: NixOS 26.05 (Yarara)
- Browser: Vivaldi
Additional context
None
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working