Bailing out from checking ..\Sources\asw\aswSoc.c since there was an internal error: Failed to execute 'python "C:\Program Files\Cppcheck\addons\misra.py" --cli --rule-texts=../postbuild/cppcheck/misra_rules.txt --suppress-rules 17.8 ..\Sources\asw\aswSoc.c.dump'. Traceback (most recent call last): File "C:\Program Files\Cppcheck\addons\misra.py", line 3620, in <module> main() File "C:\Program Files\Cppcheck\addons\misra.py", line 3564, in main checker.parseDump(item) File "C:\Program Files\Cppcheck\addons\misra.py", line 3396, in parseDump self.executeCheck(902, self.misra_9_2, cfg) File "C:\Program Files\Cppcheck\addons\misra.py", line 3343, in executeCheck check_function(*args) File "C:\Program Files\Cppcheck\addons\misra.py", line 1745, in misra_9_2 checkArrayInitializer(eq.astOperand2, dimensions, valueType) File "C:\Program Files\Cppcheck\addons\misra.py", line 1573, in checkArrayInitializer elements = getRecordElements(valueType) if valueType.type == 'record' else NoneAttributeError: 'NoneType' object has no attribute 'type'
I've attached my .json file along with the file it errored on and the .dump. I'm using cppcheck 2.3. I'm using only the released version of cppcheck. Here is the command that is run:
Hello,
I'm afraid I'm not that familiar with docker to test this on the latest build of cppcheck. When is the next release of cppcheck scheduled? Would it be possible to get a copy soon?
Thank you,
Amir
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you click on the most recent run (now: https://github.com/danmar/cppcheck/actions/runs/601136503) then on the bottom of the screen you can download either a "deploy" or "installer". The "deploy" is all the files in a zip file.. in case you prefer that..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm getting the following error:
I've attached my .json file along with the file it errored on and the .dump. I'm using cppcheck 2.3. I'm using only the released version of cppcheck. Here is the command that is run:
cppcheck -rp --inline-suppr --addon-python=python --addon=..\postbuild\cppcheck\misra.json ..\Sources -i ..\BCC -I ..\Sources -I ..\Sources\mcal -I ..\Sources\eal -I ..\Sources\asw
Last edit: Amir 2021-02-22
Hello, Amir,
I can't reproduce this with Cppcheck and misra.py from main branch (commit c638edc).
I think the problem was fixed in the latest misra.py and misra_9.py. Could you try to update your installation?
I did a pull of main and replaced the addons folder on my computer and I get a lot of errors:
Is there another released planned soon so I can get the latest cppcheck with this resolved?
Hello,
I'm afraid I'm not that familiar with docker to test this on the latest build of cppcheck. When is the next release of cppcheck scheduled? Would it be possible to get a copy soon?
Thank you,
Amir
It will be released as soon as we feel it's ready. You can download a nightly build here:
https://github.com/danmar/cppcheck/actions/workflows/release-windows.yml
If you click on the most recent run (now: https://github.com/danmar/cppcheck/actions/runs/601136503) then on the bottom of the screen you can download either a "deploy" or "installer". The "deploy" is all the files in a zip file.. in case you prefer that..