Issue with AI Code Fix Feature Not Appearing in SonarQube 10.7

  • which versions are you using : SonarQube Enterprise 10.7
  • how is SonarQube deployed: zip
  • what are you trying to achieve : AI code fix feature
  • what have you tried so far to achieve this : Upgraded 10.6 to 10.7

Hi,

I upgraded to SonarQube 10.7, but the AI code fix feature is not visible in the issue details.
The feature is enabled, and there is an internet connection, yet it is still not appearing.
Are there any additional settings or configurations needed to enable the AI code fix feature in SonarQube 10.7?
Additionally, if there are specific areas I should check to ensure it is functioning correctly, I would appreciate your guidance on where to look.

Thank you.

Hey there.

I assume you’ve enabled the feature globally and you’re looking in the right place?

I followed the steps to enable the AI code fix feature, and I don’t see AICodeFix setting in the project settings. I confirm that I am looking in the right place.

Could you please assist me in identifying any additional settings or configurations needed to enable this feature in SonarQube 10.7?

Well, there is no project setting. Only the global setting.

So you’ve switched it on here?

To do this, go to Administration > Configuration > General Settings > AI CodeFix > and select Enable AI CodeFix.

No additional configuration should be needed. However, AI CodeFix is not available for all issues. I don’t know why we don’t document more rigorously what that means… but it is the vast majority of rules. So if it’s not showing up for one, I’d love to know the Rule ID.

Well, there is no project setting. Only the global setting.

→ That’s what I thought too.

And yes the Enable AI CodeFix is selected.

It’s not showing up for all issues. I upgraded from 10.6 to 10.7, but the UI on the issue page looks the same as 10.6, even though it shows version 10.7.

Hey @viva

Can you check your web.log file to see if there are any errors? Troubleshooting

Unfortunately, the errors don’t appear in the UI, only in the server logs.

If there’s an error communicating with the service, the fix suggestion tab doesn’t display.