Sonarlint analysis not running on IntelliJ IDEA

Please provide

  • Operating system: MacOS Sonoma Version 14.3.1 (23D60)
  • SonarLint plugin version: 10.6.1.78652
  • IntelliJ IDEA CE version: IntelliJ IDEA 2024.1.2 (Community Edition)
  • Runtime version: 17.0.11+1-b1207.24 x86_64
  • Programming language you’re coding in: Java
  • Is connected mode used: Issue exists with and without connected mode
    • Connected to SonarCloud or SonarQube (and which version): SonarQube 9.1.0.47736

Sonarlint analysis is not running stating that the engine is not ready yet.
Log as printed: Analysis skipped as the engine is not ready yet
There are not other error messages in the log, attaching the verbose log output below

Starting the SonarLint service process...
Listing SonarLint service files:
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/spring-context-5.3.30.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonar-markdown-9.4.0.54424.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonarlint-telemetry-10.2.0.78029.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/commons-csv-1.10.0.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/xodus-openAPI-2.0.1.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/xodus-environment-2.0.1.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/kotlin-logging-1.7.9.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonarlint-plugin-commons-10.2.0.78029.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/slf4j-api-1.7.36.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/JavaEWAH-1.2.3.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/commons-compress-1.26.1.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/javax.annotation-api-1.3.2.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/j2objc-annotations-2.8.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/spring-core-5.3.30.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonar-classloader-1.0.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/picocli-4.7.3.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/spring-aop-5.3.30.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonarlint-backend-cli-10.2.0.78029.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/xodus-entity-store-2.0.1.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/checker-qual-3.33.0.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonarlint-plugin-api-10.2.0.78029.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/logback-core-1.2.13.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/commons-io-2.16.1.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonarlint-http-10.2.0.78029.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/org.eclipse.lsp4j.jsonrpc-0.22.0.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonarlint-rule-extractor-10.2.0.78029.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonarlint-server-connection-10.2.0.78029.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonarlint-rpc-protocol-10.2.0.78029.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/failureaccess-1.0.1.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/gson-2.10.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/xodus-vfs-2.0.1.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/annotations-13.0.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/xodus-compress-2.0.1.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/spring-jcl-5.3.30.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonar-channel-4.2.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonar-scanner-protocol-7.9.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/spring-beans-5.3.30.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonar-plugin-api-10.1.0.809.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/kotlin-stdlib-common-1.6.21.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/protobuf-java-3.25.1.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/httpclient5-5.2.1.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonarlint-commons-10.2.0.78029.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/jul-to-slf4j-1.7.36.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/xodus-utils-2.0.1.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/httpcore5-h2-5.2.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/commons-codec-1.15.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/error_prone_annotations-2.18.0.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/kotlin-stdlib-1.6.21.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonarlint-rpc-impl-10.2.0.78029.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sslcontext-kickstart-8.3.4.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/httpcore5-5.2.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonarlint-core-10.2.0.78029.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/commons-lang-2.6.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/logback-classic-1.2.13.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/commons-lang3-3.12.0.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/guava-32.1.1-jre.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/org.eclipse.jgit-6.9.0.202403050737-r.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonarlint-server-api-10.2.0.78029.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/jsr305-3.0.2.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/spring-expression-5.3.30.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/javax.inject-1.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/git-files-blame-1.0.2.275.jar
/Users/<user>/Library/Application Support/JetBrains/IdeaIC2024.1/plugins/sonarlint-intellij/sloop/lib/sonarlint-analysis-engine-10.2.0.78029.jar
 [2024-05-30T15:27:05.138998] [ApplicationImpl pooled thread 2] INFO org.sonarsource.sonarlint.core.rpc.client.SloopLauncher - Using JRE from /Applications/IntelliJ IDEA CE.app/Contents/jbr/Contents/Home
