Synchronizing projects / Matching Sonar project branch (still a problem)

The issue in Synchronizing projects / Matching Sonar project branch is happening still / again

Please provide

  • Operating system: ubuntu
  • SonarQube for IntelliJ plugin version: 10.19.0.80823
  • IntelliJ version: IntelliJ IDEA 2024.3.4.1 (Ultimate Edition)
  • Programming language you’re coding in: java / gradle project
  • Is connected mode used:
    • plugin config screen says checkbox on for: SonarQube (Cloud, Server).
    • server-side webpage says: * Community Edition v9.9.8 (build 100196)

And a thorough description of the problem / question:

Hi again!
I see that the linked issue Jira was resolved a while ago.

I just updated to the most recent sonarlint plugin v 10.19.0.80823

and I am still seeing this issue (might have never been fixed or a regression, not sure).

in case, in our big codebased with ~600 gradle modules and I guess 2000 gradle config scopes, again the sonarlint plugin is unusable. for 30 minutes it’s now iterating over all config scope and executing calls it seems against the sonar server for each of them - even although there is only 1 sonar project for the whole repo / all the gradle modules.

 [2025-03-18T10:12:28.891] [sonarlint-path-translation] DEBUG sonarlint - Computing paths translation for config scope 'REDACTED-saas.ui.webui.rest.registrar.slowUnitTest'...
 [2025-03-18T10:12:29.005] [SonarLint Local Storage Synchronizer] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=115ms
 [2025-03-18T10:12:29.006] [SonarLint Local Storage Synchronizer] DEBUG sonarlint - Downloaded server infos in 115ms
 [2025-03-18T10:12:29.006] [sonarlint-path-translation] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=114ms
 [2025-03-18T10:12:29.006] [sonarlint-path-translation] DEBUG sonarlint - Downloaded server infos in 115ms
 [2025-03-18T10:12:29.008] [SonarLint Local Storage Synchronizer] DEBUG sonarlint - Skipping synchronization of branch 'master' because it was synchronized recently
 [2025-03-18T10:12:29.121] [sonarlint-path-translation] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=114ms
 [2025-03-18T10:12:29.121] [sonarlint-path-translation] DEBUG sonarlint - Downloaded server infos in 114ms
 [2025-03-18T10:12:29.122] [SonarLint Local Storage Synchronizer] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=114ms
 [2025-03-18T10:12:29.122] [SonarLint Local Storage Synchronizer] DEBUG sonarlint - Downloaded server infos in 114ms
 [2025-03-18T10:12:29.124] [SonarLint Local Storage Synchronizer] DEBUG sonarlint - Skipping synchronization of branch 'master' because it was synchronized recently
 [2025-03-18T10:12:29.237] [sonarlint-path-translation] DEBUG sonarlint - GET 401 https://REDACTED/api/components/tree.protobuf?qualifiers=FIL,UTS&component=com.REDACTED.apm%3AREDACTED-saas&ps=500&p=1 | response time=115ms
 [2025-03-18T10:12:29.237] [sonarlint-path-translation] DEBUG sonarlint - Computing paths translation for config scope 'REDACTED-saas.managed.ui.webui.rest.cm.status.test'...
 [2025-03-18T10:12:29.242] [SonarLint Local Storage Synchronizer] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=117ms
 [2025-03-18T10:12:29.242] [SonarLint Local Storage Synchronizer] DEBUG sonarlint - Downloaded server infos in 117ms
 [2025-03-18T10:12:29.244] [SonarLint Local Storage Synchronizer] DEBUG sonarlint - Skipping synchronization of branch 'master' because it was synchronized recently
 [2025-03-18T10:12:29.352] [sonarlint-path-translation] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=115ms
 [2025-03-18T10:12:29.352] [sonarlint-path-translation] DEBUG sonarlint - Downloaded server infos in 115ms
 ...
 [2025-03-18T10:13:55.482] [sonarlint-path-translation] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=116ms
 [2025-03-18T10:13:55.482] [sonarlint-path-translation] DEBUG sonarlint - Downloaded server infos in 116ms
 [2025-03-18T10:13:55.597] [sonarlint-path-translation] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=114ms
 [2025-03-18T10:13:55.597] [sonarlint-path-translation] DEBUG sonarlint - Downloaded server infos in 114ms
 [2025-03-18T10:13:55.713] [sonarlint-path-translation] DEBUG sonarlint - GET 401 https://REDACTED/api/components/tree.protobuf?qualifiers=FIL,UTS&component=com.REDACTED.apm%3AREDACTED&ps=500&p=1 | response time=114ms
 [2025-03-18T10:13:55.713] [sonarlint-path-translation] DEBUG sonarlint - Computing paths translation for config scope 'REDACTED.shared.settings.accesscontrol.api.main'...
 [2025-03-18T10:13:55.828] [sonarlint-path-translation] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=115ms
 [2025-03-18T10:13:55.828] [sonarlint-path-translation] DEBUG sonarlint - Downloaded server infos in 115ms
 [2025-03-18T10:13:55.944] [sonarlint-path-translation] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=115ms
 [2025-03-18T10:13:55.944] [sonarlint-path-translation] DEBUG sonarlint - Downloaded server infos in 115ms
 [2025-03-18T10:13:56.068] [sonarlint-path-translation] DEBUG sonarlint - GET 401 https://REDACTED/api/components/tree.protobuf?qualifiers=FIL,UTS&component=com.REDACTED.apm%3AREDACTED&ps=500&p=1 | response time=124ms
 [2025-03-18T10:13:56.068] [sonarlint-path-translation] DEBUG sonarlint - Computing paths translation for config scope 'REDACTED.shared.datemath.test'...
 [2025-03-18T10:13:56.186] [sonarlint-path-translation] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=117ms
 [2025-03-18T10:13:56.186] [sonarlint-path-translation] DEBUG sonarlint - Downloaded server infos in 117ms
 [2025-03-18T10:13:56.304] [sonarlint-path-translation] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=117ms
 [2025-03-18T10:13:56.304] [sonarlint-path-translation] DEBUG sonarlint - Downloaded server infos in 117ms
 [2025-03-18T10:13:56.42] [sonarlint-path-translation] DEBUG sonarlint - GET 401 https://REDACTED/api/components/tree.protobuf?qualifiers=FIL,UTS&component=com.REDACTED.apm%3AREDACTED&ps=500&p=1 | response time=115ms
 [2025-03-18T10:13:56.42] [sonarlint-path-translation] DEBUG sonarlint - Computing paths translation for config scope 'api.rest.resource.platform.tenantmanagement.slowUnitTest'...
 [2025-03-18T10:13:56.535] [sonarlint-path-translation] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=115ms
 [2025-03-18T10:13:56.535] [sonarlint-path-translation] DEBUG sonarlint - Downloaded server infos in 115ms
 [2025-03-18T10:13:56.651] [sonarlint-path-translation] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=115ms
 [2025-03-18T10:13:56.651] [sonarlint-path-translation] DEBUG sonarlint - Downloaded server infos in 115ms
 [2025-03-18T10:13:56.767] [sonarlint-path-translation] DEBUG sonarlint - GET 401 https://REDACTED/api/components/tree.protobuf?qualifiers=FIL,UTS&component=com.REDACTED.apm%3AREDACTED&ps=500&p=1 | response time=115ms
 [2025-03-18T10:13:56.767] [sonarlint-path-translation] DEBUG sonarlint - Computing paths translation for config scope 'REDACTED.ui.components.webui.gwt.mrum.config'...
 [2025-03-18T10:13:56.883] [sonarlint-path-translation] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=115ms
 [2025-03-18T10:13:56.883] [sonarlint-path-translation] DEBUG sonarlint - Downloaded server infos in 115ms
 [2025-03-18T10:13:56.998] [sonarlint-path-translation] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=114ms
 [2025-03-18T10:13:56.998] [sonarlint-path-translation] DEBUG sonarlint - Downloaded server infos in 114ms
 [2025-03-18T10:13:57.114] [sonarlint-path-translation] DEBUG sonarlint - GET 401 https://REDACTED/api/components/tree.protobuf?qualifiers=FIL,UTS&component=com.REDACTED.apm%3AREDACTED&ps=500&p=1 | response time=115ms
 [2025-03-18T10:13:57.114] [sonarlint-path-translation] DEBUG sonarlint - Computing paths translation for config scope 'REDACTED.ui.webui.rest.sessionreplay.test'...
 [2025-03-18T10:13:57.231] [sonarlint-path-translation] DEBUG sonarlint - GET 200 https://REDACTED/api/system/status | response time=116ms

on top of this taking long: I am getting thousands of intellij notifications: “synchronizing project” etc.. (and “token wrong” 2000 times in other cases).

Hello @thomas-k-dev

Thanks for your report. Yes we had a problem with too many notifications about invalid token. It was improved recently and should be released early next week. Please get back if problem will persist after the update to a new version.

Best,

Thansk for the info.

Just want to highlight however, that the notifications is only one symptom, the deeper problem is as described in description-linked Jira

that it seems that the plugin tries to do REST requests onto the sonar server for each gradle project/task/configuration - which we have thousands of, so in the background it is also going through all those, which takes forever and uses some serious resources.

On top of that I’m suspecting that this causes also the sonar server’s rate limiting to kick in or similar. After a point the plugin only gets unauthorized errors although tokens are correct.

Would appreciate if you could from a product-side run some tests with big gradle projects with many modules and configurations and a bigger lines of code/sonar issues number to try to reproduce / or ensure that big projects work.

At the current point unfortunately I just had to turn the plugin off due to this, to not have my IntelliJ working on that for 20 minutes and using up resources..