#327 Changes outside TeXnicCenter only for real changes.



at the moment I am using arara with latexindent.plx.
% arara: indent: { overwrite : yes }
The above line will overwrite the .tex-file on every run. TeXnicCenter checks the saving date of every open file to throw out the message "the file has been changed outside..." (or something similar, sorry, I am not using the English version).

This can get quite annoying if all tex-files seem to have been changed but just have been saved/overwritten by latexindent. I also wrote an feature request to https://github.com/cmhughes/latexindent.plx as I don't know, where a solution would be more easy/less hard to implement.

The solution for TeXnicCenter would be, to do a real diff between open and "changed" file before throwing out the message.

Thanks a lot.


  • Tino Weinkauf

    Tino Weinkauf - 2013-09-12
    • status: open --> pending
  • Tino Weinkauf

    Tino Weinkauf - 2013-09-12

    So it is a latex make thingy that rewrites the input files? Very questionable. I would never let that close to my files. Anyway.

    What we need is an option to turn off the question. But be aware that you can really loose data if we always load from disk.

    You really want that?

  • Comment has been marked as spam. 

    You can see all pending comments posted by this user  here


    Anonymous - 2013-09-13

    Thanks for your reply. I don't think, that's an option. Don't switch off the message. I just thought, TC could be able to check, if the files have actually been changed.
    I also asked the author of latexindent to think for some solution, not to save the files, if nothing has been changed.
    In reply he recommended to use arara 4.0 which provides some conditionals. With these, latexindent will just run, if the .tex file has been changed. Would be a good solution, too.

    Nevertheless, maybe it is possible to get this implemented to TC. Just through a message, if something has been changed. But I guess you would need to write some check-sums to an extra file or something. Don't know, if the work would worth it.

    Thanks for your efforts!

  • Tino Weinkauf

    Tino Weinkauf - 2013-09-30

    Ticket moved from /p/texniccenter/user-reports/1357/

    Can't be converted:

    • _milestone: 2_Beta_2
  • Tino Weinkauf

    Tino Weinkauf - 2013-09-30
    • labels: --> user interface, editor
    • status: pending --> open
    • Group: 2_Beta_2 --> Final_Release_(1.0)
    • Priority: 5 --> 1
  • Tino Weinkauf

    Tino Weinkauf - 2013-09-30

    Ok, this is how we have to implement it: When loading, create a SHA1 hash of the content. Later, when the DocumentFileChangeWatcher (or how it is called) detects a change, first create a SHA1 from the file on disk and compare it to the one from earlier. If different, ask the user as usual. If not different, just update the last-modified-date of the DocumentFileChangeWatcher.

    On a related note, the dialog for asking the user need to have a "Yes To All" and a "No To All".



Cancel  Add attachments