No announcement yet.
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bug report: replace-all in do-file editor on OS X fails to replace all instances

    This has been reported to tech support, but I'm posting here so people can search for it.
    1. Type several lines consisting of "foo" in do-file document.
    2. Replace-all "foo" with "foo, bar".
    3. Observe that only some "foo" have been replaced with "foo, bar".
    I replicated on Stata 13.1 and Stata 14.0 on OS X. I could not replicate on Stata 12.1 on Windows.

  • #2
    This occurs because Stata is not recalculating the length of the do-file after it performs the first replace. The developer have a fix for this issue that they will release in the next update.