jupyter-book / mystmd

Command line tools for working with MyST Markdown.
https://mystmd.org/guide
MIT License
201 stars 61 forks source link

Autoupdate does not work when parent folder is `.hidden` #1060

Open Doublonmousse opened 6 months ago

Doublonmousse commented 6 months ago

myst start never updates the website, I need to restart it every single time a modification is made.

Additional notes

The website folder was initialized on another computer, running myst start directly, on mac os (mac mini m2).

There is also a space in the path folder

rowanc1 commented 6 months ago

Can you share a small reproducible example of this happening as a git repository? I cannot reproduce locally.

The build not re-triggering means that no files have been found to change. Is it related to the space in the path folder?

Doublonmousse commented 6 months ago

Actually, testing it in more detail, I find that I cannot get it to work only for external nfts drives on mac mounted using mounty (so that the path includes a /Users/user/.mounty/drive name/ ... /myst folder)

It seems that it is general to any path that contains a .folder_name somewhere (if I create a .test folder, and initialize a myst document inside it, the issue appears).

Arguably this doesn't happen often (outside of using mounty on macos)

rowanc1 commented 6 months ago

I believe that we are explicitly ignoring hidden folders (.folder) in the watch command, other folks were getting performance issues when they had many files in hidden folders in the project (pixi python management I think). I am a bit surprised that this is also being ignored if the myst command is started inside a hidden folder though.