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.

Build Console: Incorrect error highlighting

Hi,

In CCS 5, when an error or warning occurs during build, the relevant error message in the build console is highlighted in red or yellow respectively. The message can also be double-clicked, to quickly jump to the offending line in the source code.

However, the line that is actually highlighted is always the one below the line where the error message appears. This is very confusing and annoying and sometimes prevents being able to double-click the line at all (as sometimes the highlighted line happens to be empty, and you must double click on actual text for the double-click to be recognized).

If I recall correctly this problem in some form or another dates back as far as CCS 2. Is there any chance it will ever be fixed?

-itay

  • Hi Itay,

    this is actually the expected behaviour depending on the error.  Some errors there is not really any choice except for this behaviour.  It depends on when/how the parser catches things.  I have verified that for example certain syntax errors within a line of code do not cause the x at the next line.

    Many errors do end up breaking at the next line because they are errors the parser could/did not parse so it goes on to the next line.  Eg a missing semicolon error will stop at the next line because the semicolon is missing and hence the parser can not know to stop.

    Does this make sense?  Does this help?

    Best Regards,
    Lisa

  • Hi Lisa,

    I think you misunderstood me; I am not talking about the compiler and its method of parsing the C code. I am talking about the CCS Build Console and its method of parsing the compiler's output. Please look at the image below. There are two warnings and one error. Beside the source code are three properly placed icons. But look at the Console pane: the compiler's textual output is correct, but the colorization (and along with it the double-click interpreter) is offset by one line.

    Hope this clarifies things,

    -itay

  • Hi Itay,

    Ok, I see what you are saying, but I can not seem to be able to reproduce this.  When I double click in the problems view (latest CCSv5 release 5.1.1 posted on the web) it always takes me to the line where the error was encountered (the line with the red x).  In my case I do not see it highlighting the below line.

    Do you see this with all error types?  Are you also running the latest version?

    Best Regards,
    Lisa

  • There is nothing wrong with the Problems view, I am talking about the Console view. Please look at the colorization of the compiler's raw output in the window pane titled "Console" as shown in the image in my previous post.

    Running Version 5.1.1.00031 here.

  • Hi Itay,

    ok, sorry about the cross communication.  I have been able to reproduce the context highlighting problem you see.  I have filed this as a bug (ID and link if you wish to track it below). 

    SDSCM00043351

    https://cqweb.ext.ti.com/cqweb/main?command=GenerateMainFrame&service=CQ&schema=SDO-Web&contextid=SDOWP&username=readonly&password=readonly

    Unfortunately I there is no work around. 

    I hope this helps.

    Best Regards,
    Lisa