# Vscode is remotely connected to Linux in windows, and the sonarlint plug-in does not work

**URL:** <https://community.sonarsource.com/t/vscode-is-remotely-connected-to-linux-in-windows-and-the-sonarlint-plug-in-does-not-work/63520>\
**Category:** VS Code\
**Tags:** vscode\
**Created:** [May 19, 2022, 8:26am UTC](https://community.sonarsource.com/t/vscode-is-remotely-connected-to-linux-in-windows-and-the-sonarlint-plug-in-does-not-work/63520 "2022-05-19T08:26:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bonjour](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bonjour](https://community.sonarsource.com/u/bonjour)\
**Post date:** [May 19, 2022, 8:26am UTC](https://community.sonarsource.com/t/vscode-is-remotely-connected-to-linux-in-windows-and-the-sonarlint-plug-in-does-not-work/63520/1 "2022-05-19T08:26:04Z")

</div>

Please provide

- Operating system: windows10 remote linux
- IDE name and flavor/env: vscode
- SonarLint plugin version: 3.4.1
- Is connected mode used: no
  - Connected to SonarCloud or SonarQube (and which version): no

And a thorough description of the problem / question:  
I use vscode to connect to Linux remotely. The Sonarlint plugin was also installed on Linux systems, compile\_commands.json I also used comparedb make to generate automatically, settings.json was also configured with “sonarlint.pathToCompileCommands”, but when analyzing the C code, the plugin did not take effect. While creating a java file in the project, sonarlint analyzes the java code to be valid.

---

<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:** [May 20, 2022, 8:17am UTC](https://community.sonarsource.com/t/vscode-is-remotely-connected-to-linux-in-windows-and-the-sonarlint-plug-in-does-not-work/63520/2 "2022-05-20T08:17:23Z")

</div>

Hello, thanks for reporting this.

Could you please follow [the steps described in the FAQ to enable analysis logs](https://community.sonarsource.com/t/frequently-asked-questions/7204#how-to-get-sonarlint-for-vscode-logs-12) and share the output of analyzing the C code in this thread? This could be useful in understanding what goes wrong.

---

<div class="post-metadata">

**Author:** ![bonjour](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bonjour](https://community.sonarsource.com/u/bonjour)\
**Post date:** [May 20, 2022, 9:16am UTC](https://community.sonarsource.com/t/vscode-is-remotely-connected-to-linux-in-windows-and-the-sonarlint-plug-in-does-not-work/63520/4 "2022-05-20T09:16:07Z")

</div>

[Info - 09:20:47.693] Analyzing file ‘file:///home/hsm/.vscode/settings.json’…  
[Warn - 09:20:48.506] Plugin ‘secrets’ embeds dependencies. This will be deprecated soon. Plugin should be updated.  
[Info - 09:20:52.084] Index files  
[Info - 09:20:52.093] 1 file indexed  
[Info - 09:20:52.461] Found 0 issues  
[Info - 09:20:52.518] Analyzing file ‘file:///home/hsm/.vscode/c\_cpp\_properties.json’…  
[Info - 09:20:52.530] Index files  
[Info - 09:20:52.530] 1 file indexed  
[Info - 09:20:52.554] Found 0 issues  
[Info - 09:21:10.214] Analyzing file ‘file:///home/hsm/src/compile\_commands.json’…  
[Info - 09:21:10.224] Index files  
[Info - 09:21:10.225] 1 file indexed  
[Info - 09:21:10.248] Found 0 issues  
[Info - 09:21:15.083] Analyzing file ‘file:///home/hsm/src/hello.c’…  
[Info - 09:21:15.094] Index files  
[Info - 09:21:15.094] 1 file indexed  
[Info - 09:21:19.070] Parsing compilation database /home/hsm/.vscode/compile\_commands.json  
[Info - 09:21:19.175] Skip analysis of file: /home/hsm/src/hello.c  
[Info - 09:21:19.176] Subprocess(es) done in 151ms  
[Info - 09:21:19.176] 0 compilation units analyzed  
[Info - 09:21:19.193] Found 0 issues

---

<div class="post-metadata">

**Author:** ![bonjour](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bonjour](https://community.sonarsource.com/u/bonjour)\
**Post date:** [May 20, 2022, 9:16am UTC](https://community.sonarsource.com/t/vscode-is-remotely-connected-to-linux-in-windows-and-the-sonarlint-plug-in-does-not-work/63520/5 "2022-05-20T09:16:58Z")

</div>

![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/7/0/702c5234ef2dd4830543abcbaf2c9c1bdd7dddaa.png)
