After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 564661 - The file 'test.h' on the disk is more recent than the current buffer.
The file 'test.h' on the disk is more recent than the current buffer.
Status: RESOLVED DUPLICATE of bug 693547
Product: anjuta
Classification: Applications
Component: plugins: document-manager
SVN TRUNK
Other Linux
: Normal normal
: ---
Assigned To: Anjuta maintainers
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-15 20:24 UTC by Massimo Cora'
Modified: 2013-02-11 12:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Massimo Cora' 2008-12-15 20:24:17 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.
Comment 1 Massimo Cora' 2008-12-15 21:07:29 UTC
actually I got the bug also for some .c files.

Comment 2 Johannes Schmid 2008-12-15 21:21:23 UTC
which editor?
Comment 3 Massimo Cora' 2008-12-15 21:27:58 UTC
scintilla, I've not tested with gtksourceview
Comment 4 Massimo Cora' 2008-12-15 21:57:50 UTC
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?

Comment 5 Johannes Schmid 2008-12-15 22:14:23 UTC
No, I get the same. Seems like a new bug in session management.
Comment 6 Sébastien Granjoux 2008-12-31 09:54:25 UTC
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.
Comment 7 Massimo Cora' 2008-12-31 10:42:06 UTC
> 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.

Comment 8 Massimo Cora' 2009-06-22 21:20:52 UTC
I still get this following the comment #7 steps.
Comment 9 Johannes Schmid 2013-02-11 12:01:31 UTC

*** This bug has been marked as a duplicate of bug 693547 ***