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.

[CCS5.1] Project builds successfully but errors are reported in Problems window

Other Parts Discussed in Thread: SYSBIOS

Hi

We have a stable CCS5.1 project for the C6670 device. This morning I found that a clean release build generates an .out file that works fine and the console of build output shows no errors. However, the CCS 'Problems' window shows multiple errors for main.c.  The errors seem mainly to do with <ti/sysbios/knl/Task.h>, which I #include.

For example, one error is:

"Type 'Task_Params' could not be resolved".

However, compiler.opt contains:

-I"C:/ti/bios_6_32_04_49/packages"

so that should be fine.  And, as I said, the .out file is generated ok, and no errors appear in the Console window for main.c.

The other observation is that the errors are marked in the editor window by a red bug icon. I usually see a red cross icon for errors.

Please will someone suggest what is going on?

Best regards

David

  • Hi David,

    There is a known issue, 43492, which describes a similar issue where errors in the problems view from a previous build are not cleared when rebuilding (and the build is successful). The issue was specific to the  'Project->Build Automatically' option being enabled. Do you have this option enabled?

    Thanks

    ki

  • Hi ki

    No, 'Project->Build Automatically' is not enabled.  What is the workaround for 43492 to clear the errors?

    David

  • I eventually cleared this problem by creating and using a new workspace.

    BR

    David

  • I have too many projects and didn't feel like re-creating my workspace...

    This seemed to work for me:

    • Window > Preferences > C/C++ > Code Analysis
    • Selected all "Syntax and Semantic Errors"
    • Customize Selected
    • Unchecked "Run on demand"
    • Checked "Run on full build" and "Run on incremental build" to be safe...?

    After a rebuild with no Problems, "Run on demand" could be re-enabled without the annoying Errors?  It might be "safer" to try with Project settings instead of Workspace..

  • Hi guys,

    This issue is causing quite a bit of grief for me.  Every time I build if I want the 'problems window' to reflect the latest build results I have to do a complete Clean and Rebuild of the project.  I've tried creating a new workspace and the other preferences change with no luck.

    Is there any fix from TI?  I am thinking about going back to v5 from v5.1 to avoid this issue.

    Thanks

    Adam

  • Hi all,

    For me, this problem seemed to be related to having multiple build configurations set up for the project (i.e. can be seen if you right-click on the project and select Build Configurations -> Set Active).

    I had errors in the Problems window which kept coming back, even though the code does actually build successfully (which could be seen because "**** Build Finished ****" appeared in the Console window). Typical behaviour was as follows:

    • Do a build, which causes the misleading errors to be displayed in the Problems window. IMPORTANT - these errors will only appear if certain source files are open. Make note of one of the source files which displays the misleading errors
    • Close all source windows
    • Do a clean and build - a build is successfully performed, and no errors are displayed in the Problems window
    • Now open the errant source file again - the errors magically re-appear

    For me, the misleading errors seem to be ones which are left over from a build from one of the other configurations. To get rid of them, I did the following:

    • Switched the project to the build configuration which had the (real) build errors (using [right-click on project] -> Build Configurations -> Set Active)
    • Performed a clean to remove the errors
    • Now, after switching back to the original build configuration, the misleading errors no longer appear

    Hope this helps.

    Best wishes,

    Bart

     

  • I think that this problem persists in CCS 5.2.  Is a fix coming?

    BR

    David

  • Looks like this problem is fixed in CCS5.3.0. The release notes mention the following bug fix:

    SDSCM00044820 IDE ALL CCS does not clear out errors in Problems view when building project even if the errors are no longer valid
  • I would just  like to inform TI that this problem is still occuring in CCS 5.3.0.