johnthagen / clion-cppcheck

:ballot_box_with_check: cppcheck plugin for CLion
https://plugins.jetbrains.com/plugin/8143-cppcheck/
MIT License
31 stars 6 forks source link

Cppcheck execution failed #73

Closed Edw590 closed 2 years ago

Edw590 commented 2 years ago

Environment

Expected behaviour

That it would analyze the code normally, which I'm not sure if it does.

Actual behaviour

I'm not sure if it analyzes the code (I don't see any Cppcheck warnings - so not sure it's the code that it's good or the plugin that it's not working), but it throws an error every time it attempts to analyze the code:

Cppcheck execution failed: [project path here, probably - I can't see it all, it's cut after a big and there's no expanding option]
SAXParseException: Premature end of file.

Normally this error happens twice in a row, if that helps (a second between each of them).

Steps to reproduce the behaviour

No idea, it happens with any project I open, so I think it's not normal this would happen. Every time I change some line and save, the 2 errors appear again.

firewave commented 2 years ago

The --version in the options causes Cppcheck to do nothing and just return its version instead. Hence the error parsing the --xml output.

The --verbose option is also unnecessary but does not interfere with the `--xml output.

Edw590 commented 2 years ago

Wow. I'm dumb, never mind. Sorry to bother you. Thanks though, and thank you for the plugin!

firewave commented 2 years ago

Wow. I'm dumb, never mind. Sorry to bother you. Thanks though, and thank you for the plugin!

No problem. This just highlights that the configuration is awkward and needs to be improved at some point.