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: AW: st: replace-all can crash do-file
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
RE: AW: st: replace-all can crash do-file
Date
Sun, 16 May 2010 13:35:05 +0200
<>
The 10/21/2009 update to the executable sounds like it fits Hewan`s observation. See -h whatsnew-:
Stata executable, Windows
22. The Do-file Editor has the following new features and fixes:
A. ...
B. When a "Replace all" was requested of a string, s, with a string s1 that contained s, an infinite loop
happened. This has been fixed.
Still, my Stata is fully up to date, and with Kieran`s assistance we still found that the "regular expression" tickbox leads Stata astray. So further attention is warranted, even though Hewan`s problem should be resolved with an -update all-.
HTH
Martin
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Kit Baum
Sent: Sonntag, 16. Mai 2010 13:26
To: [email protected]
Subject: Re: AW: st: replace-all can crash do-file
<>
You have wasted a lot of Statalist users' time with this question about a version of Stata that has not been updated since its July 2009 release. It is very likely that a bug in the initial release of the Windows do-file editor (which is new code in Stata 11) was fixed in the interim, or at least the code was modified so that it behaves differently in an updated version (a la Martin's endless loop). The Statalist FAQ makes it clear that before you seek support from either Statalist users or Stata tech support you should ensure that your Stata is up to date, which yours is obviously not.
Kit
On May 16, 2010, at 2:33 AM, Hewan wrote:
> Dear all, thanks for your thoughts so far. On the information requested: I am using PC and Windows-XP-Professional. Hereâs the output from doing âupdate- in my stata:
>
> - --------------------------------------------------------------------------------------------------
> Stata executable
> folder: C:\Stata11MP\
> name of file: StataMP.exe
> currently installed: 13 Jul 2009
>
> Ado-file updates
> folder: C:\Stata11MP\ado\updates\
> names of files: (various)
> currently installed: 13 Jul 2009
>
> Utilities updates
> folder: C:\Stata11MP\utilities
> names of files: (various)
> currently installed: 13 Jul 2009
>
> Recommendation
> Type -update query- to compare these dates with what is available from
> http://www.stata.com.
>
> Click to edit automatic update checking preferences
> - --------------------------------------------------------------------------------------------------
>
> Martin, if I just do ╲replace╡ hh with hh_id, there is of course no problem. Rather, the problem occurs when I do ╲replace all╡ of hh with hh_id in the example I used. Also, the endless looping (which, by the way, I canâ•˙t follow with my eyes╉Iâ•˙m assuming itâ•˙s doing an endless loop since it freezes up) I would argue amounts precisely to a crash. The freeze/looping wonâ•˙t stop, and when I try to close the find and replace window, I get the following message: ╲This programme is not responding. To return to Windows and check the status of the programme, click cancel. If you choose to end the programme immediately, you will lose any unsaved data. To end the programme now, click End Now.╡ My only options are End Now (which loses any unsaved data to the do file) or Cancel (which just takes me back to the frozen screen). So I have no choice but to click End Now.
>
> Itâ•˙s interesting that Kit didnâ•˙t find this problem prevalent in Mac, and Martin didnâ•˙t find it prevalent in Windows (which Windows? And did you do ╲replace all╡ rather than ╲replace╡?), and Kieran didnâ•˙t find the problem prevalent in Windows 7, but did find it prevalent if she first checks the box ╲Regular Expression╡. In my case, the problem obtains (on my PC and Windows XP machine) whether or not I check the box ╲regular expression╡.
>
> So my question: If anyone has a Windows XP, did they try the ╲replace all╡ and manage to get away without a forced crash and loss of unsaved data of the do-file?
Kit Baum | Boston College Economics & DIW Berlin | http://ideas.repec.org/e/pba1.html
An Introduction 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/