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.

Can't "Open Definition" in CCSv4/Win7

I used CCSv4 on Windows XP succesfully. When I switched to Windows 7 one very nice function does not work anymore.

While "Open Declaration" (F3) still jumps to the prototype of a function,  nothing happens when I choose "Open Definition" (Ctrl-F3). It should show the implementation.

I am working with a workspace including the same projects as at the same harddisk as I did with Windows XP. Of course there is not only a new PC operating system, but also a new CCSv4 installation. But what causes the "Open Definition" to work or not? How can I switch between C prototypes and C implementation?

 

  • Hi Helge,

    I was able to reproduce this.  Basically the problem is you need to index and/or build your project before this becomes functional.  Please give that a try and keep us informed.

    Best Regards,
    Lisa

  • Hi Lisa,

    Thanks for reply. I built the project many times and I also clicked on "Rebuild Index" in the projects context menu. But "Open Definition" still doesn't work.

    Best Regards,
    Helge

  • Hi Helge,

    ok, can you please try one last thing.  Please see the attached screenshot and select "apply indexer to all projects now".   This is Window->Preferenecs and just do the filter on index.

    Please keep us informed.

    Best Regards,
    Lisa

  • Hi Lisa,

    I can't find any attached screenshot. In the preferences dialog I navigated to "C/C++ -- Indexer". I choosed the "Full C/C++ Indexer (slow but accurate)", set the check box "Apply inder to all projects now". After that I clicked on Apply and OK.

    The "Open Definition" does not work. while "Open Declaration" jumps to the prototype. This also didn't change after activating the "Rebuild Index" on each project in the workspace.

    I am a bit irritated about the document http://processors.wiki.ti.com/images/0/09/CCSv4_Tips_%26_Tricks.pdf. On page 22 I read about this Advanced Editor Features "Goto definition" and "Goto declaration", but on page 23 I read the performance tip to not using the indexer. Did I choosed the wrong preference page to enable the Advanced Editor Features?

    Best Regards,
    Helge

  • Hi Helge,

    sorry for a delay in response but I was looking at this in the background.

    There are a few known issues with this function for files external to the project/project directory.

    Is this a C file or header file you have trouble with?  Do you have problems with all declarations or just some?  Are these files linked or included?

    I know in CCSv5 a lot of these things have been cleared up.

    Please keep us informed.

    Best Regards,
    Lisa

  • Hi Lisa,

    The project is a plain C project, no C++. I have the problem with all declaration/definitions. The lookup of declarations that you find in the header files work with "Open Declaration". The lookup of any definitions in the source files does not work with "Open Definition".

    The workspace consists of several projects. There are some library projects and some application projects. The C source files of the library projects are compiled and the objects are archived in the library. The C source files of the applicaiton projects are compiled and linked with some of the libraries. The declarations are in the header files. All definitions are in the source files of the libraries or the source files of the applciations. Independent of the location of the source files (library or application) no definition lookup works.

    The project is setup with CCSv4 and cannot be moved with little effort to CCSv5.

    Are the known issues related to PC operation system version (XP vs. Win7) (32 vs 64 bit)?

    Best Regards,
    Helge

  • Hi Helge,

    the indexer in v4 (due to quite an old eclipse version) is known to be not the best.

    Would you be willing to send your project offline for us to look at?   I have been continuing to discuss your case with some colleagues and it seems this might be the only way to see if there is some work around or what might be going on.

    The only thing I can think of related to Windows versions would be permissions.  Win 7 is much tougher and policing when it comes to rights on files and directories.  So just make sure all files you need you have administrator priveleges as well as having installed CCS with administrator priviliges.

    Best Regards,
    Lisa

  • Lisa TI said:
    Would you be willing to send your project offline for us to look at?

    How do I send files offline?

    Best Regards,
    Helge

  • Hi Helge,

    you can do this by sending a friend request or simply starting a conversation with me through the forum.  Click on my hyperlinked name.

    The best thing to do is to send me the archived project.   This is done with

    FIle->Export->General->Archive file

    I hope this helps!

    Best Regards,
    LIsa

  • Hi Helge,

    I have been spending a lot of time looking into this for you as well as doing some research.   It seems you are not the only one with similar type problems.

    Anyhow unfortunately there is no solution I can offer you for two reasons

    - this appears to be a bug in an old version of eclipse - so not CCS specific

    - I can get the open definition/declaration to work in CCS v5.1 which is our current production release and uses a much newer stock eclipse version

    I am sorry, but in this case there is nothing I can do to help further here.  

    Best Regards,

    Lisa

  • Hi Lis,

    so the CCSv4 does not support this fixture. That's a pity since it's important in larger project where code is structured in several libraries. Since CCS v5.1 is not in option I will have to stick on the "search in files" although it's awkward sometimes.

    Thanks for your effort,
    Helge

  • Hi Helge,

    no problem at all.  I agree it is a shame that this does not seem to work in v4. 

    All the best with development.

    Best Regards,
    Lisa

  • A little bit late for an answer but I had the same problem with Windows XP: "Open Definition" was not working.

    I did the following to get it working in CC4.2:

    In Code Composer delete all your projects (right click on the projects and select "Delete"): A message box asks for confirmation, there select "Do not delete contents" (be aware that you just delete the projects within CC and not any of your files or directories on the hard disk).

    Afterwards import all your projects again in CC: "File - Import..." and select "CCS - Existing CCS/CCE Eclipse Projects".

    After all your projects are there again in CC recompile them. If you select "Open Definition" on a function it should be working now.

    Regards