Latest Sonarqube plugin causes Java icon to appear in dock

Please provide

  • Operating system: MacOS 15.2
  • SonarQube for IDE plugin version: 10.14.0.80203
  • IntelliJ version: 2024.3.1.1 (Ultimate Edition)
  • Programming language you’re coding in: Kotlin
  • Is connected mode used:
    • Connected to SonarCloud

And a thorough description of the problem / question:

After upgrading the SonarQube for IDE plugin from 10.13.1.80133 to 10.14.0.80203, the SonarQube plugin spawns up a java process that creates a java applet icon in my mac dock bar (after the IDE finishes loading).

I’m guessing there’s a flag that got missed recently to not create the java icon when starting up the java process for the plugin.

Rolling back to 10.13.1.80133 gets rid of the dock icon.

2 Likes

Hey @Kyle, I apologize for the late reply! It’s definitely something we are unaware of, I suspect this might be specific to MacOS. Could you share a screenshot of what you see?

Can you gather more info about this new process? Since version 10.4 (almost a year ago), we have usually run SQ:IDE in a separate process from the IDE. Our process runs under the name SonarLintServerCli, but it should not be visible.

Shows up in the task switcher. If you switch to it, shows “SonarLintSeverCli”:

Thanks! I suspect this is due to a specificity on MacOS.

Could you try passing the system property -Dapple.awt.UIElement=true and see if you still reproduce the issue?

In any case, I created this bug ticket on our side.

1 Like

Sorry for my own late delay. Geoffrey included a screenshot that was identical to what I am experiencing.

I tried passing in the -Dapple.awt.UIElement=true to my Intellij IDE JVM settings (and restarting), but it doesn’t appear to have made a difference. (in my idea.vmoptions file)

I’ve rolled back the plugin again to make it go away for now.

Can confirm this is appearing here as well using macos X 15.2 and SonarQube for IDE 10.14.1.80220

If I close the java app, sonar says “SonarQube for IDE service encountered an issue and has stopped working”

I tried passing in the -Dapple.awt.UIElement=true to my Intellij IDE JVM settings (and restarting), but it doesn’t appear to have made a difference. (in my idea.vmoptions file)

We will investigate this issue in the coming weeks. In the meantime, could you also try with -Djava.awt.headless=true?

Adding -Djava.awt.headless=true to my idea.vmoptions actually causes my entire IDE to be headless when it starts up. So it might be solving the problem of hiding the Sonar java process, but it’s also hiding everything else.

Super, thank you for your feedback and for trying this workaround. We will proceed with further testing and will likely ship a fix in the next version. We will keep you updated.

1 Like

I can confirm the same behavior, java icon appears on dock when intellij is open with sonarcube plugin installed

versions:

  • macOS sequoia 15.2
  • intellij IDEA ultimate 2024.3.1.1
  • sonarcube intellij plugin 10.14.1.80220

PLEASE, my OCD is killing me looking at this java icon :sweat_smile:

We have just released a new version of SonarQube for IDE. Could you please try version 10.15 and see if you can reproduce the issue? Thank you!

1 Like

Resolved! Upgrading to 10.15 worked. Thank you so much!

2 Likes

Super, thank you for quickly letting us know that your issue is resolved. If you enjoy using SonarQube for IDE, feel free to leave a review on our plugin page!

Hi, the Java icon is still appearing for me with 10.15.

  • Operating system: MacOS 15.2
  • SonarQube for IDE plugin version: 10.15.0.80347
  • IntelliJ version: Android Studio Ladybug Feature Drop | 2024.2.2
  • Programming language you’re coding in: Kotlin
  • Is connected mode used:
    • Connected to SonarCloud

2 Likes

That’s odd. I have all of the same information except mine was running 2024.3.1.1.

Did you happen to restart your IDE after updating the plugin?

I still have the issue here.

  • Operating system: MacOS 15.2
  • SonarQube for IDE plugin version: 10.15.0.80347
  • IntelliJ version: Build #IU-243.23654.117, built on January 16, 2025 (2024.3.2)
  • Programming language you’re coding in: Kotlin
  • Is connected mode used: Connected to SonarCloud

Do you know if you kept a specific system property in the IDE settings that could explain the difference?

I just checked. Nothing special in my vmoptions.

The only things that might make my machine different are:

  • Using corretto-21 (java 21.0.5) as my project JVM
  • Kotlin with language level 22
  • Using the K2 Kotlin plugin (-Didea.kotlin.plugin.use.k2=true)

Everything else seems standard.

  • Operating system: MacOS 15.2
  • SonarQube for IDE plugin version: 10.15.0.80347
  • IntelliJ version: Build #IU-243.22562.218, built on December 18, 2024 (2024.3.1.1)
  • Programming language you’re coding in: Kotlin
  • Is connected mode used: Connected to SonarCloud

Oh. There is one thing that I just remembered. I’m starting my IDE through a command window to launch it under a different process thread because there is a different Intellij/Gradle bug that I’m working around.

yes, I did. restarted my computer too for good measure, it didn’t help.