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.

CODECOMPOSER: V20.2.0 API importProject throws error

Part Number: CODECOMPOSER

Tool/software:

Hi,

I`m using the CCS API in order build projects in a gitlab CI/CD pipeline as one does these days. I`ve used it with MSP430 and *****>

  • Hello Steffan,

    But when I want build it on the linux docker container the API trows an error:

    The error is coming from the project import step, not the build step.

    It looks like an issue with build variable expansion which caused an issue with the import. After the failure, if you try to build the project with buildProject, does it build successfully?

    Thanks

    ki

  • Hi Ki,

    that`s right. It´s coming from importProject. If I run buildProject after importProject. An error occurs that there is no project in workspace. So importProject faild. I´ve used File->importProject on my local CCS (Windows) to initially import the project since it was still on CCS 12.8.1.

    So something is wrong in the project settings -> I´ve attached them above. Is there a away to debug the root cause with the API?

    Thanks!

    Steffen

  • Interestingly, when I try importing the project you attached, I get the failure but then when I run a separate command to build it, it does recognize the project and tries to build it:

    Is there a away to debug the root cause with the API?

    I'll need to have engineering take a look. Please note that the primary expert is currently away so this can delay investigation.

    Thanks

    ki

  • Thanks! At least you can re-produce the error! I´ll wait...

  • One last quick question. Even though the import attempt gave errors, I saw the project folder created in the workspace folder and when I launched the CCS IDE, the project appears in the Explorer. I assume you don't launch the IDE in your docker container but did you see the project folder created in the workspace folder?

  • I´ve checked it at the folder is there. Then I´ve tried buildProject with the API and that is actually working. I´ve used before autobuild true with importProject but that faield.

    So even the project import fails the build afterwards works.