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

Extension does not work when using clangd #215

Open lucascoelhof opened 6 months ago

lucascoelhof commented 6 months ago

I prefer using clangd instead of the default C++ Intellisense from Microsoft. Since they are conflicting extensions, I have to disable the C++ Intellisense with the following configuration:

  "C_Cpp.intelliSenseEngine": "disabled",

However, when I have this configuration and the C/C++ Advanced Lint extension enabled, a popup repeatedly appears when I save a file with the following message:

IntelliSense-related commands cannot be executed when 'C_Cpp.intelliSenseEngine' is set to 'disabled'.

This also gets logged on the extension output:

Could not find or parse the workspace c_cpp_properties.json file; continuing...
TypeError: r.parse is not a function
    at N (/home/lucas/.vscode/extensions/jbenden.c-cpp-flylint-1.14.0/server/out/server.js:2:18568)
Performing lint scan of <OMITTED_FILE_ON_MY_SYSTEM>..
Completed lint scans...

Is there a way to use C/C++ Advanced Lint with clangd?

rededx commented 3 months ago

I have the same problem and still haven't found a workaround.

ingram12 commented 3 months ago

I have same problem.

image

But when I build the extension from source and install, the extension works fine.

@jbenden I guess build from vscode store (https://marketplace.visualstudio.com/items?itemName=jbenden.c-cpp-flylint) is faild.

7osssam commented 2 months ago

Have the same problem, and building the extension from source didn't do it for me 👀