ERROR Failed to analyze file on SonarQube 9.9.6

ERROR Failed to analyze file LegacySHIDeviceStateRegistry.swift 14:15:39 java.lang.RuntimeException: Exception during execution of merge for nonterminal ARRAY_LITERAL_ITEMS

We have an iOS app, which we build using Jenkins with in house MacOS build agents running sonar-scanner. We are using slather to convert coverage from xcode format and XCCompilationDB for generating compile_commands.json

Using the following versions
SonarQube Enterprise Edition v9.9.6 (build 92038)
sonar-scanner v6.1.0.4477 installed on MacOS build agents
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0

  • What are you trying to accomplish?
    Making sure all source code files are properly getting analysed

  • Why does this matter to you?
    If a particular source code file is not getting analysed, it is kind of beating the whole point of using SonarQube

  • How would that look in SonarQube? Alternatives?
    Ideally there should be no failure to analyse any particular line if there is nothing wrong with code or the file.

  • How would we know it works well?
    I could share the code in a private ticket and then it might be possible to reproduce the issue.

  • Why should it be a priority now?
    If a particular source code file is not getting analysed, it is kind of beating the whole point of using SonarQube

Hi,

Sorry for the delay in uptake here, this kinda got lost in the shuffle.

Is this still a problem? And if so, could you share the full analysis log, please?

 
Thx,
Ann

For visiting members: the conversation continued in this topic

1 Like