Salesforce Apex Parsing Error

Must-share information (formatted with Markdown):

  • Sonarqube Version 7.9
  • Salesforce Apex Coverage Showing 0

Hello Team , We are facing below error is there any alternate fix than upgrading the sonarqube version .

ERROR: Cannot parse ‘force-app/main/default/classes/’: ParseException: Syntax(error = UnexpectedToken(loc = (10, 1, 2, 8), token = ‘public’))

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

xxx → 7.9.6 → 8.9.7 → 9.3 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

1 Like