Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Michael N. Mitchell" <Michael.Norman.Mitchell@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: do-file corruption? |
Date | Wed, 24 Nov 2010 13:59:44 -0800 |
GreetingsIf both editors are being used simultaneously to edit the same file, this can happen. File xyz.do 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 xyz.do in both the do-file editor and notepad++. * In the do-file editor, make lots of changes and additions to xyz.do. * Save xyz.do in the do-file editor. * Quit the do file editor. * In notepad++ save xyz.do.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 - http://www.stata.com/bookstore/dmus.html A Visual Guide to Stata Graphics - http://www.stata.com/bookstore/vgsg.html Stata tidbit of the week - http://www.MichaelNormanMitchell.com 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. Best, Tatyana --------------------------------------------------------------- Tatyana Deryugina MIT PhD Student, Department of Economics MIT Energy Initiative Energy Fellow (925) 349 - 8999 (cell) * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/
* * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/