Migrating the storage...
Listening for SonarLint service exit...
Initializing the SonarLint service...
Found plugin: sonarlint-omnisharp-plugin-1.21.0.91683.jar
Found plugin: sonar-html-plugin-3.16.0.5274.jar
Found plugin: sonar-kotlin-plugin-2.20.0.4382.jar
Found plugin: sonar-ruby-plugin-1.15.0.4655.jar
Found plugin: sonar-text-plugin-2.10.0.2188.jar
Found plugin: sonar-go-plugin-1.15.0.4655.jar
Found plugin: sonar-iac-plugin-1.30.0.10357.jar
Found plugin: sonar-cfamily-plugin-6.55.0.70177.jar
Found plugin: sonar-php-plugin-3.35.0.11659.jar
Found plugin: sonar-java-plugin-7.34.0.35958.jar
Found plugin: sonar-xml-plugin-2.10.0.4108.jar
Found plugin: sonar-python-plugin-4.18.0.15334.jar
Found plugin: sonar-javascript-plugin-10.14.0.26080.jar
Found CFamily plugin: sonar-cfamily-plugin-6.55.0.70177.jar
Found CSharp plugin: sonarlint-omnisharp-plugin-1.21.0.91683.jar
Found HTML plugin: sonar-html-plugin-3.16.0.5274.jar
Found JavaScript/TypeScript plugin: sonar-javascript-plugin-10.14.0.26080.jar
Found Kotlin plugin: sonar-kotlin-plugin-2.20.0.4382.jar
Found Ruby plugin: sonar-ruby-plugin-1.15.0.4655.jar
Found XML plugin: sonar-xml-plugin-2.10.0.4108.jar
Found Secrets detection plugin: sonar-text-plugin-2.10.0.2188.jar
Found Go plugin: sonar-go-plugin-1.15.0.4655.jar
Found IaC plugin: sonar-iac-plugin-1.30.0.10357.jar
 [2024-05-30T15:27:06.124] [main] INFO org.sonarsource.sonarlint.core.rpc.impl.SonarLintRpcServerImpl - SonarLint backend started, instance=org.sonarsource.sonarlint.core.rpc.impl.SonarLintRpcServerImpl@45a37759
 [2024-05-30T15:27:08.761] [SonarLint Server RPC sequential executor] INFO sonarlint - Started embedded server on port 64120
 [2024-05-30T15:27:08.788] [SonarLint Server RPC sequential executor] DEBUG sonarlint - Restoring previous local-only issue database from /Users/<user>/Library/Caches/JetBrains/IdeaIC2024.1/sonarlint/storage/local_only_issue_backup.tar.gz
 [2024-05-30T15:27:08.837] [SonarLint Server RPC sequential executor] DEBUG sonarlint - Starting local-only issue database from /Users/<user>/.sonarlint/xodus-local-only-issue-store13044230886510205027
SonarLint service initialized...
 [2024-05-30T15:28:08.559] [SonarLint Telemetry] DEBUG org.sonarsource.sonarlint.core.nodejs.NodeJsHelper - Node.js path provided by configuration: /Users/<user>/.nvm/versions/node/v20.10.0/bin/node
 [2024-05-30T15:28:08.559] [SonarLint Telemetry] DEBUG org.sonarsource.sonarlint.core.nodejs.NodeJsHelper - Checking node version...
 [2024-05-30T15:28:08.563] [SonarLint Telemetry] DEBUG org.sonarsource.sonarlint.core.nodejs.NodeJsHelper - Execute command '/Users/<user>/.nvm/versions/node/v20.10.0/bin/node -v'...
 [2024-05-30T15:28:08.785] [SonarLint Telemetry] DEBUG org.sonarsource.sonarlint.core.nodejs.NodeJsHelper - Command '/Users/<user>/.nvm/versions/node/v20.10.0/bin/node -v' exited with 0
stdout: v20.10.0
 [2024-05-30T15:28:08.786] [SonarLint Telemetry] DEBUG org.sonarsource.sonarlint.core.nodejs.NodeJsHelper - Detected node version: 20.10.0
 [2024-05-30T15:28:08.786] [SonarLint Telemetry] DEBUG sonarlint - Node.js path set to: /Users/<user>/.nvm/versions/node/v20.10.0/bin/node (version 20.10.0)
Trigger: ALL
[ALL] 375177 file(s) submitted
Analysis skipped as the engine is not ready yet

Hey there

To help us investigate the issue more deeply, could you please make and attach the following thread dumps before the ‘Starting SonarLint service…’ task times out (which takes one minute):

  • one from Intellij
  • one for the backend of SonarLint service; That can be done by eg. running jps command from console to find id of the JVM process for SonarLintServerCli and then making a dump with jstack jstack <id>

Thank you very much for your cooperation on this.

Idea.txt (417.0 KB)
SonarLintServerCli.txt (50.3 KB)
PFA the requested thread dumps

Hi @hari-mani ,

Can you please confirm whether or not an analysis of a file happens shortly after the Analysis skipped as the engine is not ready yet message is logged? If it doesn’t, could you please provide log messages following the Analysis skipped as the engine is not ready yet message?

Also, a new version of SonarLint for IntelliJ, 10.6.2.78685, was released two weeks ago, and I would recommend updating it to get all the latest bugfixes.

Best,

Vojtech

I’ve updated the plugin to the latest version and still the issue persists. Also there are no logs printed after Analysis skipped as the engine is not ready yet. Also the analysis is not running after the said log is printed.

I downgraded to IntelliJ IDEA 2023.2.7 (Community Edition) and now Sonarlint analysis is working fine. The issue occurs only in IntelliJ IDEA 2024.1.2 (Community Edition).