Questions tagged [fsevents]

204 questions
5
votes
1 answer

File modification watch (Webpack, Guard...) issue over NFS in Virtual Machine (VM)

I know there are multiple threads discussing NFS mounted volumes and file modification watch issues. Since most of the discussions are old, some from 8 years ago, my goal here is to compile some and bring them up again to check what are the most…
brngyn
  • 96
  • 6
5
votes
3 answers

How to dectect new or modified files in Mac OSX

In Windows OS, MS provides ReadDirectoryChangesW and FindFirstChangeNotification API to dectect new or modified file, does the Mac OSX provide equal function as well?
Yigang Wu
  • 3,596
  • 5
  • 40
  • 54
5
votes
1 answer

Is there a good objc library wrapper for File System Events/kqueue that handles recursive watching for me?

I want to write an OSX (Snow Leopard) app that receives notifications when files within a specific directory are changed, and I want access to the path of the specific file that was changed. I know I can do this using either File System Events or…
nfm
  • 19,689
  • 15
  • 60
  • 90
5
votes
2 answers

Npm install rebuilds .node-gyp upon every install

I'm getting this message upon every npm install: > fsevents@1.2.4 install /Users/USERNAME/URL/TO/GULP/FILE/node_modules/fsevents > node install [fsevents] Success:…
Zeth
  • 2,273
  • 4
  • 43
  • 91
5
votes
0 answers

Howto avoid receiving old events in FSEventStream callback (FSEvents framework on macOS)

i'm having trouble with the macOS framework FSEvents: when i call FSEventStreamCreate and pass kFSEventStreamEventIdSinceNow for the "since" argument, i still receive kFSEventStreamEventFlagItemCreated events for files that have already been…
vosc
  • 108
  • 8
5
votes
2 answers

FSEvents_connect invalid destination port blocking gulp process

Hi there: While building a project, I got this error: 2017-04-13 12:05 gulp[64643] (FSEvents.framework) FSEventStreamStart: ERROR: FSEvents_connect() => (ipc/send) invalid destination port (268435459) followed by this at the end of the gulp process…
theTHP
  • 55
  • 2
  • 8
4
votes
1 answer

Unable to install autotest-fsevent gem with Xcode 4.3

I've been unable to install the autotest-fsevent gem after updating to Xcode 4.3 (removed old versions of Xcode). Command line tools were installed via Preferences > Downloads > Components tab. osx 10.7.3, rvm 1.10.2, ruby 1.9.3-rc1, bundler…
Doc Walker
  • 161
  • 1
  • 6
4
votes
1 answer

How to resolve "Error: Cannot find module 'fsevents'" when using Vite on Windows?

I am trying to use Vite for a web development project on my Windows machine. However, I keep getting the error message: Error: Cannot find module 'fsevents' [plugin:vite:import-analysis] Failed to resolve import "fsevents" from…
4
votes
0 answers

Is it possible to make webpack's watch mode work on Windows?

I'm trying to enable webpack's watch mode on my Windows environment, however it only works with pooling enabled which makes my machine very slow and almost impracticable to work with. Command used: webpack --watch --progress From webpack's official…
fegfpdj
  • 41
  • 1
4
votes
1 answer

fsevents optional dependency returns not compatible with system

Iam installing babel core 6.26.0 per this documentation, everything goes smoothly except for the following error: npm WARN optional Skipping failed optional dependency /babel-cli/chokidar/fsevents: npm WARN notsup Not compatible with your operating…
logos_164
  • 736
  • 1
  • 13
  • 31
4
votes
0 answers

FSEvents Directory Watcher for remote server volume / only works for locally initiated changes, not remote updates?

Scenario: I am using FSEvents to monitor local watch folders successfully. Using the same FSEVents code to monitor a directory that is within a mounted volume from a remote server over say, AFS (/Volumes/example) successfully notifies my FSEVents…
vade
  • 702
  • 4
  • 22
4
votes
0 answers

How can i fix this npm / fsevents / node-gyp rebuild error in my yeoman generator for angularjs?

Here is the package.json: { "name": "yeomanangular", "version": "0.0.0", "dependencies": { "express": "3.4.7" }, "devDependencies": { "grunt-express": "1.2.1", "grunt": "0.4.1", "grunt-contrib-requirejs": "0.4.1", …
vt97john
  • 579
  • 3
  • 10
  • 25
4
votes
1 answer

How to use the File System Events API in Swift?

maybe my search terms are not good today, but i can't find a simple example how to use the FSEvents in swift. I have a cocoa application that displays contents from a file. When the file is changed outside of my application i have to mark the…
Peter Shaw
  • 1,867
  • 1
  • 19
  • 32
4
votes
2 answers

FSEventStream - filter events generated from my own application

I am writing an application that saves data into a set of text files inside a specific folder. And I have an FSEventStream to be notified when other apps (like Dropbox or TextEdit) alter files, so I can update my application with the new text…
UJey
  • 1,442
  • 11
  • 15
4
votes
1 answer

NSRunLoop returns early, before any FSEvent or timer fires

I'm trying to use a NSRunLoop to watch for FSEvents in an Agent application (that is, without any GUI). I think I understand how a RunLoop works, but I clearly don't, because the behaviour I'm seeing is incomprehensible. What am I missing? (I'm…
Norman Gray
  • 11,978
  • 2
  • 33
  • 56