Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-12

Check changes on disk with loading

7 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen

I am checking and translating some IDE strings.
In Environment -> Desktop options there is : 'Check changes on disk with loading'
Is it correct? Should it be 'Check changes on disk while loading' ? Or 'Check changes on disk when getting focus' ?

Besides, the setting does not work.
If I change a file outside of Lazarus and then activate Lazarus, a dialog always opens asking if I want to reload the file.
The setting does not change it anyhow. Should it be removed?

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111211/b3d38cc1/attachment.html>

Reply by email

Mattias Gaertner
to Juha Manninen
I am checking and translating some IDE strings. In Environment -> Desktop options there is : 'Check changes on disk with loading' Is it correct?

It's confusing.

Should it be 'Check changes on disk while loading' ? Or 'Check changes on disk when getting focus' ?

No.
The IDE checks on some events if the editor files have changed on disk. Instead of checking only the file date it can also load the file and compare the content.
Then it pops up the dialog "files have changed on disk". Feel free to propose a better wording.

Besides, the setting does not work.

How can you say that, if you don't understand it?
It works here.

If I change a file outside of Lazarus and then activate Lazarus, a dialog always opens asking if I want to reload the file. The setting does not change it anyhow. Should it be removed?

You are in the wrong trouser. Please come back to us.

Mattias

Reply by email

zeljko
to Juha Manninen: I am checking and translating some IDE strings. In Environment -> Desktop options there…
Juha Manninen wrote 5 lines
I am checking and translating some IDE strings. In Environment -> Desktop options there is : 'Check changes on disk with loading' Is it correct? Should it be 'Check changes on disk while loading' ? Or 'Check changes on disk when getting focus' ?

"Check file changed on disk" ?

Also please when you add such properties or work something on Environment options add hints to checkboxes and other controls, it's pretty hard to find something when you don't know exact meaning of control.

Show quoted text 7 lines
Besides, the setting does not work. If I change a file outside of Lazarus and then activate Lazarus, a dialog always opens asking if I want to reload the file. The setting does not change it anyhow. Should it be removed? Juha

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111211/bf03036a/attachment.html>

Reply by email

Juha Manninen
to Mattias Gaertner: On Sun, 11 Dec 2011 15:29:53 +0200 It's confusing. No. The IDE checks on some events if…

2011/12/11 Mattias Gaertner

You are in the wrong trouser. Please come back to us.

What does that mean? The setting didn't work as I expected, no matter which trousers I wear. :)

I guess the setting has effect when an external process changes a file while Lazarus has focus. I did not test that now.
I tested changing focus to another editor, changing and saving the file and giving Lazarus the focus again.
Then I always get the "files have changed on disk" dialog with a diff view and everything. The setting has no effect for that.

About the wording, Zeljan's version is best so far although it is not proper English either.
"Check if files changed on disk" or "Check file changes on disk" is better.

Tested on Linux with QT bindings.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111211/b326e3a9/attachment.html>

Reply by email

Mattias Gaertner
to Juha Manninen
Show quoted text 6 lines
2011/12/11 Mattias Gaertner > You are in the wrong trouser. Please come back to us. > What does that mean?

It means you didn't understand an option, so you asked. This is good. But then you didn't wait for the answer, guessed something. Which is bad. Because you guessed wrong. Then you find out that the option does not what you guessed.
Still not stopping, you continue ...

Show quoted text 5 lines
The setting didn't work as I expected, no matter which trousers I wear. :) I guess the setting has effect when an external process changes a file while Lazarus has focus. I did not test that now.

... and continue ...

I tested changing focus to another editor, changing and saving the file and giving Lazarus the focus again.

... and continue ...

Then I always get the "files have changed on disk" dialog with a diff view and everything. The setting has no effect for that.

... and continue ...

About the wording, Zeljan's version is best so far although it is not proper English either. "Check if files changed on disk" or "Check file changes on disk" is better.

... and continue.

Is this really clever?

Tested on Linux with QT bindings.

IMO an option to disable "checking files on disk" makes no sense. No one ever asked for that.

As I explained: The option is how to check for changes, not if.

About wrong trousers: see Terry Pratchett.

Mattias

Reply by email

Juha Manninen
to Mattias Gaertner

2011/12/11 Mattias Gaertner

Show quoted text 5 lines
IMO an option to disable "checking files on disk" makes no sense. No one ever asked for that. As I explained: The option is how to check for changes, not if.

Ok, after reading your reply again I got it, and the feature even seems to work as advertised.
Still, 'Check changes on disk while loading' doesn't mean anything. Maybe it should be:
'Read also file contents when checking if file has changed on disk' It is long but there is room in the dialog.

About wrong trousers: see Terry Pratchett.

Time trousers? Scary! :)

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111211/57a446bd/attachment-0001.html>

Reply by email

Howard Page-Clark
to Juha Manninen
Juha Manninen wrote 5 lines
Ok, after reading your reply again I got it, and the feature even seems to work as advertised. Still,'Check changes on disk while loading' doesn't mean anything. Maybe it should be: 'Read also file contents when checking if file has changed on disk'

Possible improved phrasing (if I've understood the feature correctly) might be
'Check for disk file changes via content rather than timestamp'

Howard

Reply by email