Incorrect replacement in 'Find in Files...'

Having trouble installing Oxygen? Got a bug to report? Post it all here.
expatriate
Posts: 39
Joined: Wed Dec 31, 2008 12:42 am

Incorrect replacement in 'Find in Files...'

Post 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
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

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

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

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

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
expatriate
Posts: 39
Joined: Wed Dec 31, 2008 12:42 am

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

Post by expatriate »

Hi Adrian,
Thanks once again for the usual excellent support.
Pat
Post Reply