Bug: HippoEdit updates files changed by external application without notice

Started by knn, August 11, 2010, 10:32:55 AM

Previous topic - Next topic

knn

I started Firefox.

I edited "prefs.js" (from the firefox folder) while FireFox was running.

I closed Firefox.

"prefs.js" got automatically reset without confirmation.

HOWEVER:
1) SOMETIMES HippoEdit asks for confirmation
2) Sometimes I close FireFox, "prefs.js" is NOT reset, BUT all undos are gone (= I cannot undo anything anymore).

alex

Hi knn,

there can be several reasons for this.

If you are running HE version higher then 1.48.782, than it can be recently added feature:
New. Updated and not modified documents from now on reloaded automatically by default. Controlled by new XML flag AutoReloadNonModified.

Also can be that some when, when prefs.js was updated and HE shows use message box with request for reload you have selected "Always reload for this file". Or you set this property explicitly menu File->Auto-Reload.

But probably reason is first case. This also explains why Undo was lost.

Quote
Topic Summary
Posted by: knn    Posted on: Today at 09:32:55 am
Insert Quote
I started Firefox.

I edited "prefs.js" (from the firefox folder) while FireFox was running.

I closed Firefox.

"prefs.js" got automatically reset without confirmation.

HOWEVER:
1) SOMETIMES HippoEdit asks for confirmation
2) Sometimes I close FireFox, "prefs.js" is NOT reset, BUT all undos are gone (= I cannot undo anything anymore).
I think, this depends from who have saved prefs.js first, HE or Firefox. That can happen, that HE saves it, than Firefox reloads it internally and than saves without any change. In this case HE will reload it anyway (there are no diffs done) because modified date of file has been changed, but because content is same, it will look like that document was no reset. But actually it is.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

knn

So if no diffs are done then how does HE know that it's non-modified?

And why should it be good to have auto-reload which makes you silently lose all UNDOs without confirmation and without notification?

alex

QuoteSo if no diffs are done then how does HE know that it's non-modified?
Modified here means changed inside HE and not yet saved.
But probably will be better to auto reload document by default (no due to user selected auto reload flag) not when it is not modified, but when it was not modified in the current session at all. Will update logic in 1.49.

QuoteAnd why should it be good to have auto-reload which makes you silently lose all UNDOs without confirmation and without notification?
It is good to have such feature if you view documents.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

knn

Quote from: alex on August 11, 2010, 08:28:49 PM
It is good to have such feature if you view documents.

It's good to silently lose all UNDOs? Having edited something (= UNDOs exist) is a proof that the document has not only been VIEWED.