Community
    • Login

    NPP not always sensing changed open file

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 2 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Brigham NarinsB
      Brigham Narins
      last edited by

      I run a file-parsing script that produces an error report. I keep that report open in NPP as I fix errors (in other files) found by the script. When I rerun the script, the error report changes, and usually NPP asks:


      Reload

      “H:\ParsingErrors.log”

      This file has been modified by another program.
      Do you want to reload it?

      Yes No

      Often enough to be a little annoying, NPP doesn’t sense the change and I have either click NPP on the task bar (to minimize it), in which case it usually flickers and shows me the reload dialog, or, when that doesn’t work (rarer), I have to manually reload the file.

      The file is located on a network drive, which may be the issue. But maybe not. I thought I’d ask if anything can be done. Thanks!

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Brigham Narins
        last edited by

        @Brigham-Narins

        from my memories, there is a problem when using SMB v1 protocol,
        could this be your problem as well?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Brigham NarinsB
          Brigham Narins
          last edited by

          Thanks Claudia. I suppose it could be, I just don’t know what “SMB v1 protocol” is. If it’s a network software thing, then it’s out of my hands (I’m at work in a big company).

          I was thinking maybe there’s an NPP setting that controls how often it checks a document’s state. But this a relatively minor issue, one I can live with. Thanks again.

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank @Brigham Narins
            last edited by

            @Brigham-Narins

            yes, SMB and CIFS etc… are network protocls which define how share communication
            has to work.

            Npp doesn’t read the file again and again, instead it uses a mechanism to get notified
            by windows functionality when a file has been changed.
            While this is much more efficient it means that it must trust the underlying layer to
            report each change properly and as you found out, this isn’t always the case.

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 1
            • Brigham NarinsB
              Brigham Narins
              last edited by

              Thanks for the explanation. I appreciate that.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors