gohugoio / hugo

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

HEAD thinks every template is incomplete when --watching #656

Closed dunn closed 9 years ago

dunn commented 9 years ago

I think this only started happening after 728d0fa.

When I run hugo it builds the site no problem, but if I set it to watch for changes and rebuild, things sort of blow up. For every single piece of content, and for 404.html and index.html, hugo complains that it's trying to render an incomplete template:

Change detected, rebuilding site
2014-11-20 14:50 -0800
ERROR: 2014/11/20 Error while rendering taxononomy category: html/template: "taxonomy/category.html" is an incomplete template
ERROR: 2014/11/20 Error while rendering taxononomy category: html/template: "taxonomy/category.html" is an incomplete template

[and so on]

ERROR: 2014/11/20 Error while rendering page courses/w15/courses/w15/297a.md: html/template: "courses/single.html" is an incomplete template
ERROR: 2014/11/20 Error while rendering homepage: html/template: "index.html" is an incomplete template
ERROR: 2014/11/20 Error while rendering 404 page: html/template: "404.html" is an incomplete template

I'm on Yosemite 10.10.1.

I tried this on two different sites I build with hugo so I don't think it's just some peculiarity on my end.

bep commented 9 years ago

728d0fa was a documentation only update, so that's most likely not the cause of this.

Is any of your failing sites' source public? If not, could you publish a reproduce-able case?

bep commented 9 years ago

Never mind - I get the same error from one of my sites. Looks like one of @spf13's latest commits.

spf13 commented 9 years ago

I just refactored in that area. I'll take a look. I definitely could have missed something.

Steve Francia spf13.com @spf13

On Nov 20, 2014, at 6:20 PM, Bjørn Erik Pedersen notifications@github.com wrote:

Never mind - I get the same error from one of my sites. Looks like one of @spf13's latest commits.

— Reply to this email directly or view it on GitHub.

spf13 commented 9 years ago

It's definitely something I did. I can reproduce and will be fixing it shortly. Ugg. This is a pretty ugly bug. Only happens when watching though. I should have tested more. I only tested with building (not on rebuilds while watching).

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.