Notepad ++ and Network Share (Samba, SMB) - A Problematic Relationship (constant file reloading)
-
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 ]
-
@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?
-
@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.
-
Good one @ Alan-Kilborn! I will search on the net for a solution to better deal with Samba “timestamp” resolution.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login