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

Changes within symlinked directories aren't detected by chokidar #28

Open
adityavohra7 opened this issue Mar 17, 2016 · 1 comment
Open

Comments

@adityavohra7
Copy link

I'm using bower link to link a package foo into a service. This creates a few symlinks:

service (master) $ ls -lha bower_components/ 
...
drwxr-xr-x  5 avohra users 4.0K 2016-03-16 19:51 bar/
lrwxrwxrwx  1 avohra users   45 2016-03-17 10:02 foo -> /nail/home/avohra/.local/share/bower/links/foo
...

and

service (master) $ ls -lha /nail/home/avohra/.local/share/bower/links/
...
lrwxrwxrwx 1 avohra users   45 2016-03-17 10:16 foo -> /abs/path/to/package/foo/
...

Within my service, I have chokidar set up to watch some JS files as follows:

...
chokidar \
    'assets/js/**/*.js' 'bower_components/**/*.js' 'closure_config.js' \
    -c 'invoke-closure closure_config.js' \
    --follow-symlinks \
    --verbose
...

I'm unable to get chokidar to detect changes in JS files within the package foo's directory. I know chokidar follows symlinked files. Does it also follow symlinked directories?

@sdcoca
Copy link

sdcoca commented Apr 20, 2016

I have the same issue which I suposse is causing this other karma autowatch issue

  • I isolated it to be happening only in a Virtual Machine (Ubuntu with vagrant&vbox) running on my Mac.
  • I run 'chokidar -s' on a file under a symlinked directory in the VM.
  • Modify it with an editor within the VM.
  • I did not use globs to remove the possibility of it being the #406 issue above.
  • The changes in the file under the symlink are detected only once. Any later changes are not detected.
  • Same issue running chokidar and editing the file straight on Mac (no VM involved) works all OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants