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.

CCS/TM4C123GH6PM: Highlighting Variable Does Not Highlight All Instances of that Variable Anymore in CCS 10.1.1.00004

Part Number: TM4C123GH6PM

Tool/software: Code Composer Studio

In version 9 and earlier of CCS, highlighting a variable name typically resulted in all instances of that variable being highlighted in a light grey and showed little boxes on the right side of the scrollbar to quickly jump to other references of the variable when clicked.  In 10.1.1.00004 this no longer happens.

Thank you.

  • The feature is working for me in CCS 10.1.1.00004.

    Under Window -> Preferences -> C/C++ -> Editor -> Mark Occurrences is the "Mark occurrences of the selected element in the current file" selected?

     You need to select Show advanced settings to get the C/C++ preferences displayed.

  • That option is checked for me.  I tried toggling it off and on again and it's still not working.  I'm using Windows 10 if that helps

  • Justin Repperger said:
    I'm using Windows 10 if that helps

    OK, I was using CCS 10.1.1 under Linux. Will try under Windows.

  • It is still working for me with CCs 10.1.1.00004 under Windows 10, for an existing or newly created workspace.

  • Should I try uninstall/reinstall?

  • I uninstalled, reinstalled, and now it's partially working.  It highlights one instance, but not the one right under it?  Settings are still fine

  • Justin Repperger said:
    It highlights one instance, but not the one right under it?

    It looks like it has highlighted the write occurrence, but not the read occurrence. In the CCS preferences there are there are two types of Annotations for these, shown from a working installation:

    If your CCS preferences match the above, the issue might be with the indexer.

    In which case, does Rebuild Index help?

  • My annotation settings are the same as yours it seems.  I tried rebuilding the index and nothing changed.  I unchecked all the boxes, clicked apply, rechecked the boxes, hit apply again, and then rebuilt the index again after that.  Still not working strangely.  There's another write occurrence later on in this function and that one is not being highlighted.  I also closed and re-opened CCS after the last time I rebuilt the index to see if that helps, but that didn't make a difference.

    I appreciate your help, I'm surprised nothing has worked so far.

  • Justin Repperger said:
    I tried rebuilding the index and nothing changed.

    In the CCS Project Explorer can you right-click on one source file which shows the problem, and then select Index -> Create Parser Log File and select a filename to save the log to. Are you able to attach the log file?

    Interested if the parser displays any issues such as "Parser problems:" or "Unresolved names:" in the log.

  • [edited]
    I created the log file and figured I would look through it myself before I post it here. It seems I was missing a curly bracket.  I added the bracket and now everything is getting highlighted correctly again.  I'll try to build and look for syntax errors before submitting a question again.  Thank you for your time and help.