This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Searching outside of workspace

On previous platforms my company has always created a library of files we call common files.  These files contain low level drivers and placed in a read only location that is available to all engineers.  Therefore these files are contained outside the workspace.  Previous microcontroller platforms were developed on IAR.  We were able to easily setup the include paths to these common files.  I have attempted to do the same things with Code Composer.  I was easily able to setup the paths and successfully compile a project; however, I am unable to search for items contained in these files which are outside the search path.  Could someone please assist me in defining a scope which looks outside the workspace.

 

  • Hi Jason,

    have you been trying the CTRL+H search?   The search function is actually part of eclipse.

    Best Regards,
    Lisa 

  • Yes, I have tried that.  But the search scope in that box is defined to be at most the workspace.  I need to find a method to search for files included outside of the workspace.

  • Hi Jason,

    I have done some further digging and found that  it is not really possible today. The easiest workaround is to create a dummy project and then create a linked folder (or folders) inside that project that links to few top level directories outside of the workspace that are of interest. Then File search should work, however, there probably will be a bit of a hit on startup as those deep top level linked directories are refreshed. Also you can’t create a linked folder to C:\. I did create one linked folder to C:\program files and it was not too bad.

    Best Regards,
    Lisa 

  • I tried this and still was unable to search outside of the project folder.  Did you try it?

  • Hi Jason, 

    Yes, we tried it and it works. As Lisa, mentioned anything that is not somehow referenced in workspace, is not searchable. Thus the workaround is to create a place holder project and create a linked folder to your common files. This creates that "reference" that allows searching. 

    Detailed steps would be:

    File->New->Project : from dialog choose General | Project ; then give it some name (e.g. Common Files). 

    Then right click on just added project and select New->Folder , then click on "Advanced" button and choose "Link to alternate location (Linked Folder)", then Browse to directory where Common Files are located. Then Finish. 

    You will now be able to see all files and search them. It may take couple of minutes to refresh things, depending on how many files are in Common directory. 

    Martin