Comments (6)
This is not a platform-dependent issue and should be handled by your runtime's implementation. Sorry @rjeczalik, but without a fix I cannot move things forward.
from notify.
There's already work on this here 6221e74. The end result is every Watcher implementation is initialised by NewWatcher, meaning inotify, fsevents etc. implement func newWatcher() Watcher
.
The fact inotify
is half-global now does not help, since there's not way to control the moment of initialisation. For tests there'll be no default runtime initialized.
It would help if all inotify
context could be bound to inotify
struct.
from notify.
If you want to have one object which handles all watched directories it's better to use it since a very beginning of the implementation. It should be possible to run multiple tests (even with t.Parallel()
) on one watcher/runtime instance. Or, did I miss something when you were speaking about including "newWatcher" to the public interface;>
from notify.
Actually nvm, it will work despite what I said. I'll send PR in couple of minutes.
from notify.
@ppknap see #29 and ok me when no issue with merging it
from notify.
LGTM 💛
from notify.
Related Issues (20)
- Missing events: Not getting any event for the recreated directory HOT 10
- Panic in windows on loopevent HOT 3
- build error from mac osx 10.15 fatal error: 'CoreServices/CoreServices.h' file not found HOT 8
- Zero action causing "panic: notify: cannot decode internal mask" HOT 3
- NonrecursiveTree does not watch recreated folders
- Recursive watcher for windows shared drive does not report events in subdirectories HOT 1
- FILE_TRUNC does not exist on Solaris
- Can't cross compile for darwin/arm64 from darwin/amd64 HOT 1
- Still "under active development"? HOT 2
- SIGSEGV when built with 1.17 on macOS HOT 1
- Only listen for folder additions or deletions, but not file additions or deletions ?
- C.FSEventStreamScheduleWithRunLoop(ref, runloop, C.kCFRunLoopDefaultMode) MacOS 13 future remove HOT 4
- This library does not build on macOS ventura (13.0.1) HOT 1
- v0.9.3(4?) release naming HOT 2
- FSEvents are sometimes not notified due to strip() logic following rename
- fatal error: checkptr: converted pointer straddles multiple allocations HOT 2
- inotify event path may be incorrect if wd is not yet updated to its new path
- undefined: stream - Issue with Mac OS M2 HOT 6
- FSEventStreamCreate is not available at ios HOT 5
- "The parameter is incorrect." error when watching files on Windows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notify.