grunt-contrib-watch icon indicating copy to clipboard operation
grunt-contrib-watch copied to clipboard

watch was started,then add file but not fire add event

Open herong opened this issue 11 years ago • 9 comments

  1. start grunt watch E:\web>grunt watch Running "watch" task Waiting...
  2. Then add "t.js" file in lib directory , but watch not fire the add event. as also delete file .

watch: { src: { files: ['lib/*/.js'], tasks: ['concat'] } }

herong avatar Apr 10 '14 16:04 herong

Is E:\ a networked drive? and which version of node.js? Thanks!

shama avatar Apr 10 '14 16:04 shama

In windows,E:\ is a local drive. node version: E:\web>node -v v0.10.23

But change file event is successful.

herong avatar Apr 10 '14 16:04 herong

Which version of windows and version of grunt-contrib-watch? Thanks!

shama avatar Apr 10 '14 16:04 shama

windows 7

E:\web>grunt -V grunt-cli v0.1.13 grunt v0.4.4

E:\web>npm list grunt [email protected] E:\web └── [email protected]

E:\web>npm list grunt-contrib-watch [email protected] E:\web └── [email protected]

herong avatar Apr 10 '14 16:04 herong

I found when this directory is empty, watch not fire the add event and delete event. sorry poor English.

cycold avatar Apr 29 '14 01:04 cycold

This is also happening with Ubuntu 14.04

node: v0.10.26 grunt: v0.4.1 grunt-contrib-watch: v0.4.4

The add event is never triggered. Once I rerun the grunt task (using sails.js) and I change the file that it is watching, the changed event is fired, but that is it. No added event... :-( Would love some help...

boxman0617 avatar May 03 '14 02:05 boxman0617

@boxman0617 try grunt-contrib-watch v0.6.1 , not 0.4.4

vladikoff avatar May 03 '14 02:05 vladikoff

@vladikoff you rock! That worked!

boxman0617 avatar May 03 '14 02:05 boxman0617

This sound like #436 and it is not resolved by using v0.6.1

andidev avatar May 17 '15 20:05 andidev