GithubHelp home page GithubHelp logo

Editing file sends 2 events about fsnotify HOT 5 CLOSED

howeyc avatar howeyc commented on August 16, 2024
Editing file sends 2 events

from fsnotify.

Comments (5)

howeyc avatar howeyc commented on August 16, 2024

Perhaps it's your editor? If so, for my curiosity, which one?

Does 'echo "stuff" >> file' create two events?
On Apr 26, 2013 5:54 AM, "Rafal Zajac" [email protected] wrote:

When I watch a file and do edit it and save it i get 2 MODIFY events. I
should receive only one MODIFY event.

I'm using fsnotify on Linux.


Reply to this email directly or view it on GitHubhttps://github.com//issues/41
.

from fsnotify.

rzajac avatar rzajac commented on August 16, 2024

I was using Sublime Text 2. Will test with vim and >> on monday.

from fsnotify.

rzajac avatar rzajac commented on August 16, 2024

Hey you were right. ST is somehow making MODIFY to fire 2 times. But some other thing I have noticed is that if I open a file in vim do edits then save (MODIFY is fired). Then do some more edits and save the MODIFY is not fired again.

from fsnotify.

eaigner avatar eaigner commented on August 16, 2024

Same problem here. Running on OSX with Sublime Text and sometimes get 2 to 3 MODIFY events on save. A debounce option for events would be nice.

from fsnotify.

metaleap avatar metaleap commented on August 16, 2024

Same on Windows with ST2, but debounce is a must if you do anything other than kill a process on MODIFY --- I remember this from years ago, many other editors also result in 2x modify events being sent.

from fsnotify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.