Comments (10)
Could you try to run
hugo server --logLevel info
And note the lines with livereload
in them when you change something.
You could also try hugo server --poll 1s
. If that works, the Helix must doing some non-standard way of saving files that does not trigger the expected fs events.
from hugo.
This is the output with --logLevel info
Change detected, rebuilding site (#1).
2024-07-25 16:35:34.441 +0200
Template added /_default/baseof.htmlc3gzwd.bck
Template added /_default/baseof.html
INFO build: step process substep resolve content adapter change set changes 2 checked 2 matches 0 duration 36.901µs
INFO build: step process substep resolve page output change set changes 2 checked 448 matches 0 duration 3.843363ms
INFO build: step process substep gc dynacache duration 196.695µs
INFO build: step process substep rebuild templates duration 8.210313ms
INFO build: step process duration 13.327644ms
INFO build: step assemble duration 777ns
INFO build: step render substep pages site de outputFormat html duration 20.021809ms
INFO build: step render pages 0 content 0 duration 20.075914ms
INFO build: step render deferred count 0 duration 917ns
INFO build: step postProcess duration 9.17µs
INFO build: duration 33.51625ms
Web Server is available at http://localhost:1313/ (bind address 0.0.0.0)
Total in 33 ms
INFO livereload: build changed 0 files
from hugo.
adding --poll 1s
fixes the issue.
from hugo.
This is not a hugo issue but a helix issue.
from hugo.
This is not a hugo issue but a helix issue.
Well, that's debatable.
Looking at these 2 lines:
Template added /_default/baseof.htmlc3gzwd.bck
Template added /_default/baseof.html
I'm guessing that the above is hinting at the problem; I suspect that Helix saves to a temp file and then renames it, not sure.
from hugo.
Looks like it: https://github.com/helix-editor/helix/blob/f34dca797cf696a19466ab2b3f7e1ca6ffa2bcb7/helix-view/src/document.rs#L946
from hugo.
Well, that's debatable.
from hugo.
adding
--poll 1s
fixes the issue.
I just spent the day tearing my hair out trying to solve this problem, and this solved it! Maybe there is some better way to deal with this long term than adding --poll 1s
?
from hugo.
This is not a hugo issue but a helix issue.
Well, that's debatable.
Looking at these 2 lines:
Template added /_default/baseof.htmlc3gzwd.bck Template added /_default/baseof.html
I'm guessing that the above is hinting at the problem; I suspect that Helix saves to a temp file and then renames it, not sure.
I'd be surprised if this was the issue. Vim also writes to a temporary file and renames it.
from hugo.
@kirawi We have a few exclusions related to vim, but nothing for .bck files.
Lines 779 to 794 in e1becf1
from hugo.
Related Issues (20)
- Enhance cascade url to include entire path
- Check blockquotes nilpointer
- spam report HOT 1
- Add hugo.Context
- Upgrade to Go 1.23
- Fix shaky ToMath tests on CI
- Hugo alert heading is case-sensitive and upper case only ([!NOTE]), but GitHub Alert Markdown extension is case-insensitive ([!note]) HOT 1
- Can't upgrade with winget upgrade HOT 2
- RelPermalink incorrect for scss in combination with canonifyURLs HOT 2
- Next/NextInSection and Prev/PrevInSection are flipped? HOT 4
- Chomp/Trim spaces in math.ToHTML HOT 1
- Add ContentWithoutSummary
- Persistent Build Error from front matter changes (YAML, TOML, etc)
- Image processing strips out HDR data HOT 2
- hugo new content throws stack trace / hugo server does not show error HOT 7
- Different lookup order for shortcode templates HOT 3
- Webp EXIF reading fails on 0.133.0
- Live reload broken on everything apart from the content directory HOT 2
- panic related to translationKey and page resources HOT 1
- Lookup Order of AMP single pages in documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo.