After a fresh setup of SonarLint in IntelliJ (on RHEL8 VM), we fail to establish the connection from SonarLint to SonarQube. After entering the SonarQube URL and the access token in the SonarLint plugin configuration wizard and clicking on “Next”, a pop-up appears with the title “Test Connection to SonarQube”. It just hangs… doesn’t even seem to timeout with an error.
I couldn’t find any related errors in the idea.log, nor on the server-side logs.
The entered server URL is accessible from the shell (curl) and in the browser.
Hello, welcome to the community! And thanks for your feedback.
As per the FAQ post, could you please enable “Verbose output” in the “Log” tab of the SonarLint tool window, and try again? This could give us some insights about what is happening.
Do you have any proxy settings that curl would use but not IntelliJ? Which version of IntelliJ are you using, on which JRE (see in “Help” > “About”)?
We have observed this issue in IntelliJ IDEA 2021.2.3 and 2021.3. While a colleague consistently observed this problem, it’s just occasionally happening to me. I just now managed to reproduce it again:
navigate to the sonarlint connection configuration
enter a wrong URL (this will cause a 404 popup or some about api/system/status not found)
enter the right URL again → endless “Test Connection to SonarQube”
after 10 minutes click Cancel and try again by clicking on Next → same endless “Test Connection”
exit all the menus, go back to sonarlint configuration → same endless “Test Connection”
create a new connection with the same URL/token → same endless “Test Connection”
restart IntelliJ and I cannot reproduce the issue anymore… maybe tomorrow it will happen again
Before all this testing I enabled Verbose logging as described in the FAQ, but nothing at all got logged to the idea.log. All I could see during testing was a few of these:
2021-12-06 14:31:32,468 [1515200] INFO - il.indexing.FileBasedIndexImpl - Health check heartbeat
I am facing the exact same issue on Centos 8.
Did you find a way to get around the issue?
IntelliJ IDEA 2021.3.1 (Community Edition)
Build #IC-213.6461.79, built on December 28, 2021
Runtime version: 11.0.13+7-b1751.21 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 4.18.0-348.7.1.el8_5.x86_64
GC: G1 Young Generation, G1 Old Generation
Memory: 1448M
Cores: 1
Non-Bundled Plugins:
org.sonarlint.idea (6.3.1.40498)
MavenRunHelper (4.20.213.3714.1)
Kotlin: 213-1.5.10-release-949-IJ6461.79
Current Desktop: GNOME
This is where we usually log detailed info (when verbose logging is enabled). E.g, if there is any exception thrown during the connected mode setup, the stack trace would be visible in this Log tab.