Error in SonarLint for IntelliJ 2023.3 next

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@4c4ab4fd when dispatching event: org.sonarsource.sonarlint.core.event.ConfigurationScopesAddedEvent@29ed4601

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)

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@534aa181 when dispatching event: org.sonarsource.sonarlint.core.event.ConfigurationScopesAddedEvent@ce25f50

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 @mario002e,

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

A post was split to a new topic: Unable to get server status