For some reason, in the middle of nowhere, my next invocation of hugo server
stopped watching the content
subdirectory. Here’s a typical output:
> hugo server -Dvw
WARN 2018/07/03 22:18:26 No translation bundle found for default language "en"
WARN 2018/07/03 22:18:26 Translation func for language en not found, use default.
WARN 2018/07/03 22:18:26 i18n not initialized, check that you have language file (in i18n) that matches the site language or the default language.
INFO 2018/07/03 22:18:26 Using config file: site\config.toml
Building sites … INFO 2018/07/03 22:18:26 syncing static files to site\
INFO 2018/07/03 22:18:26 found taxonomies: map[string]string{"tag":"tags", "category":"categories"}
WARNING: calling IsSet with unsupported type "ptr" (*hugolib.MenuEntry) will always return false.
| EN
+------------------+----+
Pages | 35
Paginator pages | 0
Non-page files | 3
Static files | 94
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Total in 145 ms
Watching for changes in site\{layouts,static,themes}
Watching for config changes in site\config.toml
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
Notice how it says Watching for changes in ... {layouts,static,themes}
. Previously content
was also usually listed there, but now it suddenly isn’t. I haven’t changed anything, just kept editing the content files, and had to restart the server once, and now all of a sudden watching doesn’t work.
Notably, Hugo still generates all the content correctly when I run it in standalone mode, it’s just the watching that’s broken.
System info:
Hugo Static Site Generator v0.42.1 windows/amd64 BuildDate: 2018-06-13T10:17:09Z
Windows 10 Version 1803