Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Search/Find in Files    [ Add a report in this area ]  
Report #:  53712   Status: Closed
Duplicated result when searching into project group
Project:  Delphi Build #:  10.0.2288.42451
Version:    10.0 Submitted By:   Alexandre Prostorov
Report Type:  Basic functionality failure Date Reported:  10/19/2007 5:11:28 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   256002
Resolution: Fixed (Resolution Comments) Resolved in Build: : 12.0.3134.15877
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
When searching across files results may show one match several times
Steps to Reproduce:
1. Create a new project group

2. Create a new VCL application project into this group

3. Save it's default form as Unique.pas

4. Create another new VCL application into this group

5. Save it's default form as Shared.pas

6. Add shared.pas to the first project

7. Call 'Search for files' (Ctrl-Shift-F) and look for 'Shared' while 'where' set to 'all files in project group'

8. You'll see that 'Shared.pas' mentioned twice (see screenshot in the attach)
Workarounds
I guess there is no passable workaround. It needs either exclude file from a project and use some implicit linking, such as via search path (I guess it's a very bad and much unprocessable way) or changing 'where', say, using 'search in directory', which isn't comfortable if using file structure like

Root
Root\Common Library
Root\Project Group1
Root\Project Group1\Files 1
Root\Project Group1\Files 2
....
Root\Project Group2\
....
Attachment
None
Comments

None

Server Response from: ETNACODE01