Error in SonarLint for IntelliJ when update to latest version

Environment:

  • Java: JetBrains s.r.o. 17.0.9
  • OS: Mac OS X x86_64
  • IDE: IntelliJ IDEA 2023.2.5
  • SonarLint: 10.1.0.77128

*** exception class was changed or removed

   Exception thrown by subscriber method configurationScopesAdded(o.ss.sl.core.event.ConfigurationScopesAddedEvent) on subscriber o.ss.sl.core.VersionSoonUnsupportedHelper@8122edd when dispatching event: o.ss.sl.core.event.ConfigurationScopesAddedEvent@1b254767
   
   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 @Laercio,

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