Running SonarQube for IDE Analysis for Java files took a long time and didn't stop:(

Please provide

  • Operating system: Windows11 24H2
  • SonarQube for IntelliJ plugin version: 10.21.0.81149
  • IntelliJ version: 2025.1 Ultimate Edition
  • Programming language you’re coding in: Java
  • Is connected mode used: No
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?):

And a thorough description of the problem / question:

Analyzing the java file code took a long time and didn’t stop, it kept running

Hello @shilohooo,

Thanks for reporting here. We will need more input to be able to understand the issue. Could you try to turn on verbose logging and the next time it occurs share the logs with us.

Thanks

Hi @Damien_Urruty

I checked the link you shared but still couldn’t find a way to turn on verbose logging :joy:

After opening the IDE today, the problem seems to have gone away~

That’s weird.

SonarQubeAnalyzeTest

I had pasted the wrong link, my bad, I fixed it. Let us know if you face the problem again

1 Like

Thank you :ok_hand:

The problem has resufaced.

sonar-qube-for-ide-problem

I find the SonarQube for IDE logs here:

Analysis 491dc93d-6fb1-4025-bd85-7311ada79b45 canceled
Analysis 491dc93d-6fb1-4025-bd85-7311ada79b45 finished
Analysis canceled
Trigger: SELECTION_CHANGED
[SELECTION_CHANGED] 1 file(s) submitted
Configuring analysis with org.sonarlint.intellij.java.JavaAnalysisConfigurator
Analysing 'CloudCollectLogicSettingRel.java' (ID ccbf8059-5688-45cc-b6b6-cb2235841f7a)...
 [2025-04-25T14:25:36.708] [SonarLint Server RPC request executor] DEBUG sonarlint - Posting command in analysis queue: org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand@68a6c790, new size is 13
 [2025-04-25T14:25:36.708] [sonarlint-analysis-scheduler] DEBUG sonarlint - Not picking next command org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand@584a1021, is not ready
 [2025-04-25T14:25:36.708] [sonarlint-analysis-scheduler] DEBUG sonarlint - Not picking next command org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand@568df558, is not ready
 [2025-04-25T14:25:36.708] [sonarlint-analysis-scheduler] DEBUG sonarlint - Not picking next command org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand@52b27b51, is not ready
 [2025-04-25T14:25:36.708] [sonarlint-analysis-scheduler] DEBUG sonarlint - Not picking next command org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand@17b0ff63, is not ready
 [2025-04-25T14:25:36.708] [sonarlint-analysis-scheduler] DEBUG sonarlint - Not picking next command org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand@1ff32eac, is not ready
 [2025-04-25T14:25:36.708] [sonarlint-analysis-scheduler] DEBUG sonarlint - Not picking next command org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand@4773c47a, is not ready
 [2025-04-25T14:25:36.708] [sonarlint-analysis-scheduler] DEBUG sonarlint - Not picking next command org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand@49b432e4, is not ready
 [2025-04-25T14:25:36.708] [sonarlint-analysis-scheduler] DEBUG sonarlint - Not picking next command org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand@4d8baf0a, is not ready
 [2025-04-25T14:25:36.708] [sonarlint-analysis-scheduler] DEBUG sonarlint - Not picking next command org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand@88938df, is not ready
 [2025-04-25T14:25:36.708] [sonarlint-analysis-scheduler] DEBUG sonarlint - Not picking next command org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand@51006da0, is not ready
 [2025-04-25T14:25:36.708] [sonarlint-analysis-scheduler] DEBUG sonarlint - Not picking next command org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand@394b5676, is not ready
 [2025-04-25T14:25:36.708] [sonarlint-analysis-scheduler] DEBUG sonarlint - Not picking next command org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand@29285daa, is not ready
 [2025-04-25T14:25:36.708] [sonarlint-analysis-scheduler] DEBUG sonarlint - Not picking next command org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand@68a6c790, is not ready
Analysis ccbf8059-5688-45cc-b6b6-cb2235841f7a canceled
Analysis ccbf8059-5688-45cc-b6b6-cb2235841f7a finished
Analysis canceled

Last 3 log lines appear after manually shutting down the analysis.

Here is the code for the analysis:

package com.sys.common.enums.cloudcollect;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import com.sys.common.enums.BaseEnum;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 
 *
 * @author shiloh
 * @date 2025/4/22 16:59
 */
@Getter
@RequiredArgsConstructor
public enum CloudCollectLogicSettingRel implements BaseEnum {
    AND(1, "并且"),
    OR(2, "或者");

    @EnumValue
    @JsonValue
    private final Integer code;
    private final String desc;
}

Could you confirm this project is not connected to SonarQube Server or SonarQube Cloud?

I am having similar issues as described above with my python project with my project not connected to SonarQube server or cloud.

Ok.

Here is my SonarQube for IDE settings in IntelliJ IDEA.

Thank you for the information you shared. We are still investigating this issue and we take it seriously, it should not happen.

Could you also share whether you have multiple projects opened at the same time?

Lastly, it is happens again, it could be useful for us to take a thread dump of SonarQube for IDE and share it with us.

Thanks!

I do have multiple projects open at the same time.

I’ll provide a thread dump when the problem resurfaces.