- Version: 10.3
- Edition: Developer
- Scanner: MSBuild on Azure DevOps Server 2022
- Deployment: Docker
If I analyze my project on NET7, it works fine with the new version (10.3), it even includes the razor files. If I upgrade my project to NET8 and rerun my pipeline (without using new language features), the step “SonarQubeAnalyze@5” fails with the following error message:
##[error]08:09:03.765 ERROR: Error during SonarScanner execution
08:09:03.765 ERROR: Error during SonarScanner execution
##[error]java.lang.IllegalArgumentException: Overlapping symbol declaration and reference for symbol at Range[from [line=10, lineOffset=0] to [line=10, lineOffset=14]]
java.lang.IllegalArgumentException: Overlapping symbol declaration and reference for symbol at Range[from [line=10, lineOffset=0] to [line=10, lineOffset=14]]
##[error]at org.sonar.api.utils.Preconditions.checkArgument(Preconditions.java:43)
at org.sonar.api.utils.Preconditions.checkArgument(Preconditions.java:43)
##[error]at org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable$DefaultSymbol.newReference(DefaultSymbolTable.java:110)
at org.sonarsource.dotnet.shared.plugins.protobuf.SymbolRefsImporter.addReferences(SymbolRefsImporter.java:84)
at org.sonarsource.dotnet.shared.plugins.protobuf.SymbolRefsImporter.save(SymbolRefsImporter.java:65)
at org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable$DefaultSymbol.newReference(DefaultSymbolTable.java:110)
at org.sonarsource.dotnet.shared.plugins.protobuf.SymbolRefsImporter.addReferences(SymbolRefsImporter.java:84)
at org.sonarsource.dotnet.shared.plugins.protobuf.SymbolRefsImporter.save(SymbolRefsImporter.java:65)
##[error]at org.sonarsource.dotnet.shared.plugins.ProtobufDataImporter.importResults(ProtobufDataImporter.java:88)
at org.sonarsource.dotnet.shared.plugins.ProtobufDataImporter.importResults(ProtobufDataImporter.java:88)
##[error]at org.sonarsource.dotnet.shared.plugins.DotNetSensor.importResults(DotNetSensor.java:104)
at org.sonarsource.dotnet.shared.plugins.DotNetSensor.execute(DotNetSensor.java:82)
at org.sonarsource.dotnet.shared.plugins.DotNetSensor.importResults(DotNetSensor.java:104)
at org.sonarsource.dotnet.shared.plugins.DotNetSensor.execute(DotNetSensor.java:82)
##[error]at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:64)
at org.sonar.scanner.sensor.ProjectSensorsExecutor.execute(ProjectSensorsExecutor.java:52)
at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:64)
at org.sonar.scanner.sensor.ProjectSensorsExecutor.execute(ProjectSensorsExecutor.java:52)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:201)
##[error]at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:180)
at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:180)
##[error]at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:71)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:65)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:71)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:65)
##[error]at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
##[error]at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
##[error]at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
##[error]at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy0.execute(Unknown Source)
##[error]at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
##[error]at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
##[error]at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
at org.sonarsource.scanner.cli.Main.main(Main.java:62)
at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
at org.sonarsource.scanner.cli.Main.main(Main.java:62)
##[error]08:09:03.765 ERROR:
08:09:03.765 ERROR:
##[error]The SonarScanner did not complete successfully
The SonarScanner did not complete successfully
##[error]08:09:04.335 Post-processing failed. Exit code: 1
08:09:04.335 Post-processing failed. Exit code: 1
##[error]The process 'C:\agent2\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.13.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
Finishing: SonarQubeAnalyze
There is no specific file pointed out and I haven’t done any special code changes.
Is this issue known and is there some workaround?
Thank you for your help