You are here: PSPad forum > English discussion forum > Re: File Contents were Changed. Reload?

Re: File Contents were Changed. Reload?

Goto Page: Previous1 2 3 4 5 6 7 Next

#41 Re: File Contents were Changed. Reload? -> Deletion not detected

Posted by: t0m | Date: 2011-05-12 12:14 | IP: IP Logged

I used build 2417 and the problem appeared reproducibly with all files resident on linux (Ubuntu 10.10) shared by Samba(smbd 3.5.4). After reading this discussion I tried build 2408 and watched the log.

I also watched file modification date on linux and it showed strange behavior: date is changed once when file is saved and second time 14 seconds later. What is that?!!

I run Wireshark and the log of smb communication explained more: The file is written but not closed. Then file attributes (mtime) are read. File is closed after some timeout. But on unix, closing after write changes mtime.
However PSPad remembers mtime before file close and false detects file change.

Jan, can you please fix it? Many thanks for your great work.

Options: Reply | Quote | Up ^


#42 Re: File Contents were Changed. Reload? -> Deletion not detected

Posted by: Zillion | Date: 2012-01-12 09:54 | IP: IP Logged

t0m:
I used build 2417 and the problem appeared reproducibly with all files resident on linux (Ubuntu 10.10) shared by Samba(smbd 3.5.4). After reading this discussion I tried build 2408 and watched the log.

I also watched file modification date on linux and it showed strange behavior: date is changed once when file is saved and second time 14 seconds later. What is that?!!

I run Wireshark and the log of smb communication explained more: The file is written but not closed. Then file attributes (mtime) are read. File is closed after some timeout. But on unix, closing after write changes mtime.
However PSPad remembers mtime before file close and false detects file change.

Jan, can you please fix it? Many thanks for your great work.

I suffer from this problem too. Also my data files are on Ubuntu Samba share. Using 4.5.7 build 2433, Win7 64. Thank you very much.

Options: Reply | Quote | Up ^


#43 Re: File Contents were Changed. Reload? -> Deletion not detected

Posted by: myf | Date: 2012-01-12 16:38 | IP: IP Logged

I've thought about this bug for a while, mainly pondering how other editors might overcome problem with incorrect time (NTP) settings on remote filesystem (the "document saved in future" problem).
Simply quessing (I do not do desktop applications, so most probably I am more or less wrong due my zero knowledge of this topic):

- they calculate some offest: stores local timespamp of save action and immediately looks on remote timestamp, and since then takes its difference into account. Seems unlikely, because the save operation itself might take some time (?)

- they fetch and compare full content on each check. Straightforward, but surely not suitable for large files. (but ... really?)

One heretic question comes to my mind as well:
- are we 100% sure that old versions of PSPad which did not make so many false positive alerts about changed content didn't potentially miss some real changes? It sounds scary, but it would be good to know.

One simple workaround for our problem comes to my mind: in case of mismatching timestamps before raising alert do one extra full-content check. This would prevent all current false positives and even those when file have been edited by other application but the content of given file remained the same as last version seen by PSPad.
It surely is not elegant, but it would heal our current ache.

Options: Reply | Quote | Up ^


#44 Re: File Contents were Changed. Reload? -> Deletion not detected

Posted by: Zillion | Date: 2012-01-13 10:53 | IP: IP Logged

In the meanwhile I would propose to build in a simple setting where you can disable the check if File Contents were Changed.

Options: Reply | Quote | Up ^


#45 Re: File Contents were Changed. Reload? -> Deletion not detected

Posted by: myf | Date: 2012-01-13 13:19 | IP: IP Logged

Zillion:
In the meanwhile I would propose to build in a simple setting where you can disable the check if File Contents were Changed.

There already is PSPad.INI pref
[Special settings]
(...)
CheckDocChanges=0

forum.pspad.com

Options: Reply | Quote | Up ^


#46 Re: File Contents were Changed. Reload? -> Deletion not detected

Posted by: Zillion | Date: 2012-01-16 15:03 | IP: IP Logged

myf:
Zillion:
In the meanwhile I would propose to build in a simple setting where you can disable the check if File Contents were Changed.

There already is PSPad.INI pref
[Special settings]
(...)
CheckDocChanges=0

forum.pspad.com

Thanks a lot!

Options: Reply | Quote | Up ^


#47 Re: File Contents were Changed. Reload? -> Deletion not detected

Posted by: steveh | Date: 2012-01-26 22:56 | IP: IP Logged

What would you want to happen when you delete a file?

Options: Reply | Quote | Up ^


#48 Re: File Contents were Changed. Reload? -> Deletion not detected

Posted by: pspad | Date: 2012-01-27 04:55 | IP: IP Logged

steveh:
What would you want to happen when you delete a file?

There is a option CheckDeleted. If you delete file on the background, PSpad will inform you that file you edit was deleted

Options: Reply | Quote | Up ^


#49 Re: File Contents were Changed. Reload?

Posted by: nergmlam | Date: 2012-01-27 07:42 | IP: IP Logged

Hi

I'm running PsPad 4.5.7(2433) on Windows 7 Enterprise, and is only using PsPad for vbScript.

I had the same issue, but it was 100% perfect solved

More info forum.pspad.com

Options: Reply | Quote | Up ^


#50 Re: File Contents were Changed. Reload?

Posted by: nergmlam | Date: 2012-01-27 07:43 | IP: IP Logged

So the only problem is to find out if there is changes.

Just press CTRL+R

Options: Reply | Quote | Up ^


Goto Page: Previous1 2 3 4 5 6 7 Next





Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR