Error binding SonarLint to SonarQube

  • Operating system: Windows 10
  • SonarLint plugin version: 6.14.0.65870
  • Programming language you’re coding in: C#
  • Is connected mode used:
    • Connected to SonarQube 9.5

And a thorough description of the problem / question:

When trying to bind SonarLint to the solution’s project in SonarQube, I get this error in the logs:

Binding solution to SonarQube project: Download quality profile(s):
SonarQube request failed: Response status code does not indicate success: 400 ().
Unexpected error during workflow execution: Value cannot be null.
Parameter name: source.

When I captured the call to sonar within Fiddler, I see the following error message:

{“errors”:[{“msg”:“Value of parameter \u0027f\u0027 (educationPrinciples) must be one of: [actives, createdAt, debtOverloaded, debtRemFn, defaultDebtRemFn, defaultRemFn, deprecatedKeys, descriptionSections, effortToFixDescription, gapDescription, htmlDesc, htmlNote, internalKey, isExternal, isTemplate, lang, langName, mdDesc, mdNote, name, noteLogin, params, remFn, remFnOverloaded, repo, scope, severity, status, sysTags, tags, templateKey, updatedAt]”}]}

And indeed, the f parameter of this call looks like:

repo,internalKey,params,actives,htmlDesc,descriptionSections,educationPrinciples,tags,name,htmlNote

But the error message says educationPrinciples isn’t allowed.

So my question is, do we need to upgrade our instance of SQ in order for it to support this additional value or is there a way to configure SonarLint to not include this in its parameters?

Hi Dan,

We were able to reproduce the problem and created a ticket. It will be fixed in our next release, which will be in 2nd half of April.
We are sorry for the inconvenience; meanwhile, you can use the previous version of the SonarLint, which you can get from here
You will not have to upgrade your SQ instance to work in connected mode, but you will have limited support for one of the upcoming features.

Hi Dan,

We have decided to have a bugfix release for this bug and you can get the latest version from Visual Studio Marketplace.