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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems with python path settings for cppcheck in plugin.

ktyang512 opened this issue · comments

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?

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