Comment 66 for bug 34813

Revision history for this message
boris (boriscosic) wrote :

I am sure this is not a proper way to fix it but I don't know enough about gedit to trace this all the way. From what I can tell though the error spawns in gedit-local-document-saver.c and it doesn't occur in vi:

 if (lsaver->priv->doc_mtime > 0 &&
            statbuf.st_mtime != lsaver->priv->doc_mtime &&
            ((saver->flags & GEDIT_DOCUMENT_SAVE_IGNORE_MTIME) == 0))
        {
                g_set_error (&lsaver->priv->error,
                             GEDIT_DOCUMENT_ERROR,
                             GEDIT_DOCUMENT_ERROR_EXTERNALLY_MODIFIED,
                             "Externally modified");

                goto out;
        }

I've tried setting ahead and behind times on both server but I still keep getting the error. Finally I commented out the entire if statement and rebuild gedit. Works fine now but I am definitely missing out on time stamp changes. Right now it's so frustrating though and I love the editor so until gedit team has an official fix this will do.