ERROR: MismatchException module.. during sonar analysis

  • versions used
    SonarQube - 8.5.1
    Scanner - 4.5.0.2216

  • error observed

[sonar_debug.log|attachment](upload://2pMJjqI3ewlrI9CMdORfvE6OTaM.log) (2.6 MB)
 : 'Mismatch: expected ')' got: 'module -> getTiming ( ) ,   getTaskRuntimeCounter ( ) - time_before )   ( module -> getTiming ( ) ) . filter . add ( ( module -> getTiming ( ) ) . lastCycleTime ) ;   ( module -> getTiming ( ) ) . filteredCycleTime   =   ( module ->getTiming ( ) ) . filter . value ( ) ;' [tests://unittest(1,18)]' rest: '[PREPROCESSOR: module -> getTiming ( ) ,   getTaskRuntimeCounter ( ) - time_before )   ( module -> getTiming ( ) ) . filter . add ( ( module -> getTiming ( ) ) . lastCycleTime ) ;   ( module -> getTiming ( ) ) . filteredCycleTime   =   ( module -> getTiming ( ) ) . filter . value ( ) ;, EOF: EOF]'
  • steps to reproduce
  • potential workaround
    Have not found one yet

Additional details:
We are facing the above error for one of our projects.

Could you please help us resolve the issue?

PFA the debug logs.

Thanks in advance!

Regards,
Akilesh D S

Hi Akilesh.

Welcome to the SonarSource community.

Can you reproduce this error on the supported version of SonarQube (8.9)?

When you said “PFA the debug logs,” did you mean to attach the debug logs? I just saw a snippet of your scanner log.

Please see Troubleshooting about how to locate & use the SonarQube logs; they will be useful too.


Regards,
Monty