I'm using Hugo 0.26. Here is my list of ignoreFiles in config.toml:
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
When I edit a .Rmarkdown file, hugo server still rebuilds the site:
Change detected, rebuilding site
2017-08-17 12:02 -0500
Source changed "..../content/post/2017-08-09-test-rmarkdown.Rmarkdown": WRITE
Built site for language en:
0 draft content
0 future content
0 expired content
6 regular pages created
24 other pages created
1 non-page files copied
0 paginator pages created
5 tags created
3 categories created
total in 12 ms
It seems to be a regression from #1189.
I can also confirm this is still happening. Hugo Serve, on Hugo 0.26, ignores the ignoreFiles option.
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
This still happens. Tested using:
ignoreFiles: [ "\\.tmp$", "\\.tmp\\-browserify" ]
The ignoreFiles setting instructs Hugo to skip building content files during the "build" stage. The file watcher used to detect content changes does not currently use the ignoreFiles setting.
In the case of browserify, this is annoying because the site reloads on the tmp file change, but not after the assets is compiled.
Thank you, @moorereason .
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
The issue remains:
Syncing assets/scripts/index.js.tmp-browserify-42993960592106339469 to /
I'm having this problem, I think. Every time a make an edit in Vim a swap file is updated and then Hugo (running dev mode) reloads the page in the browser. I've added ignore statements but they appear to not work. The page should obviously only load when I save the file in question.
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
I don't think this issue has been fixed yet.
Can confirm I'm still having the same issue 馃槩.
Any idea when this might be fixed? I've run into an annoying issue where when emacs saves a file, the lock file for it is deleted causing the server to restart the build but then emacs deletes the actual file being written to (so that it can overwrite it). These two steps are happening slow enough that the build crashes because the file I'm editing doesn't exist and then doesn't recognize the new file has appeared, meaning I have to close and restart the server to fix it. I can also start editing the file again, which produces a new lock file and forces the server to rebuild, but that's not exactly ideal.
The issues with vim/emacs, I believe, are related to discussion in #6773.
@nu8 We are talking about hugo server here. Even if a file is ignored by the ignoreFiles setting, the server still watches for its changes, as you can see from the message in my first post above:
Source changed "..../content/post/2017-08-09-test-rmarkdown.Rmarkdown": WRITE
We want hugo server to ignore these files and don't respond to their changes. I just verified with the latest Hugo release, and it's still the same.
@nu8 if you've read the first comment in this thread you'll know OP already has "\\.Rmarkdown$" in their config file. What exactly are you trying to say here?
I said it pretty clearly already, the
ignoreFilessetting is only honored for Page Bundles.
@nu8 Okay. I didn't get that in your previous reply, and now I get it. Thanks! I can confirm it works for page bundles.
Most helpful comment
I can also confirm this is still happening. Hugo Serve, on Hugo 0.26, ignores the ignoreFiles option.