hugo server
mode. 0.37.1
When I change/save a file, I can see hugo rebuilds on the console.
But it change the concerned file result only every 2 changes . So I need to save twice to see my change on the browser.
As I never had this behaviour, I was reluctant to post this report, but as I can reproduce it, well …
I can reproduce like that with a fresh hugo:
I have a test string on the page : test 1
Start hugo server --ignoreCache --gc
to avoid any cache problem.
look my result on the browser : test 1
.
Now :
change the string to test 2
=> I see hugo rebuilding site on the console.
look my result on the refreshed browser ==> still test 1
!!! even If i clear browser cache in chrome developper mode …
So :
I stop hugo on the console.
Start again hugo server --ignoreCache --gc
. And I do nothing on my file.
I just refresh the browser and now I can see test 2
as expected.
[ PS : I suspect this is maybe related with my code using getCSV because I started to see those pb when I was trying to use CSV files in /data/ folder. I no longer use csv in /data/ and I changed for a standard /csv/ folder.
See original post ]
And doing --debug
& --verbose
doesn’t produce any différence I can see.
Sorry the repo is not publicly available, but I can send a zip if needed.
Only difference I can notice is that the wrong build take ~50% time of the right build !
LOG when it doesn't build
@@@@@@ NO CHANGE
INFO 2018/04/04 10:37:14 Received System Events: ["/Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_totaux_new.html": CHMOD “/Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_totaux_new.html”: WRITE]
Change detected, rebuilding site
2018-04-04 10:37:14.665 +0200
DEBUG 2018/04/04 10:37:14 Rebuild for events [""/Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_totaux_new.html": WRITE"]
Template changed “/Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_totaux_new.html”: WRITE
DEBUG 2018/04/04 10:37:14 Load I18n from [%!q(*source.Filesystem=&{[] {{0 0} 0} /Users/didiergeorgieff/Documents/Git/statistiques/i18n {0xc4200ce7e0 0xc420252840 [] map[fr:0xc421131800] fr map[]}})]
WARN 2018/04/04 10:37:14 No translation bundle found for default language “fr”
WARN 2018/04/04 10:37:14 Translation func for language fr not found, use default.
WARN 2018/04/04 10:37:14 i18n not initialized, check that you have language file (in i18n) that matches the site language or the default language.
DEBUG 2018/04/04 10:37:14 Load templates from path “/Users/didiergeorgieff/Documents/Git/statistiques/layouts” prefix “”
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/.DS_Store
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_graph_linebar_multi.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_graph_linebar_multi.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_graph_linebar_multi_new.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_graph_linebar_multi_new.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_graph_linebar_multi_refactoring.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_graph_linebar_multi_refactoring.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_graph_pie_multi.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_graph_pie_multi.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_identifie.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_identifie.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_identifie_new.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_identifie_new.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_synthese.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_synthese.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_totaux.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_totaux.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_totaux_categ.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_totaux_categ.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_totaux_new.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/categ_totaux_new.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/csvdata-table.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/csvdata-table.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/head.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/head.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/sidebar.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/sidebar.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/stats_identifie.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/partials/stats_identifie.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/shortcodes
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/shortcodes/csvdata-stats.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/shortcodes/csvdata-stats.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/shortcodes/test_new.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/layouts/shortcodes/test_new.html
DEBUG 2018/04/04 10:37:14 Load templates from path “/Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts” prefix “theme”
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/_default
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/_default/list.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/_default/list.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/_default/single.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/_default/single.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/_default/terms.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/_default/terms.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/index.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/index.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/pages
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/pages/single.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/pages/single.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials/comments.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials/comments.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials/footer.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials/footer.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials/head.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials/head.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials/script.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials/script.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials/sharing.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials/sharing.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials/sidebar.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials/sidebar.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials/social.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/partials/social.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/post
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/post/single.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/post/single.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/post/summary.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/post/summary.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/rss.xml
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/rss.xml
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/shortcodes
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/shortcodes/barchart.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/shortcodes/barchart.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/shortcodes/linechart.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/shortcodes/linechart.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/shortcodes/relLink.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/shortcodes/relLink.html
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/taxonomy
DEBUG 2018/04/04 10:37:14 Template path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/taxonomy/tags.html
DEBUG 2018/04/04 10:37:14 Add template file from path /Users/didiergeorgieff/Documents/Git/statistiques/themes/uno-master-v2/layouts/taxonomy/tags.html
DEBUG 2018/04/04 10:37:14 Replace 1 shortcodes in “stat-poc-contrat”
DEBUG 2018/04/04 10:37:14 Replace 1 shortcodes in “stat-debug”
DEBUG 2018/04/04 10:37:14 Replace 1 shortcodes in “stat-poc-initial-pie”
DEBUG 2018/04/04 10:37:14 Replace 1 shortcodes in “stat-poc-initial-line”
DEBUG 2018/04/04 10:37:14 Render page to “/stats/stat-poc-contrat.html” with layouts [“stats/single.fr.html.html” “theme/stats/single.fr.html.html” “stats/single.html.html” “theme/stats/single.html.html” “stats/single.fr.html” “theme/stats/single.fr.html” “stats/single.html” “theme/stats/single.html” “_default/single.fr.html.html” “theme/_default/single.fr.html.html” “_default/single.html.html” “theme/_default/single.html.html” “_default/single.fr.html” “theme/_default/single.fr.html” “_default/single.html” “theme/_default/single.html”]
DEBUG 2018/04/04 10:37:14 Render page to “/stats/stat-poc-initial-line.html” with layouts [“stats/single.fr.html.html” “theme/stats/single.fr.html.html” “stats/single.html.html” “theme/stats/single.html.html” “stats/single.fr.html” “theme/stats/single.fr.html” “stats/single.html” “theme/stats/single.html” “_default/single.fr.html.html” “theme/_default/single.fr.html.html” “_default/single.html.html” “theme/_default/single.html.html” “_default/single.fr.html” “theme/_default/single.fr.html” “_default/single.html” “theme/_default/single.html”]
DEBUG 2018/04/04 10:37:14 Render page to “/stats/stat-poc-initial.html” with layouts [“stats/single.fr.html.html” “theme/stats/single.fr.html.html” “stats/single.html.html” “theme/stats/single.html.html” “stats/single.fr.html” “theme/stats/single.fr.html” “stats/single.html” “theme/stats/single.html” “_default/single.fr.html.html” “theme/_default/single.fr.html.html” “_default/single.html.html” “theme/_default/single.html.html” “_default/single.fr.html” “theme/_default/single.fr.html” “_default/single.html” “theme/_default/single.html”]
DEBUG 2018/04/04 10:37:14 Render page to “/stats/stat-poc-initial-pie.html” with layouts [“stats/single.fr.html.html” “theme/stats/single.fr.html.html” “stats/single.html.html” “theme/stats/single.html.html” “stats/single.fr.html” “theme/stats/single.fr.html” “stats/single.html” “theme/stats/single.html” “_default/single.fr.html.html” “theme/_default/single.fr.html.html” “_default/single.html.html” “theme/_default/single.html.html” “_default/single.fr.html” “theme/_default/single.fr.html” “_default/single.html” “theme/_default/single.html”]
DEBUG 2018/04/04 10:37:14 Render page to “/stats/stat-debug.html” with layouts [“stats/single.fr.html.html” “theme/stats/single.fr.html.html” “stats/single.html.html” “theme/stats/single.html.html” “stats/single.fr.html” “theme/stats/single.fr.html” “stats/single.html” “theme/stats/single.html” “_default/single.fr.html.html” “theme/_default/single.fr.html.html” “_default/single.html.html” “theme/_default/single.html.html” “_default/single.fr.html” “theme/_default/single.fr.html” “_default/single.html” “theme/_default/single.html”]
DEBUG 2018/04/04 10:37:14 Render home to “/index.html” with layouts [“page/index.fr.html.html” “theme/page/index.fr.html.html” “page/home.fr.html.html” “theme/page/home.fr.html.html” “page/list.fr.html.html” “theme/page/list.fr.html.html” “page/index.html.html” “theme/page/index.html.html” “page/home.html.html” “theme/page/home.html.html” “page/list.html.html” “theme/page/list.html.html” “page/index.fr.html” “theme/page/index.fr.html” “page/home.fr.html” “theme/page/home.fr.html” “page/list.fr.html” “theme/page/list.fr.html” “page/index.html” “theme/page/index.html” “page/home.html” “theme/page/home.html” “page/list.html” “theme/page/list.html” “index.fr.html.html” “theme/index.fr.html.html” “home.fr.html.html” “theme/home.fr.html.html” “list.fr.html.html” “theme/list.fr.html.html” “index.html.html” “theme/index.html.html” “home.html.html” “theme/home.html.html” “list.html.html” “theme/list.html.html” “index.fr.html” “theme/index.fr.html” “home.fr.html” “theme/home.fr.html” “list.fr.html” “theme/list.fr.html” “index.html” “theme/index.html” “home.html” “theme/home.html” “list.html” “theme/list.html” “_default/index.fr.html.html” “theme/_default/index.fr.html.html” “_default/home.fr.html.html” “theme/_default/home.fr.html.html” “_default/list.fr.html.html” “theme/_default/list.fr.html.html” “_default/index.html.html” “theme/_default/index.html.html” “_default/home.html.html” “theme/_default/home.html.html” “_default/list.html.html” “theme/_default/list.html.html” “_default/index.fr.html” “theme/_default/index.fr.html” “_default/home.fr.html” “theme/_default/home.fr.html” “_default/list.fr.html” “theme/_default/list.fr.html” “_default/index.html” “theme/_default/index.html” “_default/home.html” “theme/_default/home.html” “_default/list.html” “theme/_default/list.html”]
DEBUG 2018/04/04 10:37:14 Render section to “/stats.html” with layouts [“stats/stats.fr.html.html” “theme/stats/stats.fr.html.html” “stats/section.fr.html.html” “theme/stats/section.fr.html.html” “stats/list.fr.html.html” “theme/stats/list.fr.html.html” “stats/stats.html.html” “theme/stats/stats.html.html” “stats/section.html.html” “theme/stats/section.html.html” “stats/list.html.html” “theme/stats/list.html.html” “stats/stats.fr.html” “theme/stats/stats.fr.html” “stats/section.fr.html” “theme/stats/section.fr.html” “stats/list.fr.html” “theme/stats/list.fr.html” “stats/stats.html” “theme/stats/stats.html” “stats/section.html” “theme/stats/section.html” “stats/list.html” “theme/stats/list.html” “section/stats.fr.html.html” “theme/section/stats.fr.html.html” “section/section.fr.html.html” “theme/section/section.fr.html.html” “section/list.fr.html.html” “theme/section/list.fr.html.html” “section/stats.html.html” “theme/section/stats.html.html” “section/section.html.html” “theme/section/section.html.html” “section/list.html.html” “theme/section/list.html.html” “section/stats.fr.html” “theme/section/stats.fr.html” “section/section.fr.html” “theme/section/section.fr.html” “section/list.fr.html” “theme/section/list.fr.html” “section/stats.html” “theme/section/stats.html” “section/section.html” “theme/section/section.html” “section/list.html” “theme/section/list.html” “_default/stats.fr.html.html” “theme/_default/stats.fr.html.html” “_default/section.fr.html.html” “theme/_default/section.fr.html.html” “_default/list.fr.html.html” “theme/_default/list.fr.html.html” “_default/stats.html.html” “theme/_default/stats.html.html” “_default/section.html.html” “theme/_default/section.html.html” “_default/list.html.html” “theme/_default/list.html.html” “_default/stats.fr.html” “theme/_default/stats.fr.html” “_default/section.fr.html” “theme/_default/section.fr.html” “_default/list.fr.html” “theme/_default/list.fr.html” “_default/stats.html” “theme/_default/stats.html” “_default/section.html” “theme/_default/section.html” “_default/list.html” “theme/_default/list.html”]
DEBUG 2018/04/04 10:37:14 Render XML for “sitemap” to “sitemap.xml”
WARN 2018/04/04 10:37:14 [fr] Unable to locate layout for “404”: [404.html theme/404.html]
Total in 75 ms
Thanks for the help.
Yes, I forgot to say but I use that option too -
bep
April 5, 2018, 10:18am
6
See https://github.com/gohugoio/hugo/issues/4566
It doesn’t cover your issue, I think – but I somehow borked parts of the reload logic. It is an area where we lack some automatic testing … I will issue a patch release fairly soon.
Thanks @bep .
Yes it is not exactly the same cause, but the logic behind is similar : no refresh when a page is updated from local content (CSV in my case & not in /data/ folder).
Consistent with all the sites where I have this problem : using local CSV for filling a page.
I will test your patch/0.38.1 when they are out and let you know if it solves this specific trouble.
@bep unfortunately (for me ) the 0.38.1 doesn’t solve my specific reload problem caused by use of CSV files.
Let me know if you want me to test something else.