Error in SonarLint for IntelliJ IDEA 2023.3.3

Environment:

  • Java: JetBrains s.r.o. 17.0.9
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2023.3.3
  • SonarLint: 10.3.0.77475

Exception thrown by subscriber method configurationScopesAdded(org.sonarsource.sonarlint.core.event.ConfigurationScopesAddedEvent) on subscriber org.sonarsource.sonarlint.core.VersionSoonUnsupportedHelper@764ebd78 when dispatching event: org.sonarsource.sonarlint.core.event.ConfigurationScopesAddedEvent@7c431876

java.lang.IllegalStateException: Unable to get server status
	at o.ss.sl.core.serverapi.system.SystemApi.getStatusSync(SystemApi.java:55)
	at o.ss.sl.core.serverconnection.ServerInfoSynchronizer.synchronize(ServerInfoSynchronizer.java:40)
	at o.ss.sl.core.serverconnection.ServerInfoSynchronizer.lambda$readOrSynchronizeServerInfo$0(ServerInfoSynchronizer.java:34)
	at java.base/java.util.Optional.orElseGet(Optional.java:364)
	at o.ss.sl.core.serverconnection.ServerInfoSynchronizer.readOrSynchronizeServerInfo(ServerInfoSynchronizer.java:33)
	at o.ss.sl.core.serverconnection.ServerConnection.readOrSynchronizeServerVersion(ServerConnection.java:171)
	at o.ss.sl.core.VersionSoonUnsupportedHelper.checkIfSoonUnsupported(VersionSoonUnsupportedHelper.java:97)
	at o.ss.sl.core.VersionSoonUnsupportedHelper.lambda$checkIfSoonUnsupported$1(VersionSoonUnsupportedHelper.java:89)
	at java.base/java.util.HashMap.forEach(HashMap.java:1421)
	at o.ss.sl.core.VersionSoonUnsupportedHelper.checkIfSoonUnsupported(VersionSoonUnsupportedHelper.java:89)
	at o.ss.sl.core.VersionSoonUnsupportedHelper.configurationScopesAdded(VersionSoonUnsupportedHelper.java:68)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Hello @azenkwed,

Thanks for reaching out. It looks like your server was not accessible at that moment, or you were using invalid credentials. SonarLint shouldn’t fail so badly in this case and this is already fixed as part of a bigger rework, that should be released at the end of the month.

In the meantime, you can simply check your connection details, make sure they are correct, and check that SonarQube/SonarCloud is reachable from your machine