Skip to content
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 fails to refresh when filename includes NFC characters in MacOS #8429

Closed
ironsand opened this issue Apr 16, 2021 · 3 comments · Fixed by #9366
Closed

hugo server fails to refresh when filename includes NFC characters in MacOS #8429

ironsand opened this issue Apr 16, 2021 · 3 comments · Fixed by #9366

Comments

@ironsand
Copy link

I'm using hugo inside a Dropbox folder in MacOS.
Dropbox renames a NFD Unicode filename to NFC automatically.
And when the filename includes NFC characters, hugo fails to refresh the content.

$ hugo new posts/ü.md
/Users/ironsand/Dropbox/www/mysite/content/posts/ü.md created
$ hugo server -D --disableFastRender
# edit the file here
# -----------------------
Change detected, rebuilding site.
2021-04-16 18:42:33.639 +0900
Source changed "/Users/ironsand/Dropbox/www/mysite/content/posts/ü.md": WRITE
Total in 144 ms

hugo detects when the file changed, but the change doesn't appear in the browser.

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.82.0+extended darwin/amd64 BuildDate=unknown

Does this issue reproduce with the latest release?

yes

@bep bep added the Bug label Apr 16, 2021
@bep bep added this to the v0.83 milestone Apr 16, 2021
@bep
Copy link
Member

bep commented Apr 16, 2021

As a workaround you can ... rename the file.

@bep bep modified the milestones: v0.83, v0.84 May 1, 2021
@bep bep modified the milestones: v0.84, v0.85 Jun 18, 2021
@bep bep modified the milestones: v0.85, v0.86 Jul 5, 2021
@bep bep modified the milestones: v0.86, v0.87, v0.88 Jul 26, 2021
@bep bep modified the milestones: v0.88, v0.89 Sep 2, 2021
@bep bep modified the milestones: v0.89, v0.90 Nov 2, 2021
@bep bep modified the milestones: v0.90, v0.91.0 Dec 13, 2021
@bep bep modified the milestones: v0.91.0, v0.92.0 Dec 22, 2021
@roointan
Copy link
Contributor

roointan commented Jan 5, 2022

Related to issue #2203 , and commit 39df772 if norm.NFC.String(name) is removed it works correctly (I'm working on this issue, first time contribution)

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants