GNOME Bugzilla – Bug 564661
The file 'test.h' on the disk is more recent than the current buffer.
Last modified: 2013-02-11 12:01:31 UTC
Ok, here it is another instance of this bug. I can reproduce it everytime with .h files, once discovered what was provoking that. The point is this: open a file, say a C file. Go to the end and be sure not to allow a blank line at the end, but that the last line would be something like "}" with the caret just at the right position of the braket. Press ctrl+s or push the save button. After few seconds the message "The file 'test.h' on the disk is more recent than the current buffer." is displayed. On pressing 'reload' the files is reloaded with the blank new line at the end. It seems it does not happen with .cpp / .c files. I don't know if this is a feature (still not checked), but I needed the possibility to have a non-new-line .h to do some tests with symbol-db.
actually I got the bug also for some .c files.
which editor?
scintilla, I've not tested with gtksourceview
Actually, I cannot activate sourceview plugin... I mean, even if I go to edit->preferences->preferred plugins and click on forget selected plugin [with focus on scintilla], on Anjuta closing/reopening I am not presented with the dialog 'activate sourceview or scintilla?'. on ~/foo_project/.anjuta/default.profile I see <?xml version="1.0"?> <anjuta> <plugin name="C++ and Java support Plugin" mandatory="no"> <require group="Anjuta Plugin" attribute="Location" value="anjuta-language-cpp-java:CppJavaPlugin"/> </plugin> <plugin name="Macro Plugin" mandatory="no"> <require group="Anjuta Plugin" attribute="Location" value="anjuta-macro:MacroPlugin"/> </plugin> <plugin name="Scintilla Editor" mandatory="no"> <require group="Anjuta Plugin" attribute="Location" value="anjuta-editor:EditorPlugin"/> </plugin> </anjuta> and only removing the "Scintilla Editor" part on default.profile enables the dialog of the editor plugin selection. Is this another bug or something strange I am doing?
No, I get the same. Seems like a new bug in session management.
Massimo, are you able to reproduce always this problem ? It seems to be a duplicate of #491491. I have seen from time to time here. But it's quite uncommon, so it's difficult to verify that it's fixed.
> Massimo, are you able to reproduce always this problem ? > yes, most of the times. > It seems to be a duplicate of #491491. I have seen from time to time here. But > it's quite uncommon, so it's difficult to verify that it's fixed. > it seems a duplicate yes. Even if I'm getting that only if the last character in the buffer isn't a \n I've just tried with Anjuta rev 4503. 1. opened Anjuta's project 2. Opened the following file symbol-db-engine-core.h 3. Go to the end of the file, deleted all the characters until I get only "#endif /* _SYMBOL_DB_ENGINE_H_ */" 4. ctrl+s 5. the message is visualized: The file 'symbol-db-engine-core.h' on the disk is more recent than the current buffer. Do you want to reload it? 6. If I click on reload a new line characted is added to the file but the contents remain the same.
I still get this following the comment #7 steps.
*** This bug has been marked as a duplicate of bug 693547 ***