Issue resolution on Sonar qube server is not updated on IDE at runtime?

If your question is about SonarQube for IDE in the IntelliJ Platform, VS Code, Visual Studio, or Eclipse, please post it in that sub-category.

Otherwise, please provide:

  • Operating system:Windows
  • IDE name and version : Eclipse 4.3
  • Programming language you’re coding in: COBOL
  • Is connected mode used:
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?): SonarQube Server, Data Center Edition, Version 9.9.4 (build 87374)

And a thorough description of the problem / question:

I updated a resolution for an issue as ‘Won’t fix’ on Sonar Qube server . Then on same file I did some code changes on IDE and same issue was reported on IDE , it did not update the fix from server to IDE.

Then I deleted my repository from IDE and cloned again and then I could see the fix updated on IDE analysis too .

Can you please help me is there a refresh option through which SonarLint should pick details at runtime from Sonar Qube server or everytime we have to set up the repo again to get updates from server ?

Regards

Roopali

Hey @Roopali,

You mention Eclipse 4.3 (very old, if there is no typo), which version for SonarQube for IDE do you use inside Eclipse?

If this is not an old version, then a refresh (synchronization of server issues towards the IDE) should happen every hour, if I’m not mistaken. There is no action that can be triggered by the user the re-sync the issues and when an analysis is triggered (e.g., by re-opening / saving the file) there is no automatic check with the issues on the server.

Cheers :beverage_box:

Hello ,

Yes sorry for typo , we have Eclipse version 4.31 , below are details of current versions which we have installed :

SonarQube for IDE/Eclipse (org.sonarlint.eclipse.site-11.14.0.83019.zip) in our IBM Explorer for z/OS v 17.0.2, on Eclipse 4.31.

Can you please confirm that in this version synchronization of issue resolution from server to IDE would not happen automatically ?

Hi @Roopali :waving_hand:

Thanks a lot for the report! Whenever an issue status changes, server send an event to the connected IDE instance to notify it about the changes.

Otherwise, an explicit synchronisation happens at IDE startup & every hour like @EclipseWizard mentioned.

Based on what you experienced, it sounds like the events about issue status change did not reach the IDE. If you are able to reproduce the issue again, verbose logs would be greatly appreciated! :person_bowing:

All the best,
Sophio

Thanks it updates after an Hour of synching , thanks for confirmation

1 Like

Thank you for the confirmation, I’m happy that the issue got resolved on your end!

Do not hesitate to come back to us if this happens again.