Bug #18843 2012-12-25 18:55

diversario

Autosave triggers "File is modified outside of IDE" popup.

C::B: 12.11 Build: Dec 8 2012, 09:37:57 - wx2.8.12 (Linux, Unicode) - 64 bit.

OS: Ubuntu 12.10 Desktop x64, Unity DE.

When working in the application, popup saying "File ... is modified outside of IDE" would appear quite often even though no external modifications were made.

This can be reproduced by doing the following:

- enable "Autosave files" and set it to something short (e.g., 1 min). Also set method to "Create backup and save to original file".

- modify a file in C::B and do not save it;

- switch from IDE to something else so that it loses focus, wait few minutes (depends on the autosave setting);

- switch back to IDE.

Disabling autosave resolves this.

Setting autosave to "Save to original file" also resolves this.

Category
Application::Editor
Group
Platform:Linux
Status
Open
Close date
 
Assigned to
mortenmacfly
mortenmacfly 2013-01-06 09:01

This is expected behaviour. When creating a backup, the original file is moved to e.g. "foo.bak" and a new file is being saved with new time stamp.

The only solution I see is to copy instead of move, but this will cost performance.

you can (however) just disable the check for externally modified files. Did you know that?

diversario 2013-01-06 18:10

I know that, but that's not a solution, obviously.

As for this being expected behaviour - CodeBlocks knows it just modified a file and it still asks me to reload it? Doesn't sound like something I'd expect from an IDE. Why doesn't it silently switch to a new file?