SOLVED: Hugo server --watch not generating output

I’m using hugo_0.12_darwin_amd64 on a MacBook Air (OSX 10.9.5) and am having trouble generating content.

I’m using the hyde-x layout and running “hugo server --watch” from the directory with my config.toml file. The output when I start up is:

lolian:downtroddenville.com mdhender$ hugo server --watch
0 draft content
0 future content
2 pages created
4 tags created
2 categories created
in 9 ms
Watching for changes in /Users/mdhender/Sites/hugo/downtroddenville.com/content
Serving pages from /Users/mdhender/Sites/hugo/downtroddenville.com/public
Web Server is available at http://localhost:1313
Press ctrl+c to stop

It isn’t catching updates, though. If I change a .md file, nothing is regenerated

[hit control-c]
lolian:downtroddenville.com mdhender$ ll content/blog/inaugural-strip.md public/blog/inaugural-strip/index.html
-rw-r–r-- 1 mdhender staff 664 Sep 20 11:02 content/blog/inaugural-strip.md
-rw-rw-r-- 1 mdhender staff 3353 Sep 20 11:01 public/blog/inaugural-strip/index.html

The .md is newer than the .html.

The “check” option doesn’t seem to find issues.

lolian:downtroddenville.com mdhender$ hugo check --verbose
INFO: 2014/09/20 Using config file: /Users/mdhender/Sites/hugo/downtroddenville.com/config.toml
INFO: 2014/09/20 found taxonomies: map[string]string{“tag”:“tags”, “category”:“categories”}
firstpost.md (renderer: markdown) (layout: blog/single.html, exists: false) (layout: _default/single.html, exists: false) (layout: theme/blog/single.html, exists: false) (layout: theme/_default/single.html, exists: false)
canonical => /Users/mdhender/Sites/hugo/downtroddenville.com/public/blog/spf13-vim-3-0-release-and-new-website/index.html

inaugural-strip.md (renderer: markdown) (layout: blog/single.html, exists: false) (layout: _default/single.html, exists: false) (layout: theme/blog/single.html, exists: false) (layout: theme/_default/single.html, exists: false)
canonical => /Users/mdhender/Sites/hugo/downtroddenville.com/public/blog/inaugural-strip/index.html

lolian:downtroddenville.com mdhender$ ll content/blog/inaugural-strip.md public/blog/inaugural-strip/index.html
-rw-r–r-- 1 mdhender staff 664 Sep 20 11:02 content/blog/inaugural-strip.md
-rw-rw-r-- 1 mdhender staff 3353 Sep 20 11:01 public/blog/inaugural-strip/index.html

If I regenerate the template, then hugo does recreate the content.

lolian:downtroddenville.com mdhender$ hugo -t hyde-x
0 draft content
0 future content
2 pages created
4 tags created
2 categories created
in 41 ms
lolian:downtroddenville.com mdhender$ ll content/blog/inaugural-strip.md public/blog/inaugural-strip/index.html
-rw-r–r-- 1 mdhender staff 664 Sep 20 11:02 content/blog/inaugural-strip.md
-rw-rw-r-- 1 mdhender staff 3353 Sep 20 11:05 public/blog/inaugural-strip/index.html

This is very strange. Hugo doesn’t check timestamps at all. It simply “watches” the filesystem for write or rename operations to any of the files in the content, layouts or static directories (in the theme or source directories). Running in verbose mode as you are will tell you each time a write or rename operation is detected. I’ve never heard of it not noticing any changes before.

Adding “theme = “hyde-x”” to the config file fixed this.

Just so you know, I have observed a similar issue (also on OSX 10.9.5 and on a MacBook Air), but with plain content files. On a semi-regular basis, I’ll save a content file in vim and the page will not update. In pretty much every case, simply saving it again does the trick and the content updates. I’ll be upgrading to 10.10 sometime this evening and will report back if it resolves the issue.