View Issue Details

IDProjectCategoryView StatusLast Update
00317092.x IDE BugsSearch & ReplacePublic2020-04-21 09:32
ReporterDanAssigned ToDan 
PriorityLowSeverityC - GeneralReproducibility100%
Status AssignedResolutionOpen 
Platform-OSWindows 10OS VersionPro x64
Product Version2.2.5 
Target Version2.3.0Fixed in Version 
Summary0031709: Search & Replace: Replacing items from different scripts individually will keep restoring focus to skipped items in first script
DescriptionIf you use the Search & Replace tool and are replacing items from different scripts individually, but you skip some out, then once you start replacing items in scripts 2+, the IDE will keep restoring focus to any skipped items in the first script each time you do any more replace actions. This means you have to keep clicking Find Next to get back to the correct place in your search results each time.

(2.3.0 CB6 is the same behaviour/result, but the search results order is different, so be aware of this when following the steps.)

Expected: The IDE does not revert focus back to earlier scripts as it parses all the results in order - it always goes to the script required by the next match in the search results.
Steps To Reproduce1. Import the attached sample.
2. Ctrl+Shift+F.
3. Search for "mytest". Observe the results show lots of matches.
4. Add a replacement value (can be whatever you want - I went with "replaced"), then click Replace.
5. Observe that first click is actually "ignored" because it's handling the info text line in the output window, so click Replace a second time.
6. Observe the code editor now opens and shows your text is replaced okay.
7. Replace the other values/skip as you wish, but ensure you skip at least one line in script0 by pressing Find Next instead of Replace.
8. Note that when you get far enough into your search results that script1 is opened, when values in that script are replaced focus will jump back to your first unskipped line from script0 each time.
Repro: 100%
Additional Information
TagsNo tags attached.
2.x IDE Found In2.2.5.481
2.x Runtime Found In2.2.5.378
2.x IDE Verified In
2.x Runtime Verified In



2020-04-20 12:19


testSandR.yyz (21,094 bytes)