版本2.8.0.214以来的SonarLint绑定错误 - 项目计数超出范围?

时间:2016-11-08 16:08:04

标签: c# sonarlint sonarlint-vs

我将解决方案绑定到SonarQube项目时遇到错误。我正在使用VS 2015 Update 3,SonarLint 2.8.0.214和SonarQube 5.6。此外,已绑定项目的更新失败。

我想这与我昨天安装的新SonarLint版本有关。在更新SonarLint扩展之前,我没有遇到过这类错误。

似乎项目计数超出范围:

Binding solution to SonarQube project: Started
Binding solution to SonarQube project: Discovering solution projects
   Included projects:
   * ConsoleApplication2\ConsoleApplication2.csproj
   * ConsoleApplication1\ConsoleApplication1.csproj
   Excluded projects:
   * None (for selected SonarQube project's quality profile)
   You can change the exclusion options via the SonarLint project-level context menu i.e. Solution Explorer -> Select project(s)
Binding solution to SonarQube project: Download quality profile(s):
   Successfully downloaded quality profile. Name: 'HomagGroup Recomended (Roslyn CA)', Key: 'cs-homaggroup-recomended-roslyn-ca-58198', Language: 'C#'
   Installing NuGet package 'SonarAnalyzer.CSharp' for project 'ConsoleApplication2'
   Successfully installed NuGet package 'SonarAnalyzer.CSharp' for project 'ConsoleApplication2'
   Installing NuGet package 'StyleCop.Analyzers' for project 'ConsoleApplication2'
   Successfully installed NuGet package 'StyleCop.Analyzers' for project 'ConsoleApplication2'
   Installing NuGet package 'System.Runtime.Analyzers' for project 'ConsoleApplication2'
   Successfully installed NuGet package 'System.Runtime.Analyzers' for project 'ConsoleApplication2'
Unexpected error during workflow execution: Invalid range. Expected [1, 2]
Parameter name: increment
Actual value was 3..
Binding solution to SonarQube project: Started
Binding solution to SonarQube project: Discovering solution projects
   Included projects:
   * ConsoleApplication2\ConsoleApplication2.csproj
   * ConsoleApplication1\ConsoleApplication1.csproj
   * ConsoleApplication3\ConsoleApplication3.csproj
   * ConsoleApplication4\ConsoleApplication4.csproj
   Excluded projects:
   * None (for selected SonarQube project's quality profile)
   You can change the exclusion options via the SonarLint project-level context menu i.e. Solution Explorer -> Select project(s)
Binding solution to SonarQube project: Download quality profile(s):
   Successfully downloaded quality profile. Name: 'HomagGroup Recomended (Roslyn CA)', Key: 'cs-homaggroup-recomended-roslyn-ca-58198', Language: 'C#'
   Installing NuGet package 'SonarAnalyzer.CSharp' for project 'ConsoleApplication2'
   Successfully installed NuGet package 'SonarAnalyzer.CSharp' for project 'ConsoleApplication2'
   Installing NuGet package 'StyleCop.Analyzers' for project 'ConsoleApplication2'
   Successfully installed NuGet package 'StyleCop.Analyzers' for project 'ConsoleApplication2'
   Installing NuGet package 'System.Runtime.Analyzers' for project 'ConsoleApplication2'
   Successfully installed NuGet package 'System.Runtime.Analyzers' for project 'ConsoleApplication2'
   Installing NuGet package 'Microsoft.AnalyzerPowerPack' for project 'ConsoleApplication2'
   Successfully installed NuGet package 'Microsoft.AnalyzerPowerPack' for project 'ConsoleApplication2'
   Installing NuGet package 'Desktop.Analyzers' for project 'ConsoleApplication2'
   Successfully installed NuGet package 'Desktop.Analyzers' for project 'ConsoleApplication2'
Unexpected error during workflow execution: Invalid range. Expected [1, 4]
Parameter name: increment
Actual value was 5..
Binding solution to SonarQube project: Started
Binding solution to SonarQube project: Discovering solution projects
   Included projects:
   * ConsoleApplication2\ConsoleApplication2.csproj
   * ConsoleApplication1\ConsoleApplication1.csproj
   * ConsoleApplication3\ConsoleApplication3.csproj
   * ConsoleApplication4\ConsoleApplication4.csproj
   * ConsoleApplication5\ConsoleApplication5.csproj
   Excluded projects:
   * None (for selected SonarQube project's quality profile)
   You can change the exclusion options via the SonarLint project-level context menu i.e. Solution Explorer -> Select project(s)
Binding solution to SonarQube project: Download quality profile(s):
   Successfully downloaded quality profile. Name: 'HomagGroup Recomended (Roslyn CA)', Key: 'cs-homaggroup-recomended-roslyn-ca-58198', Language: 'C#'
   Installing NuGet package 'SonarAnalyzer.CSharp' for project 'ConsoleApplication2'
   Successfully installed NuGet package 'SonarAnalyzer.CSharp' for project 'ConsoleApplication2'
   Installing NuGet package 'StyleCop.Analyzers' for project 'ConsoleApplication2'
   Successfully installed NuGet package 'StyleCop.Analyzers' for project 'ConsoleApplication2'
   Installing NuGet package 'System.Runtime.Analyzers' for project 'ConsoleApplication2'
   Successfully installed NuGet package 'System.Runtime.Analyzers' for project 'ConsoleApplication2'
   Installing NuGet package 'Microsoft.AnalyzerPowerPack' for project 'ConsoleApplication2'
   Successfully installed NuGet package 'Microsoft.AnalyzerPowerPack' for project 'ConsoleApplication2'
   Installing NuGet package 'Desktop.Analyzers' for project 'ConsoleApplication2'
   Successfully installed NuGet package 'Desktop.Analyzers' for project 'ConsoleApplication2'
   Installing NuGet package 'SonarAnalyzer.CSharp' for project 'ConsoleApplication1'
   Successfully installed NuGet package 'SonarAnalyzer.CSharp' for project 'ConsoleApplication1'
Unexpected error during workflow execution: Invalid range. Expected [1, 5]
Parameter name: increment
Actual value was 6..

我该怎么做才能解决这个问题?

感谢您的帮助。

我刚刚克隆了sonarlint-visualstudio GitHub项目并安装了调试VSIX版本。这是输出:

Unexpected error during workflow execution: 
System.ArgumentOutOfRangeException: Invalid range. Expected [1, 1]

Parameter name: increment

Actual value was 2.

   at SonarLint.VisualStudio.Progress.Controller.DeterminateStepProgressNotifier.IncrementProgress(Int32 increment)

   at SonarLint.VisualStudio.Progress.Controller.DeterminateStepProgressNotifier.NotifyIncrementedProgress(String message, Int32 increment)

   at SonarLint.VisualStudio.Integration.Binding.BindingWorkflow.InstallPackages(IProgressController controller, CancellationToken token, IProgressStepExecutionEvents notificationEvents)

   at SonarLint.VisualStudio.Integration.Binding.BindingWorkflow.<>c__DisplayClass27_0.<CreateWorkflowSteps>b__5(CancellationToken token, IProgressStepExecutionEvents notifications)

   at SonarLint.VisualStudio.Progress.Controller.ProgressControllerStep.ExecuteOperation(CancellationToken cancellationToken, IProgressStepExecutionEvents progressCallback)

   at SonarLint.VisualStudio.Progress.Controller.ProgressControllerStep.DoStatefulExecution(IProgressStepExecutionEvents progressCallback, CancellationToken cancellationToken).

DEBUGONLY: Binding workflow finished, Execution result: Failed

1 个答案:

答案 0 :(得分:0)

我在JIRA中创建了ticket,因此您可以关注此问题的进展情况。我们目前正在处理它。