gatsby develop not reflecting changes in textbundle files when written via mac application #36877
Closed
2 tasks done
Labels
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
My workflow uses Ulysses and it's External Folder and TextBundle support (http://textbundle.org). The layout for a post looks something like:
When Ulysses "saves" the textbundle, it effectively removes the
my_post.textbundle
"directory" and rewrites the entire contents (the contents of text.md are updated, but the containingtextbundle
directory was swapped at the same time)When running
gatsby develop
and I make a change in Ulysses, gatsby sees the directory changing. I see this in the console:However, the browser never reflects the updated content in
text.md
(as written by Ulysses). Refreshing the page or navigating away has no effect: the content will only show the original state oftext.md
whengatsby develop
started.Reproduction Link
https://github.com/markphilpot/gatsby_example_blog
Steps to Reproduce
You can't reproduce this via the command line unfortunately. If you look at the TextBundle spec, there are some Mac utlities here -- https://github.com/shinyfrog/TextBundle
The mac code uses NSFileWrapper in directory mode, to essentially flush the filewrapper to disk.
https://developer.apple.com/documentation/foundation/nsfilewrapper/1415981-writetourl
This method uses some filesystem hard linking in it's write process.
Gatsby's filesystem monitoring only sees a new directory and not the changed content.
Expected Result
When viewing post in the browser, the content would reflect the new changes as
textbundle
files are saved.Actual Result
The
my_post
page has the originaltext.md
content, even if you refresh or navigate away and back again.Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: