Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#38417 - [cppcheck] Fatal error on startup: "Failed to load std.cfg"
Attached to Project:
Community Packages
Opened by Mika Attila (SneakySnake) - Wednesday, 08 January 2014, 11:36 GMT
Last edited by Jelle van der Waa (jelly) - Monday, 03 March 2014, 12:06 GMT
Opened by Mika Attila (SneakySnake) - Wednesday, 08 January 2014, 11:36 GMT
Last edited by Jelle van der Waa (jelly) - Monday, 03 March 2014, 12:06 GMT
|
DetailsDescription:
When I invoke cppcheck on any file or directory, I get the following error: "(information) Failed to load std.cfg. Your Cppcheck installation is broken, please re-install. The Cppcheck binary was compiled without CFGDIR set. Either the std.cfg should be available in cfg or the CFGDIR should be configured." Then cppcheck terminates, the file/directory is not checked, rendering cppcheck unusable. Additional info: * package version: 1.63.1-1 Steps to reproduce: Invoke cppcheck on any file or directory. |
This task depends upon
Closed by Jelle van der Waa (jelly)
Monday, 03 March 2014, 12:06 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in 1.64
Monday, 03 March 2014, 12:06 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in 1.64
and ticket: http://sourceforge.net/apps/trac/cppcheck/ticket/5307
I tested the patch, Cppcheck works with it.
EDIT: Oops, didn't prefix local variable with _, uploaded a second version.
The gui still complains, so I did a little research and it seems that it's an upstream problem.
See here: https://github.com/danmar/cppcheck/commit/803182bf45e943ab3dba1fd2efa45ba2cc8cf5bc