gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
73.92k stars 7.41k forks source link

File watching not working on Linux Mint #4468

Closed mydoghasworms closed 6 years ago

mydoghasworms commented 6 years ago

I am developing with Hugo on Linux Mint. Up until yesterday or the day before, the file watching feature of Hugo was working beautifully. Then, for no reason, and I think after I did an update on Mint, this feature stopped working. Restarting has not helped. I followed the advice from https://discourse.gohugo.io/t/hugo-server-watch-not-er-watching/1592/9 and tried a different editor (I am using VS Code) but this makes no difference. When I start hugo server, it gives the message Watching for changes in /home/user/Projects/hugo/website/{content,data,layouts,static,themes} but whatever I change, it does not register.

mydoghasworms commented 6 years ago

OK, I think I managed to solve the problem (for now) by increasing the inotify max_user_watches settings as described here: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers

mydoghasworms commented 6 years ago

The value was set to 8192 based on cat /proc/sys/fs/inotify/max_user_watches, in case anybody is wondering.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.