Page 1 of 1

Incorrect replacement in 'Find in Files...'

Posted: Fri Nov 18, 2011 10:35 pm
by expatriate
Hi
I'm running 13.1 on a Mac.

I'm seeing a serious and baffling problem with Find/Replace in files. I very often do a sequence of two replacements in the same batch of HTML files. The first correctly replaces all text-fragment-1 with the specified replacement-text-1. The second then replaces all text-fragment-2 not with replacement-text-2 as it should do, but with replacement-text-1.

Finding text-fragment 2 is done correctly, but when the dialogue box is reopened it confirms that 'Replace with' has reverted to replacement-text-1. I've done all the tests I can think of for dementia: I definitely HAD entered replacement-text-2 there.

Hope you can help
Pat

Re: Incorrect replacement in 'Find in Files...'

Posted: Mon Nov 21, 2011 6:45 pm
by adrian
Hello,

Thank you for letting us know about this problem.
I have reproduced this issue when trying to replace a string used in a previous find/replace operation.

e.g.
Replace All:
a -> b
b -> a

Now, if I try to replace:
a -> c
The bug will be triggered and it will instead replace a -> b (the previous associated replace string).

A workaround for this is to perform a "Find All" before the "Replace All". This will prevent the bug from being triggered.


I have logged this to our issue tracking tool and it will be analyzed and resolved in the next version of Oxygen.

Let me know if you need additional assistance.

Regards,
Adrian

Re: Incorrect replacement in 'Find in Files...'

Posted: Mon Nov 28, 2011 5:24 pm
by adrian
Hello,

I just wanted to let you know that this problem has been resolved in the latest build of Oxygen 13.1, 2011112512:
Find/Replace in Files: When repeatedly finding a string(the same string at each step) and replacing it with various strings(different at each step), the application would use the first replace string(used for that particular find string) every time.
You can download it from our web site:
http://www.oxygenxml.com/download.html

The complete list of bug-fixes for this build can be found here:
http://www.oxygenxml.com/build_history.html#2011112512

Let us know if you encounter further problems with this build.

Regards,
Adrian

Re: Incorrect replacement in 'Find in Files...'

Posted: Mon Nov 28, 2011 6:41 pm
by expatriate
Hi Adrian,
Thanks once again for the usual excellent support.
Pat