Menu

Cppcheck GUI tries to run misra.py addon in the wrong method

Yukihyo
2024-01-13
2024-02-19
  • Yukihyo

    Yukihyo - 2024-01-13

    Hi, I am using Cppcheck 2.13.0 with GUI + Python version 3.12.1 in Windows 10.

    When analysis run with MISRA-C:2013 addon, the operation is abort and the following message:

    Bailing out from analysis: Checking file failed: Failed to execute addon '' - exitcode is 2: python.exe   --cli C:\...\Main.a1.1700.dump
    Output:
    
    unknown option --cli
    usage: python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
    Try `python -h' for more information.
    

    looks like some fields are not filled. ("Failed to execute addon ''", odd number of spaces between python.exe and --cli.)

    I tried run with the CLI command under the same conditions except using the GUI tool. I did the following:

    cppcheck --dump ...\Application\Main.c
    python misra.py --rule-texts=...\Rules.txt ...Application\Main.c.dump
    

    Works fine. I thought to be purely a problem with the GUI tool.

    Add: only problem at 2.13.0. works fine 2.12.0.

     

    Last edit: Yukihyo 2024-01-13
  • Daniel Marjamäki

    Thanks for this report, it does not work well for me neither in the GUI however I get slightly different problems. I have created this ticket:
    https://trac.cppcheck.net/ticket/12352

     
  • vix

    vix - 2024-02-19

    I have the same issue,
    is there any roadmap for fixing it?
    Is there any workaround in the meanwhile?

    Thanks

     
  • Daniel Marjamäki

    I have it on my TODO list however there are other tasks before it. I would hope it can be fixed in ~1-2 months.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.