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.

CCsv4 build errors not showing in Problems tab

Hi

CCSv4 4.2.1.00004

I created a project and used links to make it portable (http://tiexpressdsp.com/index.php/Portable_Projects). The problem is that the build errors in the linked files do not show in the "Problems" tab. Only the not-linked files show their errors in the "Problems" folder. It would be handy if linked files were also shown.

Cheers

  • Hi,

    I have several projects here with multiple sets of source files (linked, non-linked, assembly, C, CPP) and I couldn't necessarily reproduce this issue. Can you try a few things?

    - Call CCS with the -clean option and see if the issue goes away? This is the most likely solution to this unexpected behaviour.

    - Reset the perspective. Although less likely to solve this issue, this sometimes refreshes windows that are not displaying data correctly.

    - Try to build the same project in a different workspace.

    - If you have referenced projects, keep in mind the problems view only shows the project that it is in focus.

    The first three items are shown in the page below:

    http://processors.wiki.ti.com/index.php/Troubleshooting_CCS#General_IDE

    As a last resource we would need your project or a small test case that shows this issue, so we could perform further analysis.

    Hope this helps,

    Rafael

  • Hi Rafael

    desouza said:
    - Call CCS with the -clean option and see if the issue goes away? This is the most likely solution to this unexpected behaviour.

    Added -clean to the eclipse startup - didn't fix it. (had to laugh when your wiki link said this would slow down eclipse startup - its already way slower than Matlab which I had thought was painfully slow.

    desouza said:
    - Reset the perspective. Although less likely to solve this issue, this sometimes refreshes windows that are not displaying data correctly.

    Used  Window -> Reset Perspective, that didnt work.

    desouza said:
    - Try to build the same project in a different workspace.

    This sounds like a lot of fun to setup. Arg. Will take some time to do.

    desouza said:
    - If you have referenced projects, keep in mind the problems view only shows the project that it is in focus.

    I'm getting errors in the project that is currently "Active". They show up in the Console but not the "problems" tab for files that are linked. Am I understanding this incorrectly?

    desouza said:
    As a last resource we would need your project or a small test case that shows this issue, so we could perform further analysis.

    This is something to look forward to (not). I'll do this once I try a different workspace.

    When you say linked files work for you, are your reference files in a project that does not have the files physically in the workspace. My project A has been imported into the workspace with the "Copy workspace into project" box unchecked. My project B references files in project A using a macro defined in macros.ini. Both projects A and B were imported into my workspace with the "Copy workspace into project" box unchecked.

    Cheers

  • Hi

    desouza said:
    As a last resource we would need your project or a small test case that shows this issue, so we could perform further analysis.

    I uploaded the last resport. Unzip the files into c:\junk.

    There are two projects:

    1) CCSv4_origFiles - contains two projects built from the RTSC staircase example. One project references a file in the other project.

    2) CCSv4_linkFiles - this workspace also has the same projects as CCSv4_origFiles but they were imported with "Copy workspace into project" unchecked.

    The file doSomething.c has an error in it. When you build the CCSv4_linkFiles\ReferanceFileFromStaircase project, the error is shown in the console but not in the Problems tab.

    1) First, edit doSomething.c and remove the "j" declaration error. 

    2) Build the projects in CCSv4_origFiles, then built the CCSv4_linkFiles projects. (is the .cfg build ever slow!!!!!!!!).

    3) add the error into doSomething.c (i.e. int i; j)

    4) Build CCSv4_linkFiles\ReferenceFileFromStaircase.

    5) the console should display the error but it does not show in the Problems tab.

    0601.CCSv4_linkFiles.zip

    I did notice that if I cleaned the CCSv4_linkFiles\FilesInProject_StaircaseEx project (right click and select "clean project"), then the error showed up in the CCSv4_linkFiles\ReferenceFileFromStaircase project. Strange!

    I went back and rebuild the CCSv4_linkFiles\FilesInProject_StaircaseEx project, then built the CCSv4_linkFiles\ReferenceFileFromStaircase project, and the Problem tab error disappears. Even more strange eh!

    Alas, I tried to clean the main project for our product code but still no errors in the problems tab. It could be that our production code cfg is also referenced.

    Somehow the built project CCSv4_linkFiles\FilesInProject_StaircaseEx. is effecting the CCSv4_linkFiles\ReferenceFileFromStaircase.

    (note: when I build a project, I first select it, then right click and select "Set as Active Project".)

    Cheers

  • Eddie,

    Thanks for sending the project; I reproduced this behaviour here and I also got it with some other example projects.

    I filed the bug case SDSCM00039161 - you can check its status in the SDOWP link below.

    You can also check two workarounds to this issue that I published in the bug.

    Eddie said:

    Added -clean to the eclipse startup - didn't fix it. (had to laugh when your wiki link said this would slow down eclipse startup - its already way slower than Matlab which I had thought was painfully slow.

    You don't need to use the -clean option all the time, only when strange behaviour occurs. One thing I did was create two icons in my desktop - one with and one without -clean, so when needed I can launch CCS without having to modify it.

    Best regards,

    Rafael

  • Hi Rafael

    Glad you could re-create the problem.

    I tried the work-around of closing the other project and that seems OK.

    But, now the linked file cannot be found when stepping into a linked file during debug : It says file cannot be found.

    Win some, lose some.

    We'll likely implement your second work-around. It will take some time, but its logical to have shared files in their own folder and not under another project.

    Cheers