Closed irkode closed 1 month ago
Did not crash on Windows 11 WSL2
Reproducible on Linux.
I tested this with being in the windows path mounted
cd /mnt/c/_repos/github/hugo-github-issue
hugo server
The browser used does not run in WSL
editing the code was done in WSL
With this setup the server does not crash, but also no change is displayed
viewing the shortcode in WSL and Windows both shows the same content
=> looks like hugo server does not see the change from windows in the WSL context.
=> it crashes
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. If there's anything addinional you like me to test. Just drop me a note.
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?