CWHC08 V6.1 Search File List in In Project tab

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CWHC08 V6.1 Search File List in In Project tab

1,959 Views
wre
Contributor III
I moved a V3.1 project to a new directory and opened it in V6.1 without any obvious problems.  I have been using V6.1 for about 10 months now and am able to build the project just fine.
 
I have one nagging issue that I hope someone can address:  The File List in the In Project tab of the Find in Files box lists files from the old project path and not just the new path.  For instance:
 
aphdwre.c   <-----File from current project path
aphdwre.h   <-----File from current project path
aphdwre.h   <-----File from old project path
 
I have selected the Reset Entry Paths and Re-search for Files items in the Project menu but that does not change the file list.  This can be a problem if I am doing a search and replace and am not aware that the old file has popped up to be modified.
 
Any ideas?  Is there a file that can be manually edited that contains this historical file location information?
 
Thanks,
 
Bill
 
By the way, the "Save project entries using relative paths" is checked.


Message Edited by wre on 2008-10-30 12:08 PM
Labels (1)
0 Kudos
4 Replies

320 Views
wre
Contributor III
[Why is it you find an answer after you've posted the question?]
 
After a bit more effort, I deleted the target directories in the project data path.  CW rebuilt those directories on opening the project and the duplicate file from the old project path no longer appeared in the file list.
 
Can someone confirm that this would solve the problem, or is it a fluke and my problem may re-appear?
 
Thanks,
 
Bill
 
0 Kudos

320 Views
J2MEJediMaster
Specialist I
CodeWarrior will recursively search all directories on a specified data path unless you either tell it not to--in which case you have to explicitly specify each directory to search. If there's a duplicate file name in the searched directories, then the recursive search stops with the first file found. Your concern is justified because the first file CW finds might not be the one you want. Deleting those directories (or moving them outside of the searched data path) should work. You might also want to check the Access Paths settings panel to see if there are other directories that CW is searching that might contain duplicate files. If there are, delete those search paths using that panel. HTH.

---Tom
0 Kudos

320 Views
wre
Contributor III
Hi Tom.  There were no duplicate files in the directory structure from the project directory and down.  The improperly referenced file was up from the project directory and down a whole other branch.
 
As I indicated above, I deleted the target directories under the data directory of the project.  (I use "targets" for different builds of the project:  Release, debug, etc.)  Once I had deleted those target directories, CW rebuilt them and I haven't seen the improperly referenced file in the list anymore :smileyhappy:.  It appears that there was an old reference to the file in one of the CW data files (TargetDataWindows.tdt?) from when I copied the project...that is my theory anyway that I would like to have confirmed.
 
The Access paths are correct for the project and do not reference any directories that would get a duplicate file.
 
Thanks,
 
Bill
 
 
 
0 Kudos

320 Views
J2MEJediMaster
Specialist I
When access paths really get messed up or there is stale directory data causing trouble, the standard procedure is to delete the projectname_Data directory. The corrupt files within this directory are deleted, and it forces CodeWarrior to perform its file searches from scratch and rebuild the directory paths.

Your theory is confirmed. :smileyhappy:

---Tom
0 Kudos