Warm-reload not working, how to diagnose?

Using zola serve, any *.md changes don’t show up on F5 / Ctrl+F5 / Ctrl+R / Ctrl+Shift+R page reloads: I have to force-quit-and-restart zola serve to see those changes.

This is an (Arch-deriv) Garuda Linux.

How to troubleshoot this — seems like there’s no “verbose-level logging” (at least, help doesn’t mention it).

I can report that ulimit returns unlimited and cat /proc/sys/fs/inotify/max_user_watches returns 524288.

Solved with 0.19.1, was a bug in 0.19.0 apparently =)

Yep it should be fixed for Linux. Do you get zola serve - automatic firefox refresh leads to `Not Found` · Issue #2552 · getzola/zola · GitHub by any chance?

Just tried with FF, seems to work just fine!

@keats I should add: I do see that very “Not Found” rendition sometimes. But rarely, no idea under what circumstances (other than being on Change-Detected), in Chromium (so not FF-specific I’d gather), always solved by F5.

1 Like

I have this problem with v0.19.2 on MacOS. Zola recognises when I add a new file into the system, but it does not live reload for any changes to CSS or MD files, and even manually refreshing my browser does not load the updated file: I have to quite zola serve and run it again.

I was previously running 0.17.2, it was only after updating to 0.19.2 that the detection stopped working. What can I do to help troubleshoot/fix this?

Which editor are you using?

Hi @keats I’m using Sublime Text 4, build 4180 latest. I run a separate terminal for zola.

if you can compile the CLI, you can add a println! in zola/src/fs_utils.rs at master · getzola/zola · GitHub to see what kind of events are emitted when you save edits. Editors do weird things

Thanks, but unfortunately I don’t have the knowledge to do that, I’m a web designer not a programmer. Is there anything else I can try that doesn’t involve compiling zola sources?

What OS are you on? If you’re on a Mac I can try to reproduce it myself, otherwise it’s going to be harder

I use Windows and MacOS. The Windows version of 0.19.2 works fine, no problems with live reload. But the MacOS version is broken. This is on MacOS Sonoma 14.7.1.

(BTW sorry for delayed replies, I’m not getting notifications from here despite having them switched on.)

A bit more info: I noticed that Zola was picking up file changes when I edited the files on a different machine.

I use syncthing to synchronise my files across multiple devices across my home network. When I edit a file on Windows in Sublime Text, the windows version of Zola 0.19.2 will live reload perfectly. But the livereload wasn’t working on MacOS at all when saving through Sublime Text.

Today when I opened my Macbook, I noticed I still had zola serve running in an open terminal, and I realised that it was serving the website with all the changes I’d made on my Windows machine. I checked the terminal and it had indeed picked up the changes that had been synschronised by syncthing.

So that seems a clear indicator that Sublime Text on MacOS is no longer compatible with Zola’s filewatcher for live reload.

Does that help at all @keats ??

Can you build the next branch from the repo and try? There has been some changes for the Nova editor on Mac but that might work for sublime as well

I had 20 mins to spare and gave it a go: compiled the next branch OK and it works with Sublime! Excellent. And now I know how to build zola too, which is something I didn’t think I’d learn today (OK, fair enough, it’s very easy given the docs, thanks!) @keats

(sorry for the two deleted posts above!)

1 Like

@keats FYI, if I close my macbook and leave zola serve running (the new compiled binary from the next branch), when I return and re-open the macbook, zola is still running but generating thousands of errors in this format:

Error: File system event receiver errors: RecvError

I have to command+c to quit it and then I can re run it OK. Older versions of zola left running in the terminal when the laptop is closed have never done this. Just thought you should know.