Git Product home page Git Product logo

Comments (9)

lwblackledge avatar lwblackledge commented on June 19, 2024

Hi @mikedoth, can you be a bit more specific please? I tested in the latest version I have (1.0.10) and it was working as expected. Can you check for any error messages in the dev console?

from file-watcher.

mikedoth avatar mikedoth commented on June 19, 2024

Atom claims 1.0.7 is the latest version and will not update beyond that. I
opened a test document in dev mode, then the same document in notepad. I
edited the notepad file and saved it and atom just updates without throwing
any console errors or notifications. Also I have the box checked in the
extension.

On Wed, Sep 2, 2015 at 3:21 PM, Laurence Blackledge <
[email protected]> wrote:

Hi @mikedoth https://github.com/mikedoth, can you be a bit more
specific please? I tested in the latest version I have (1.0.10) and it was
working as expected. Can you check for any error messages in the dev
console?


Reply to this email directly or view it on GitHub
#3 (comment)
.

from file-watcher.

dpanter avatar dpanter commented on June 19, 2024

Using version 1.0.11 on Linux Mint Debian Edition with KDE 4, this bug happens here as well.
Opened file in Atom, open same file in another editor, add some text and save file.
Atom instantly updates the file, new text appears and no message what so ever appears in Atom, nothing appears in the dev console either.

from file-watcher.

lwblackledge avatar lwblackledge commented on June 19, 2024

This is a duplicate of issue #2. This package just hooks into the conflict event raised by atom\text-buffer, which does not fire an event if the file changes and there are no changes pending within the atom editor.

I am looking into adding this as an option but so far I have been unsuccessful.

from file-watcher.

mikedoth avatar mikedoth commented on June 19, 2024

My coworker helped me find the proper error, and fyi I am on windows.
'diff' is not recognized as an internal or external command, ooperable
program or batch file.

On Wed, Sep 9, 2015 at 9:20 AM, Laurence Blackledge <
[email protected]> wrote:

This is a duplicate of issue #2
#2. This package
just hooks into the conflict event through by atom\text-buffer, which
does not fire an even if the file changes and there are no changes
pending within the atom editor.

I am looking into adding this as an option but so far I have been
unsuccessful.


Reply to this email directly or view it on GitHub
#3 (comment)
.

from file-watcher.

lwblackledge avatar lwblackledge commented on June 19, 2024

Interesting, you might have a deeper problem with your Atom install.
I do not use diff anywhere in file-watcher but it is used in text-buffer for a couple of operations.
Can you try a clean install or Atom? You might need to raise an issue for atom or text-buffer directly.

However, the scenario you described in this comment is the same as issue #2, and not something that I can fix right now since it involves intercepting or overriding the text-buffer code.

from file-watcher.

mikedoth avatar mikedoth commented on June 19, 2024

Disregard my last comment.. I confused this problem with another. I was trying to get atom-cli-diff to work property. As for this package, this morning I did a reinstall and have yet to see any new errors that would indicate it's broken, but it still does not work.

from file-watcher.

lwblackledge avatar lwblackledge commented on June 19, 2024

Hi @mikedoth,
The scenario you described here is actually not what this package was created to do:

Atom by default will reload a file if you have not made any changes. This is controlled by text-buffer and something I am working on as part of issue #2.

I made this originally to show a prompt if you have made changes and something changes the file on disk. By default Atom will just ignore disk changes and not show a prompt.

Consider this scenario:

  1. Open a document in Atom
  2. Add text (unsaved changes)
  3. Open the same document in notepad
  4. Add text in notepad and save
  5. Check Atom and see that the text from step 2 is still there

I created this package to add a prompt in atom between step 4 and 5 because I want to know if something changes the file I'm working on.

If you do not add text at step 2, at step 5 you will see that Atom reloaded the file because there were no unsaved changes.

I hope that makes this clearer.

from file-watcher.

martinandersson avatar martinandersson commented on June 19, 2024

I can't get the package to work either. Using Ubuntu 16.10 and Atom 1.12.7. I make external changes, nothing happens. No prompt, no reload no nothing :'(

from file-watcher.

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.