SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: mlevedahl on September 08, 2007, 10:40:41 pm

Title: command line search/replace broken with python in 12.0.2/12.0.3
Post by: mlevedahl 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
Title: Re: command line search/replace broken with python in 12.0.2/12.0.3
Post by: Lee 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.
Title: Re: command line search/replace broken with python in 12.0.2/12.0.3
Post by: mlevedahl 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.