Open sebastianbergmann opened 10 years ago
It looks like we follow symlinked files but not directories. Interesting. I'll take a look.
In the meantime, you can copy them in as the docs suggest -- but I agree that this should work.
Chatted with our tech lead about this. It turns out that it's surprisingly difficult to deal with incremental mode (i.e., watching files via inotify) when following directory symlinks. We agree that we need to deal with this somehow, but it's not clear what the right solution is. We'll think about it and get back to this -- unfortunately probably in a few weeks since we're busy prepping for the Hack developer day.
@jwatzman - is this a limitation of watchman?
@sdwilsh When this issue was opened, hh_server
wasn't using watchman, it was using its own home-grown solution, which had this limitation. I think it might use watchman nowadays, or maybe can optionally, so I'm not sure what the modern state of this issue is. (I also have no idea if watchman has the same limitation.)
I believe hh_server uses inotify
now doesn't it?
any update on this?
We still use OS-native file watching unless watchman is explicitly configured, and currently do not follow symlinks (although there are also some issues with incremental mode)
Depending on your use case, extra_paths=../foo/bar,../baz
in .hhconfig
might be a usable workaround