Community
    • Login

    Notepad ++ and Network Share (Samba, SMB) - A Problematic Relationship (constant file reloading)

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 632 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.
    • Eduardo Lúcio Amorim CostaE
      Eduardo Lúcio Amorim Costa
      last edited by

      PROBLEM:

      This is an apparently unsolved problem… =[ Frankly, I don’t know what can be done to resolve this situation. I have already searched in many forums what can be done, but this set with a network share (samba, SMB) and Notepad ++ is problematic. As I mentioned, the problem with constant file reloading - even if there are no changes to the file content - makes it impossible to use Notepad ++ reliably and, especially, the use of bookmarks. Note that other code editor do not have the same problem even using the same network share. I would love to know what can be done. I’ve tried everything regarding the configuration of Notepad ++ and Samba, but I haven’t been successful so far.

      QUESTION:

      How can I make Notepad++ stop reloading files that are accessed via network share (samba, SMB) if there is no change in the content of these files?

      NOTES:

      I - A partial solution would be if I could make bookmarks persistent;<br>
      II - Realize that I cannot do without the detection of changes (with warning) in files, as I work with several open source editors at the same time and this is a very big risk for me.

      [Refs.: https://community.notepad-plus-plus.org/topic/11543/problem-with-reload/14 , https://community.notepad-plus-plus.org/topic/17665/bookmarks-are-gone-after-closing-the-file , https://community.notepad-plus-plus.org/topic/17754/bookmarks-not-saving , https://superuser.com/questions/923893/notepad-permanent-line-marking ]

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Eduardo Lúcio Amorim Costa
        last edited by

        @Eduardo-Lúcio-Amorim-Costa said in Notepad ++ and Network Share (Samba, SMB) - A Problematic Relationship (constant file reloading):

        How can I make Notepad++ stop reloading files that are accessed via network share (samba, SMB) if there is no change in the content of these files?

        I cannot do without the detection of changes (with warning) in files

        I looked a very little bit into how Notepad++ determines to put up the reload prompt for a file. All it does is ask the OS for what it thinks the current timestamp for a file is, and compares that to its last known timestamp. I think that code is HERE.

        Network Share (Samba, SMB)

        I suppose that when the timestamp is requested and it goes out to another filesystem, the time that comes back is slightly different than what Notepad++ thinks it should be? Dunno, I’m no expert on this.

        No file content comparison is done; maybe it should be – but wouldn’t this be an “expensive” operation for large files?

        1 Reply Last reply Reply Quote 3
        • Alan KilbornA
          Alan Kilborn
          last edited by

          @Alan-Kilborn said in Notepad ++ and Network Share (Samba, SMB) - A Problematic Relationship (constant file reloading):

          the current timestamp for a file is, and compares that to its last known timestamp. I think that code is HERE.

          I should have also pointed out that all this code does is an exact-value compare for equality, not an “is newer” or “is older” type compare.

          Eduardo Lúcio Amorim CostaE 1 Reply Last reply Reply Quote 1
          • Eduardo Lúcio Amorim CostaE
            Eduardo Lúcio Amorim Costa @Alan Kilborn
            last edited by

            Good one @ Alan-Kilborn! I will search on the net for a solution to better deal with Samba “timestamp” resolution.

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