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 29 forks source link

Line could not be parsed: cppcheck: '--enable=information' will no longer implicitly enable 'missingInclude' starting with 2.16 #196

Closed FabianGa closed 1 year ago

FabianGa commented 1 year ago

Hi,

I get this error during every cppcheck scan:

'Line could not be parsed: cppcheck: '--enable=information' will no longer implicitly enable 'missingInclude' starting with 2.16. Please enable it explicitly if you require it.' while validating: XX. Please analyze the 'C/C++ FlyLint' Output console. Stacktrace: Error: Line could not be parsed: cppcheck: '--enable=information' will no longer implicitly enable 'missingInclude' starting with 2.16. Please enable it explicitly if you require it.
    at .vscode/extensions/jbenden.c-cpp-flylint-1.13.0/server/out/server.js:2:12688
    at Array.forEach (<anonymous>)
    at a.parseLines (.vscode/extensions/jbenden.c-cpp-flylint-1.13.0/server/out/server.js:2:12437)
    at a.lint (.vscode/extensions/jbenden.c-cpp-flylint-1.13.0/server/out/server.js:2:12340)
    at /vscode/extensions/jbenden.c-cpp-flylint-1.13.0/server/out/server.js:2:21824
    at Array.forEach (<anonymous>)
    at B (.vscode/extensions/jbenden.c-cpp-flylint-1.13.0/server/out/server.js:2:21799)
    at async .vscode/extensions/jbenden.c-cpp-flylint-1.13.0/server/out/server.js:2:24716

There is no more information in the output console, as referred to.

thanks

LeChatP commented 1 year ago

Same here, This is annoying and sometimes goes into a VSCode crash if I would click on the "configure notification" button.

vilewired commented 1 year ago

It seems like the owner of cppcheck warns people of what will happen in the next release before even releasing it. To me it looks like he prints that error but also (still) enables missingInclude. I would've warned people with the actual release instead.. Not too sure if you can fix that warning, I will comment again if I find something out, otherwise I will disable cppcheck temporarily

spoorcc commented 1 year ago

Duplicate of https://github.com/jbenden/vscode-c-cpp-flylint/issues/193?

Should be fixed in https://github.com/jbenden/vscode-c-cpp-flylint/commit/e1d51c439a44265e2e9d445368a6db68b8abd42f

yozachar commented 1 year ago

Thanks for the extension. I have the same error.

"Line could not be parsed: cppcheck: '--enable=information' will no longer implicitly enable 'missingInclude' starting with 2.16. Please enable it explicitly if you require it." while validating: /home/us-er/Documents/workspace/github/rubric/c/searchLinear.c. Please analyze the 'C/C++ FlyLint' Output console. Stacktrace: Error: Line could not be parsed: cppcheck: '--enable=information' will no longer implicitly enable 'missingInclude' starting with 2.16. Please enable it explicitly if you require it.
    at /home/us-er/.vscode/extensions/jbenden.c-cpp-flylint-1.13.0/server/out/server.js:2:12688
    at Array.forEach (<anonymous>)
    at a.parseLines (/home/us-er/.vscode/extensions/jbenden.c-cpp-flylint-1.13.0/server/out/server.js:2:12437)
    at a.lint (/home/us-er/.vscode/extensions/jbenden.c-cpp-flylint-1.13.0/server/out/server.js:2:12340)
    at /home/us-er/.vscode/extensions/jbenden.c-cpp-flylint-1.13.0/server/out/server.js:2:21824
    at Array.forEach (<anonymous>)
    at Function.B (/home/us-er/.vscode/extensions/jbenden.c-cpp-flylint-1.13.0/server/out/server.js:2:21799)

Last release was on Jan 7, and fix was on Jun 26, when can we expect next release please?

jbenden commented 1 year ago

It just published! https://github.com/jbenden/vscode-c-cpp-flylint/releases/tag/v1.13.1