Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: do-file corruption?

From   "Michael N. Mitchell" <>
Subject   Re: st: do-file corruption?
Date   Wed, 24 Nov 2010 13:59:44 -0800


If both editors are being used simultaneously to edit the same file, this can happen. File is opened in the do-file editor, and then also opened in notepad++. Neither of these programs perform "file locking", so they allow you to edit the same file twice. Here is a potential scenario...

  * open in both the do-file editor and notepad++.
  * In the do-file editor, make lots of changes and additions to
  * Save in the do-file editor.
  * Quit the do file editor.
  * In notepad++ save

The last step kills all changes saved in the do-file editor. Even if this is not Tatyana's problem, it is a cautionary tale for anyone who uses two editors on a do-file simultaneously. I have personally lost changes this way.

Best regards,

Michael N. Mitchell
Data Management Using Stata      -
A Visual Guide to Stata Graphics -
Stata tidbit of the week         -

On 2010-11-24 7.03 AM, Tatyana Deryugina wrote:
I'm using Notepad++ and the built-in editor. The problem only happens
when I open a file with the built-in editor, after which I also cannot
open it normally with Notepad++. There is no relationship (as far as I
can tell) between opening it in Notepad++ and subsequent corruption.


Tatyana Deryugina

MIT PhD Student, Department of Economics
MIT Energy Initiative Energy Fellow
(925) 349 - 8999 (cell)
*   For searches and help try:
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index