jbenden / vscode-c-cpp-flylint

A VS Code extension for advanced, modern, static analysis of C/C++ that supports a number of back-end analyzer programs.
MIT License
152 stars 30 forks source link

Problems with python path settings for cppcheck in plugin. #218

Open ktyang512 opened 6 months ago

ktyang512 commented 6 months ago

I am using cppcheck to check the code for misra c rules. I use the plugin to call cppcheck it will report failed to auto detect python. I have already set the path of python in the environment variable, but cppcheck still can't find it. I don't know what the reason is. And when I use the cppcheck command directly, I can set the location of the python to be used with the --addon-python parameter. So I wonder if there is a method to configure the path to the python in the plugin?

jbenden commented 5 months ago

You should be able to pass the flag --addon-python using the extraArgs setting, for CppCheck.