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.

Code Composer Studio Version: 5.1.0.09000 strange behaviour

My CCS began to behave very strangely. The 'intellisense' stuff is not working, it doesn't see what are class members anymore. When I select any method and press F3 it is not jumping to its declaration/definition and I have for example following view of the code:

How I can repair it?

  • Hi Damian,

    a couple things

    - have you tried the latest released version 5.2?

    - could you please provide a bit more detail in order to see if we can reproduce this/track it down?  Was it previously working?  What changed?  Have you tried a fresh workspace/project? Did you do any updates, other installations etc?

    Best Regards,
    Lisa

  • Hi Lisa,

    I tried to upgrade the CCS to the newest version and I faced other problems with it. Some of them I posted on the forum. After that I could't repair it by reinstalling the previous version so I reinstalled whole OS and installed last version which worked well on my computer - Version: 5.1.0.09000. Now those thing are happening.

    It was working previously. I suppose that it started to happen when my project started to be a little more bigger and included a lots of files. Some of the header files are not included in the project by 'add file' option. They are in folder which is a search path for the compiler and linker. This things with colour changes happens after a while of working. Then I must to close the file and reopen or sometimes close the project and reopen. The F3 option is not working all the time (in some files of the project). The CCS environment contains CCS installation, XDC tools, SYS/BIOS and IPC. I didn't use any other eclipse based environment. 

    Maybe you can try to create some typical C++ code with header and cpp files which will be included into the project by the search path of the compiler and linker or by adding a file into the project. The only option I changed was C++ exception handling and verbose diagnosis in both compiler and liker. In my code header files contains declarations of classes and cpp files contains  implementations. I am using some templates as well. I noticed as well that every cpp file I must to include to the project by the 'add file' option or it can't see it in included folder. Maybe I am doing something wrong - I've never had experience with eclipse before.

    Additional thing is that very often Java says that the java heap is running low on memory.

  • Hi Damian,

    can you be more specific?  Is it only headers there is the issue? Is it reproducable?  Have a look at these two resources/points and please keep us informed. 

    http://wiki.eclipse.org/CDT/User/FAQ#Why_does_Open_Declaration_.28F3.29_not_work.3F_.28also_applies_to_other_functions_using_the_indexer.29

    Q: How do I increase the Java heap size for Eclipse?

    Open eclipse.ini in \ccsv5\eclipse Adjust the “-Xmx256m“ argument, i.e. bump up to 512m

    Best Regards,
    Lisa

  • Hi Lisa,

    Please ask me more specific questions if you want me to be more specific because I don't know what information you require.

    1. Is it only headers there is the issue?

    No. I wrote that F3 function doesn't work. This function jumps between cpp and header files. Sometimes it doesn't want to jump to definition / declaration, sometimes it jumps and selects some random text few lines above the class method or member which you have chosen.

    The 'intellisense' doesn't work in every file (main.cpp, other cpp's and header files) but not all the time. It doesn't work in this way that it doesn't show you everything. Like for example it doesn't show you new method which I have wrote in some cpp file. Of course changed file is saved and included so 'intellisense' should work. Usually after starting CCS everyday in the morning I don't see problems with this 'intellisense'. 

    2. Is it reproducable?

    I can say that on my computer is reproducible.

    Those difference in colours happens randomly after a while. I can't say when it will appear. As well with intellisense but I am sure that throughout whole working day it should broke.

    3. Have a look at these two resources/points and please keep us informed. http://wiki.eclipse.org/CDT/User/FAQ#Why_does_Open_Declaration_.28F3.29_not_work.3F_.28also_applies_to_other_functions_using_the_indexer.29

    Indexer - Search For Unresolved Includes

    This options show me files that don't exist on my hard drive.

    Select project, right-click > Index > Rebuild Index.

    This helped! Thanks!

  • Hi Damian,

    so rebuilding the index helped?  Does that clear the issue then?  Or is there still something here that needs investigating?

    Best Regards,

    Lisa

  • Hi Lisa,

    Yes, rebuilding index helped. Is there a possibility to make it rebuilding every time you are rebuilding the project?