Author Topic: command line search/replace broken with python in 12.0.2/12.0.3  (Read 2941 times)

mlevedahl

  • Junior Community Member
  • Posts: 4
  • Hero Points: 0
command line search/replace broken with python in 12.0.2/12.0.3
« on: September 08, 2007, 10:40:41 pm »
If I execute something like "c/foo/bar/" from the command line on a Python file, answering the interactive question with 'Y', once the replace finds a line with leading space the replacement fails to work correctly: foo is no longer replaced, rather bar is inserted at the beginning of the line, possibly overwriting the leading whitespace. (i.e., the first replacement works fine, sometimes the second one works too, but invariably by the third things are completely hosed.)

This happens on Windows in 12.0.2 and 12.0.3, with Python files, and ONLY if I use the command line function. If I invoke gui-replace, this does not happen. Also, this happens even with a pristine install: absolutely no customizations, just accepting the default CUA bindings.

Any ideas how to fix this?

Mark

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: command line search/replace broken with python in 12.0.2/12.0.3
« Reply #1 on: September 10, 2007, 12:55:26 pm »
I've confirmed the issue in the 12.0.3 release, seems the problem occurs when the python file is re-tagged after a replace occurs.  Contact support (support@slickedit.com) and reference this forum thread and they will send you the latest hotfix just as soon as I can update it.

mlevedahl

  • Junior Community Member
  • Posts: 4
  • Hero Points: 0
Re: command line search/replace broken with python in 12.0.2/12.0.3
« Reply #2 on: September 10, 2007, 02:05:29 pm »
Thanks. I've also found this same problem occurs in the Linux version, hopefully the same fix will apply to both versions.