# Cfamily analyzer not recognized by SonarQube for IDE in VS Code?

**URL:** <https://community.sonarsource.com/t/cfamily-analyzer-not-recognized-by-sonarqube-for-ide-in-vs-code/139188>\
**Category:** VS Code\
**Tags:** cfamily, sonarqube-ide\
**Created:** [April 23, 2025, 12:04pm UTC](https://community.sonarsource.com/t/cfamily-analyzer-not-recognized-by-sonarqube-for-ide-in-vs-code/139188 "2025-04-23T12:04:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![cd6d](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@cd6d](https://community.sonarsource.com/u/cd6d)\
**Post date:** [April 23, 2025, 12:04pm UTC](https://community.sonarsource.com/t/cfamily-analyzer-not-recognized-by-sonarqube-for-ide-in-vs-code/139188/1 "2025-04-23T12:04:06Z")

</div>

- Operating system: Windows 11
- VS Code version : 1.84.0
- SonarQube for VS Code plugin version: 4.20.2
- SonarQube CFamiliy analyzer version : 6.65.0.081949
- Programming language you’re coding in: C/C++/Python
- Is connected mode used: no

Hello,  
I am trying to setup SonarQube for IDE for the first time in offline mode and I am having troubles getting de C/C++ analyzer to work.  
On the left pane of my VS Code IDE I can see the SonarQube extension and rules for a lot of langages (including Python that I use) but no C/C++.

I made a few research ([Offline installation - SonarQube for IDE Documentation - VS Code](https://docs.sonarsource.com/sonarqube-for-ide/vs-code/getting-started/offline-installation/)) and found out I needed to download CFamiliy analyzer and deploy it in a folder, which I did, but it still won’t show up in rules.  
This path to my CFamily.jar file : ‘D:/user/.vscode/extensions/sonarsource.sonarlint\_ondemand-analyzers/sonar-cfamily-version/6.65.0.081949/sonarcfamily.jar’  
I also tried ‘D:/user/.vscode/extensions/sonarsource.sonarlint\_ondemand-analyzers/sonar-cfamily-version/6.65/sonarcfamily.jar’ without success.

For the C/C++, I setup the path to my project compile\_commands.json file exported by CMake, and these commands build the project without any issue.

I am falling short in term of new idea to get the C/C++ analyzer to work, so here I am asking for your help.

Thanks !

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [April 23, 2025, 1:09pm UTC](https://community.sonarsource.com/t/cfamily-analyzer-not-recognized-by-sonarqube-for-ide-in-vs-code/139188/2 "2025-04-23T13:09:03Z")

</div>

Hi,

Welcome to the community!

Could you share your [log](https://docs.sonarsource.com/sonarqube-for-ide/vs-code/troubleshooting/) please?

&nbsp;  
Thx,  
Ann

---

<div class="post-metadata">

**Author:** ![cd6d](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@cd6d](https://community.sonarsource.com/u/cd6d)\
**Post date:** [April 23, 2025, 3:35pm UTC](https://community.sonarsource.com/t/cfamily-analyzer-not-recognized-by-sonarqube-for-ide-in-vs-code/139188/3 "2025-04-23T15:35:14Z")

</div>

Sure, here it is 🙂  
[sonarqube\_debug\_log.txt](https://community.sonarsource.com/uploads/short-url/z00PuqhZBmiynBewkNpEs71Glhv.txt) (69.3 KB)  
Thanks,

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [April 23, 2025, 3:43pm UTC](https://community.sonarsource.com/t/cfamily-analyzer-not-recognized-by-sonarqube-for-ide-in-vs-code/139188/5 "2025-04-23T15:43:40Z")

</div>

Hi,

Thanks! I’ve flagged this for the experts.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![JBL\_SonarSource](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jbl_sonarsource/32/64_2.png) [@JBL\_SonarSource](https://community.sonarsource.com/u/JBL_SonarSource)\
**Post date:** [April 24, 2025, 7:38am UTC](https://community.sonarsource.com/t/cfamily-analyzer-not-recognized-by-sonarqube-for-ide-in-vs-code/139188/7 "2025-04-24T07:38:50Z")

</div>

Hello, thanks for the detailed report!

If I am not mistaken, the path to the offline download is _almost_ correct:

> [@cd6d](#):
>
> D:/user/.vscode/extensions/sonarsource.sonarlint\_ondemand-analyzers/sonar-cfamily-version/6.65.0.081949/sonarcfamily.jar

According to what I see in the log, it should be something like:

`D:/users/usr/.vscode/extensions/sonarsource.sonarlint_ondemand-analyzers/sonar-cfamily-version/6.65.0.81949/sonarcfamily.jar`

The `sonarsource.sonarlint_ondemand-analyzers` folder should be next to the extension’s folder, and the `0` character before the 4th version item should be removed.

---

<div class="post-metadata">

**Author:** ![cd6d](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@cd6d](https://community.sonarsource.com/u/cd6d)\
**Post date:** [April 24, 2025, 7:57am UTC](https://community.sonarsource.com/t/cfamily-analyzer-not-recognized-by-sonarqube-for-ide-in-vs-code/139188/8 "2025-04-24T07:57:36Z")

</div>

Hello, thanks for your answer !  
I tried your suggestions :  
Both `sonarsource.sonarlint_ondemand-analyzers` and `sonarsource.sonarlint-vscode-4.20.2` are under `d:/users/usr/.vscode/extensions`.  
The analyzer is located here : `D:/users/usr/.vscode/extensions/sonarsource.sonarlint_ondemand-analyzers/sonar-cfamily-version/6.65.0.81949/sonarcfamily.jar`.  
But I still have the same warning at the start of the log file :`[Warn] Embedded plugin not found : c`.

---

<div class="post-metadata">

**Author:** ![sophio.japharidze](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/sophio.japharidze/32/34536_2.png) [@sophio.japharidze](https://community.sonarsource.com/u/sophio.japharidze)\
**Post date:** [May 23, 2025, 1:15pm UTC](https://community.sonarsource.com/t/cfamily-analyzer-not-recognized-by-sonarqube-for-ide-in-vs-code/139188/9 "2025-05-23T13:15:52Z")

</div>

Hello! 👋

Can you give it a try with version 4.22 of the extension and version [6.66.0](https://binaries.sonarsource.com/CommercialDistribution/sonar-cfamily-plugin/sonar-cfamily-plugin-6.66.0.83483.jar) of the analyzer? Please make sure to reload the VS Code window after downloading the plugin in the correct place.

All the best,  
Sophio

---

<div class="post-metadata">

**Author:** ![LyndenAtAACB](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/lyndenataacb/32/69716_2.png) [@LyndenAtAACB](https://community.sonarsource.com/u/LyndenAtAACB)\
**Post date:** [May 30, 2025, 2:48am UTC](https://community.sonarsource.com/t/cfamily-analyzer-not-recognized-by-sonarqube-for-ide-in-vs-code/139188/10 "2025-05-30T02:48:01Z")

</div>

The [offline installation instructions](https://docs.sonarsource.com/sonarqube-for-ide/vs-code/getting-started/offline-installation/) say that the path should be `.../sonar-cfamily-version/...`  
however, this post: [Getting "Fetch Failed" Error at SonarQube startup - #11 by JBL\_SonarSource](https://community.sonarsource.com/t/getting-fetch-failed-error-at-sonarqube-startup/139722/11)  
says the path should be `.../sonar-cfamily-plugin/...` (note: `plugin`, not `version`)!  
I have confirmed that it works for me - though it took me a long long time to realise the discrepancy, and was only able to be found by seeing that post, as the documentation is INCORRECT and the error messages even with all logging enabled is completely and utterly unhelpful!!

Also, note that, in my experience with working through ssh, the path should be `.vscode-server/...` rather than `.vscode/...`

---

<div class="post-metadata">

**Author:** ![sophio.japharidze](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/sophio.japharidze/32/34536_2.png) [@sophio.japharidze](https://community.sonarsource.com/u/sophio.japharidze)\
**Post date:** [May 30, 2025, 8:08am UTC](https://community.sonarsource.com/t/cfamily-analyzer-not-recognized-by-sonarqube-for-ide-in-vs-code/139188/11 "2025-05-30T08:08:04Z")

</div>

That’s a nice catch @LyndenAtAACB , thanks A LOT!! 🙇‍♀️

I will flag this to get our docs updated. ✏

All the best,  
Sophio

---

<div class="post-metadata">

**Author:** ![cyn.bethea](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/cyn.bethea/32/35008_2.png) [@cyn.bethea](https://community.sonarsource.com/u/cyn.bethea)\
**Post date:** [May 30, 2025, 2:41pm UTC](https://community.sonarsource.com/t/cfamily-analyzer-not-recognized-by-sonarqube-for-ide-in-vs-code/139188/13 "2025-05-30T14:41:24Z")

</div>

The page is updated with the correct path for offline installation.

Thank you @LyndenAtAACB for letting us know, user feedback helps us keeps the docs up to date.

---

<div class="post-metadata">

**Author:** ![cd6d](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@cd6d](https://community.sonarsource.com/u/cd6d)\
**Post date:** [June 10, 2025, 8:58am UTC](https://community.sonarsource.com/t/cfamily-analyzer-not-recognized-by-sonarqube-for-ide-in-vs-code/139188/17 "2025-06-10T08:58:57Z")

</div>

Hello,  
Thanks a lot, you solved the problem ! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [June 17, 2025, 8:59am UTC](https://community.sonarsource.com/t/cfamily-analyzer-not-recognized-by-sonarqube-for-ide-in-vs-code/139188/18 "2025-06-17T08:59:30Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
