Error in SonarLint for IntelliJ IDEA 2023.3 IllegalStateException

Environment:

  • Java: JetBrains s.r.o. 17.0.9
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2023.3
  • SonarLint: 10.1.1.77150

Exception thrown by subscriber method configurationScopesAdded(org.sonarsource.sonarlint.core.event.ConfigurationScopesAddedEvent) on subscriber org.sonarsource.sonarlint.core.VersionSoonUnsupportedHelper@6eb32c40 when dispatching event: org.sonarsource.sonarlint.core.event.ConfigurationScopesAddedEvent@1370d07b

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:169)
	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 @sigfrido_prez ,

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 beginning of next year.

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

tks, i will check that.