Bookmark and Share

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


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

Re: st: do-file corruption?


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

Greetings

If 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/


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