Assertion Failed - Clang Compiler Exception in PSoC® Creator™ - KBA96713

Version 4

    Version: *A

     

    Translation - Japanese: アサーションの失敗 - PSoC®Creator™におけるClangコンパイラの例外 - KBA96713 - Community Translated (JA)

     

    Question:

    Why do I get an “Assertion failed!” error in the code editor of PSoC Creator?

    1.png

     

    Answer:

    This is a known issue with PSoC Creator. The problem happens only in files that end in a comment and don't contain a newline at the end of the file. To overcome the issue, add a new blank line immediately after one of the following lines at the end of the file.

     

    /*[]*/

     

    OR

     

    /* [] END OF FILE */

     

    The other work around for this issue is to disable semantic parsing from the options dialog in PSoC Creator (Tools > Options > Text Editor > General. > Semantic Parsing

     

    2.png