-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hugo server crash when saving a partial used in content adapter #12538
Comments
Did not crash on Windows 11 WSL2
|
Reproducible on Linux. |
regarding WSL won't crash:I tested this with being in the windows path mounted cd /mnt/c/_repos/github/hugo-github-issue
hugo server
=> looks like hugo server does not see the change from windows in the WSL context. being in a WSL folder ~/hugo-forum-issue
=> it crashes Conclusion WSL
|
I cannot reproduce this on MacOS and we have a very similar (and passing on all platforms) integration test. I don't doubt that this is a real issue, but I'm just saying that it's hard for me to fix (yes, I have some VMs I can boot up, but that may take some ... days). |
All ok. As workaround i just add the partial directly to a layout. Once it's ready I take it over to the adapter. |
Never mind, I actually can reproduce it -- I just didn't follow the (excellent) issue description to the letter. |
good job, thx - works like a charm on Windows and WSL |
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. |
Steps to reproduce (Hugo 126.1 on Windows 11)
hugo new && hugo new theme
create
layouts/partials/gettitle.html
create
content/_content.gotmpl
fire up
hugo server
visit site to see the text headline at the bottom of the page
edit
layouts/partials/gettitle.html
in fact the change does not matter a simple blank or newline will do
What version of Hugo are you using?
The text was updated successfully, but these errors were encountered: