SonarLint on Visual Studio 2015 Connect mode error SonarQue server 2025.1.1.104738

I have installed SonarLint (SonarLint.VSIX-4.38.0.36876-2015.vsix) Plugin downloaded from the link in Visual Studio 2015 Update3 and connected in Connect mode to SonarQue server v9.9. 5 (build 90363) in Connect mode.
When we recently upgraded the SonarQue server to 2025.1.1.104738, the Connect mode failed.
The error message is as follows.
Please let me know the cause and how to fix it.

Connected to SonarQube '2025.1.1.104738'.
Connecting to SonarQube server: Detecting server plugins
   Discovered a supported plugin: Plugin: 'SonarCFamily', Language(s): 'C++, C', Installed version: '6.62.2', Minimum version: '6.0'
   The languages supported by plugins on this SonarQube server (C++, C) do not match any of the solution projects' languages.
Connecting to SonarQube server: Failed
Disconnecting...

Hi,

The current version of SonarQube for Visual Studio is 8.15. Based on your link, it looks like you’re using a very old version, so it’s not surprising it can’t connect to the current LTA.

Could you upgrade and see if this is still replicable?

 
Thx,
Ann

The problem was solved by customising the server-side plugin file for SonarQube server Ver 2025.1.1.104738 as follows and restarting the SonarQube server.

  • Deleting directories and files
{$SonarInstDir}/data/web/deploy/plugins/csharpenterprise
{$SonarInstDir}/data/web/deploy/plugins/vbnetenterprise
{$SonarInstDir}/lib/extensions/sonar-csharp-enterprise-plugin-10.4.1.110446.jar
{$SonarInstDir}/lib/extensions/sonar-vbnet-enterprise-plugin-10.4.1.110446.jar
  • Adding directories and files
{$SonarInstDir}/data/web/deploy/plugins/csharp/sonar-csharp-plugin-10.7.0.110445.jar
{$SonarInstDir}/data/web/deploy/plugins/vbnet/sonar-vbnet-plugin-10.7.0.110445.jar
{$SonarInstDir}/lib/extensions/sonar-csharp-plugin-10.7.0.110445.jar
{$SonarInstDir}/lib/extensions/sonar-vbnet-plugin-10.7.0.110445.jar

SonarLint (on VS2015) logs changed as follows before and after customisation.

  • Before ( Connect NG )
Connected to SonarQube '2025.1.1.104738'.
Connecting to SonarQube server: Detecting server plugins
   Discovered a supported plugin: Plugin: 'SonarCFamily', Language(s): 'C++, C', Installed version: '6.62.2', Minimum version: '6.0'
   The languages supported by plugins on this SonarQube server (C++, C) do not match any of the solution projects' languages.
Connecting to SonarQube server: Failed
Disconnecting...
  • After ( Connect OK )
Connected to SonarQube '2025.1.1.104738'.
Connecting to SonarQube server: Detecting server plugins
   Discovered a supported plugin: Plugin: 'SonarC#', Language(s): 'C#', Installed version: '10.7.0', Minimum version: '5.0'
   Discovered a supported plugin: Plugin: 'SonarVB', Language(s): 'VB.NET', Installed version: '10.7.0', Minimum version: '3.0'
   Discovered a supported plugin: Plugin: 'SonarCFamily', Language(s): 'C++, C', Installed version: '6.62.2', Minimum version: '6.0'
Connecting to SonarQube server: Retrieving projects
Connecting to SonarQube server: Succeeded
Connecting to SonarQube server: Downloading server settings.
Establishing new binding...
Binding solution to SonarQube project: Started

Question

Is there any harm in changing the server-side plug-ins (from with “enterprise” to without) as described above?
And will it continue to be released with this type of packaging? Incidentally, the SonarQube server we are using is the Developer edition.

Hi,

I’m glad you’ve worked through your problem. To your question, you’re in uncharted territory. I’ve since learned that we don’t support your version of Visual Studio (we do support v2022).

Regarding the changes you made to the server, I believe what you’ve done is essentially downgrade the analyzers, so you’ve lost some of the “good” rules.

Is it possible for you to upgrade Visual Studio? Then you should be able to restore your server to it’s previous state.

 
Ann