Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Hua Peng <hpeng@stata.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: AW: st: replace-all can crash do-file |
Date | Mon, 17 May 2010 08:53:19 -0500 |
Hewan Belay <hewan_belay@yahoo.com> reported that the Do-File Editor in Stata 11 for Windows can crash when doing a Find/Replace All with the "regular expression" option checked: >Yes, I still get a crash when "regular expression" is checked, but >no crash when it isn't checked. This will be fixed in the next Stata executable update. --Hua hpeng@stata.com On 5/16/2010 2:08 PM, Hewan Belay wrote:
Yes, I still get a crash when "regular expression" is checked, but no crash when it isn't checked. Re the update, I stand guilty as charged (by Kit). I haven't gotten in the habit of regularly doing an -update all-. But I promise to do so in the future before going to statalist with a question. I hope I can at least partially make it up with this: http://www.stata.com/support/faqs/data/regex.html Here is all the information about what regular expressions are, and what they do in stata. I just tried them out. For example, if you type ^[0-9]+ in the "find what" box, it finds all expressions of a series of digits in the do file. But it only find those digit series that are at the very beginning of a line, not those that are somewhere in the middle of a line, or even those that start at a line after one space. The website above goes into much more details on regular expressions in stata. Hewan --- On Sun, 5/16/10, Martin Weiss<martin.weiss1@gmx.de> wrote:From: Martin Weiss<martin.weiss1@gmx.de> Subject: RE: AW: st: replace-all can crash do-file To: statalist@hsphsun2.harvard.edu Date: Sunday, May 16, 2010, 1:38 PM <> Just to be sure, the "regular expression" problem has not disappeared, has it? Btw, what prevented you from updating earlier? HTH Martin -original message- Subject: RE: Re: AW: st: replace-all can crash do-file From: Hewan Belay<hewan_belay@yahoo.com> Date: 16-05-2010 15:35 I now updated my stata, and that took care of the problem. Thanks for that advice. And it apparently also took care of the other problems Kit listed, e.g. do file executing the line following the selected lines. Many thanks! Hewan --- On Sun, 5/16/10, Martin Weiss<martin.weiss1@gmx.de> wrote:From: Martin Weiss<martin.weiss1@gmx.de> Subject: RE: Re: AW: st: replace-all can crashdo-fileTo: statalist@hsphsun2.harvard.edu Date: Sunday, May 16, 2010, 11:36 AM <> "(which as Martin indicates is a separate processunderWindows)" Does that mean that I can kill it separately, thus preserving my precious main process which may hold important data? (Weirdthat Ishould ask Kit for Windows advice, is it not :-) ) HTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Kit Baum Sent: Sonntag, 16. Mai 2010 13:34 To: statalist@hsphsun2.harvard.edu Subject: re:Re: AW: st: replace-all can crash do-file <> Stata updateof 21oct2009 included(note points A,B): Stata executable, Windows 22. The Do-file Editorhas thefollowing new features and fixes: A. New option "Replace all in selection" restricts the replacement of all occurrences to the currently selected text. B. When a "Replace all" was requested of a string, s, with a string s1 that contained s, an infinite loop happened. This hasbeenfixed. C. "Balance Braces" under the "Find" submenu in the "Edit" menu did not work if the close brace was the last character of thefile.This has been fixed. D. "Match Brace" under the "Find" submenu in the "Edit" menu selected the section of code between the focused brace and itsmatchingbrace. It now selects only thematching brace. E. Syntax highlighting settings could not be restored tofactorydefaults. This has been fixed.F. When alinewas selected by clicking on the line number, theselected line and the following linewereboth executed. This has been fixed. G. Under certain conditions and when auto-indentation wasenabled,theDo-file Editor computed the wrongindentation length for the current line based on the indentation length of the previous line. This has been fixed. Perhaps the Do-FIle Editor (which as Martin indicatesis aseparate process under Windows) was imperfectly fixed... Kit Baum | BostonCollegeEconomics& DIW Berlin | http://ideas.repec.org/e/pba1.htmlAnIntroduction to Stata Programming | http://www.stata-press.com/books/isp.html An Introduction to Modern Econometrics Using Stata | http://www.stata-press.com/books/imeus.html * * 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/* * 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/* * 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/