Coder Social home page Coder Social logo

Comments (8)

woqunokia avatar woqunokia commented on May 27, 2024

I use the example support by yours.

from fsnotify.

nathany avatar nathany commented on May 27, 2024

You can try using https://github.com/go-fsnotify/fsnotify which has some bugfixes that haven't been incorporated into howeyc/fsnotify.

Though it may not fix things like multiple modify events, particularly if you are triggering these changes with a text editor. Editors are notorious for causing issues like that https://github.com/go-fsnotify/fsnotify/issues/17.

from fsnotify.

woqunokia avatar woqunokia commented on May 27, 2024

Thank you,
I tried. but when modify by "echo "bb" >> test.txt" (it's append in the end of file ) like this, it's print once, but if i use "bb" >> test.txt" ,it's print 2 times.(in window and linux are same).
if open the file with edition , it's print 3 or 2 times.

from fsnotify.

woqunokia avatar woqunokia commented on May 27, 2024

I use an edition maybe print more. could you explain the different between "echo "bb" > test.txt" and
"echo "bb" >> test.txt" .
thanks.

from fsnotify.

woqunokia avatar woqunokia commented on May 27, 2024

I konw "echo "bb" >> test.txt" , clean the file then write,but after clean it don't save the file.

from fsnotify.

nathany avatar nathany commented on May 27, 2024

If you're just using echo it shouldn't have the problems I mentioned about editors. Hm. I'm not sure. 😦

from fsnotify.

pkutishch avatar pkutishch commented on May 27, 2024

Having the same problem that it returns 2 events instead of one (using with echo)

from fsnotify.

nathany avatar nathany commented on May 27, 2024

@pkutishch Would you mind trying against the latest version by running the following in terminal/console:

go get -u github.com/fsnotify/fsnotify

and changing import paths to:

import "github.com/fsnotify/fsnotify"

If echo is still a problem, please open a new issue there.
https://github.com/fsnotify/fsnotify/issues/new

Thanks!

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.