Error during a project binding in Visual Studio 2022

  • Operating system: Windows 11 Entreprise 23H2
  • Visual Studio version: Entreprise 2022 17.13.6
  • SonarQube for Visual Studio plugin version: 8.16.0.12791
  • Programming language you’re coding in: C#
  • Is connected mode used:
    • SonarQube Community Build (v9.9.8 (build 100196)):

I have an error when I try to bind a project in SonarQube for ide.


This error is displayed after I clicked on the Bind button but it’s not a blocker even if the extension clear every field, if I close the window and go back on the Manage Project Binding the binding is active.

The error is displayed also in the logs:

[DEBUG] [ThreadId 123] Sending Http request:
[DEBUG] [ThreadId 123] Method: GET, RequestUri: 'api/rules/search?activation=false&qprofile=AXynNQCA7JfDXJdIxROb&f=repo%2CinternalKey%2Cparams%2Cactives&p=2&ps=500', Version: 1.1, Content: <null>, Headers:
{
}
[DEBUG] [ThreadId 121] Response with HTTP status code 'OK' received.
[DEBUG] [ThreadId 121] {"total":594,"p":2,"ps":500,"rules":[{"key":"csharpsquid:S1244","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S125","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S1309","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S1450","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S1481","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S1541","repo":"csharpsquid","params":[{"key":"maximumFunctionComplexityThreshold","htmlDesc":"The maximum authorized complexity.","defaultValue":"10","type":"INTEGER"}],"type":"CODE_SMELL"},{"key":"csharpsquid:S1643","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S1751","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S1821","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S1848","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S1858","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S1939","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S1940","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2123","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S2156","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2223","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2234","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2291","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2292","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2306","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2327","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2328","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S2330","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2333","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2339","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2342","repo":"csharpsquid","params":[{"key":"format","htmlDesc":"Regular expression used to check the enumeration type names against.","defaultValue":"^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$","type":"STRING"},{"key":"flagsAttributeFormat","htmlDesc":"Regular expression used to check the flags enumeration type names against.","defaultValue":"^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?s$","type":"STRING"}],"type":"CODE_SMELL"},{"key":"csharpsquid:S2344","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2346","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2368","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2376","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2436","repo":"csharpsquid","params":[{"key":"max","htmlDesc":"Maximum authorized number of generic parameters.","defaultValue":"2","type":"INTEGER"},{"key":"maxMethod","htmlDesc":"Maximum authorized number of generic parameters for methods.","defaultValue":"3","type":"INTEGER"}],"type":"CODE_SMELL"},{"key":"csharpsquid:S2437","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2743","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2757","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S2760","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2761","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S2953","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S2996","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S3172","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S3220","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3235","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3246","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3251","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3254","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3256","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3262","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3263","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S3265","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3397","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S3445","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3450","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3458","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3464","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S3532","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3626","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3876","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3880","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3889","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S3900","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3903","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S3908","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3909","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3926","repo":"csharpsquid","params":[],"type":"BUG"},{"key":"csharpsquid:S3963","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3973","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3990","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3992","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3993","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3995","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S3996","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4005","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4015","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4017","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4018","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4019","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4022","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4023","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4027","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4039","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4040","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4041","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4047","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4052","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4055","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4056","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4057","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4059","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4061","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4070","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4144","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4200","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4456","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S4457","repo":"csharpsquid","params":[],"type":"CODE_SMELL"},{"key":"csharpsquid:S907","repo":"csharpsquid","params":[],"type":"CODE_SMELL"}],"actives":{},"qProfiles":{},"paging":{"pageIndex":2,"pageSize":500,"total":594}}
[DEBUG] [ThreadId 121] Received 94 items.
[DEBUG] [ThreadId 6] Looking up implementation of 'IGetExclusionsRequest' for version '9.9.8.100196' on thread '6'
[DEBUG] [ThreadId 6] Created request of type 'SonarQube.Client.Api.V7_20.GetExclusionsRequest'.
[DEBUG] [ThreadId 6] Sending Http request:
[DEBUG] [ThreadId 6] Method: GET, RequestUri: 'api/settings/values?component=<ProjectName>&keys=sonar.exclusions%2Csonar.global.exclusions%2Csonar.inclusions', Version: 1.1, Content: <null>, Headers:
{
}
[DEBUG] [ThreadId 123] Response with HTTP status code 'OK' received.
[DEBUG] [ThreadId 123] {"settings":[],"setSecuredSettings":[]}
[ThreadId 1] [Connected Mode > Binding > Manual] [Manual { }] Binding failed due to: Specified argument was out of the range of valid values.
Parameter name: Unsupported SonarQube issue severity: Unknown

Hi,

You’re using the very latest SonarQube For Visual Studio (:tada:) with an EOL version of SonarQube. The current version is 25.4 (25.5 imminent).

It’s time to lobby your SonarQube admins to upgrade. :innocent:

 
HTH,
Ann

Hello,

If I understand well what you’re saying. Our SonarQube server version need to be update and that’s the cause of our issue ?
Based on your documentation it’s seems that the version 9.9 should be active 9 months after the latest LTA release Connected Mode - SonarQube for IDE Documentation - IntelliJ
Or 6 months after the latest LTA release. https://docs.sonarsource.com/sonarqube-server/latest/server-upgrade-and-maintenance/upgrade/release-cycle-model/#active-versions
Maybe there is something I don’t understand, because the version 9.9 should be supported until June or September.

Hi,

Community Build no longer has LTAs. For Community Build only the latest release is supported.

 
HTH,
Ann

1 Like