SonarQube Analyze error during execution IllegalArgumentException - Line is out of range for

Since upgrading to latest version of SonarQube Developer Edition (v10.5.1), all of our C# Blazor pipelines in Azure DevOps are failing on the Analyze task.
They get following error example:

ERROR: Error during SonarScanner execution
java.lang.IllegalArgumentException: Line 32 is out of range for file Field Inspection Web Application/xxxxxxxx/_Imports.razor. File has 31 lines.

##[error] ERROR: Error during SonarScanner execution

java.lang.IllegalArgumentException: Line 32 is out of range for file Field Inspection Web Application/JEA.FieldInspection.WebApp/JEA.FieldInspection.WebApp.WebClient/_Imports.razor. File has 31 lines.

##[error]at org.sonar.api.utils.Preconditions.checkArgument(Preconditions.java:43)

The complete verbose log (minus sources and irrelevant debug info) of the analyze is attached
sonarqubepipeline-error.txt (99.9 KB)

I think this might be a known issue. I just ran across this in the community pages which seems to be the same issue.

1 Like