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.

Enumeration indication within the editor indicates enumeration not defined

I have a really odd problem. With existing code I added one more enumeration. Normally in the CCS editor enumeration values show up as blue italics if they are recognized. Within the enumeration list the new enumeration shows up as blue italics. But then I use it I can't get it to show up as blue Italics. in the code snippet below both case statements are in the same source file right next to each other and the old enum RADAR_DEVICE_CONFIG_CUSTOM_SETTING shows up in blue italics and the new one does not. So the .h file has to be in the source file for both.

Another really odd thing is if I search for RADAR_DEVICE_CONFIG_CUSTOM_SETTING with the C/C++ search it will find it but it will not find RADAR_DEVICE_CONFIG_ADC_TEST. But if I un-define RADAR_DEVICE_CONFIG_ADC_TEST in the .h file it will give an error for the line below that the enumeration is not defined.

But another user can build the same code and RADAR_DEVICE_CONFIG_ADC_TEST will show up in blue italics and we don't see a difference in the build environment.

This is done with CCS 5.3 and compiler 6.1.13

  •          case RADAR_DEVICE_CONFIG_CUSTOM_SETTING:
  •          caseRADAR_DEVICE_CONFIG_ADC_TEST:
    •          {
  • David Rowley said:

    case RADAR_DEVICE_CONFIG_CUSTOM_SETTING:
    caseRADAR_DEVICE_CONFIG_ADC_TEST:
             {



    Is the code exactly as you have it here? If so, it is missing a space betwen case and RADAR_DEVICE_CONFIG_ADC_TEST.

    If that is not the issue, can you confirm if the other user is yusing the exact same version of tools? I don't have CCS 5.3 installed at the moment, but I can't reprodue any of these issues with CCS 5.5.

  • Yes there is a space there in the actual code. So it was just a typo in the blog post. I've tried to move the RADAR_DEVICE_CONFIG_ADC_TEST enumeration in the list to a different position and it still will not change the font to indicate it's a valid enumeration. And I don't recall if I said it before but if I search for RADAR_DEVICE_CONFIG_ADC_TEST with "C/C++ search" it will not find RADAR_DEVICE_CONFIG_ADC_TEST but if I search for RADAR_DEVICE_CONFIG_CUSTOM_SETTING with C/C++ search it will find it.

    And I've done several "Rebuild ALL" and it still will not act like it recognizes.

    The other guy is in India so I can check with him but it may be a few days before I get a response.

  • My first suggestion would be to check with your co-worker (who doesn't see this issue) if his tools versions exactly match yours. If that is true, try rebuilding the index (if you haven't done so already) by right-clicking on the Project and going to Index->Rebuild. Also try importing your project into a new, clean workspace if you haven't tried that already. If that still does not help, could you zip up and attach your project here so we can see if we can reproduce the behavior?
  • I tried the Index->Rebuild and that solved the problem. Now it looks like I expect and I can search for it with the "C/C++ Search" and it will find it as expected.