kritzcreek / pscid

A lightweight, fast and unintrusive PureScript file-watcher
GNU Lesser General Public License v3.0
133 stars 16 forks source link

Pass follow: true to gaze to follow symlinked directories #61

Closed rnons closed 5 years ago

rnons commented 5 years ago

Similar to https://github.com/purescript-contrib/pulp/pull/378

When I have a shared folder like

sym
├── A.purs
├── B
│   └── B.purs

After cd pkgA/src && ln -s ../../sym ., pscid will only watch for sym/A.purs but not sym/B/B.purs.

The reason is gaze uses globule, which uses glob. The readme of glob says

** ... ... does not crawl symlinked directories.

Options

follow Follow symlinked directories when expanding ** patterns. Note that this can result in a lot of duplicate references in the presence of cyclic links.

kritzcreek commented 5 years ago

Thanks for the research! Does this fix some of the watcher problems you've encountered?

rnons commented 5 years ago

No, I think they are separate problems. I have #60 in normal directories.

kritzcreek commented 5 years ago

Allright, too bad. Let's start with this one then, Thanks