rjeczalik / notify

File system event notification library on steroids.
MIT License
902 stars 128 forks source link

panic on dropped events (macOS) #130

Open andreyvit opened 7 years ago

andreyvit commented 7 years ago

Hey, I've recently Ctrl-Z'ed (i.e. stopped) modd, and after about a day tried to resume it, which immediately got me this panic:

panic: unhandled error: notify.FSEventsMustScanSubDirs|notify.FSEventsUserDropped

goroutine 6 [running]:
github.com/cortesi/modd/vendor/github.com/rjeczalik/notify.(*watch).Dispatch(0xc420014b00, 0xc42029a200, 0x1, 0x1)
    /Users/andreyvit/dev/gannett/go/src/github.com/cortesi/modd/vendor/github.com/rjeczalik/notify/watcher_fsevents.go:136 +0x7eb
github.com/cortesi/modd/vendor/github.com/rjeczalik/notify.(*watch).Dispatch-fm(0xc42029a200, 0x1, 0x1)
    /Users/andreyvit/dev/gannett/go/src/github.com/cortesi/modd/vendor/github.com/rjeczalik/notify/watcher_fsevents.go:205 +0x48
github.com/cortesi/modd/vendor/github.com/rjeczalik/notify.gostream(0x54001b0, 0x1, 0x1, 0x4502ec0, 0x4503560, 0x4506df0)
    /Users/andreyvit/dev/gannett/go/src/github.com/cortesi/modd/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:104 +0x27e
github.com/cortesi/modd/vendor/github.com/rjeczalik/notify._cgoexpwrap_b138320e5461_gostream(0x54001b0, 0x1, 0x1, 0x4502ec0, 0x4503560, 0x4506df0)
    github.com/cortesi/modd/vendor/github.com/rjeczalik/notify/_obj/_cgo_gotypes.go:399 +0x5d
github.com/cortesi/modd/vendor/github.com/rjeczalik/notify._Cfunc_CFRunLoopRun()
    github.com/cortesi/modd/vendor/github.com/rjeczalik/notify/_obj/_cgo_gotypes.go:214 +0x41
github.com/cortesi/modd/vendor/github.com/rjeczalik/notify.init.1.func1()
    /Users/andreyvit/dev/gannett/go/src/github.com/cortesi/modd/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:68 +0x6f
created by github.com/cortesi/modd/vendor/github.com/rjeczalik/notify.init.1
    /Users/andreyvit/dev/gannett/go/src/github.com/cortesi/modd/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:70 +0x4e