Error in SonarLint for IntelliJ - not sure what caused it

Environment:

  • Java: JetBrains s.r.o. 11.0.15
  • OS: Mac OS X x86_64
  • IDE: IntelliJ IDEA 2022.1.2
  • SonarLint: 6.7.0.45926
java.lang.UnsupportedOperationException
	at java.base/java.util.ImmutableCollections.uoe(ImmutableCollections.java:72)
	at java.base/java.util.ImmutableCollections$AbstractImmutableList.set(ImmutableCollections.java:110)
	at o.sl.ij.notifications.ProjectServerNotificationsSubscriber$ConfigureNotificationsAction.actionPerformed$lambda-1(ProjectServerNotificationsSubscriber.kt:208)
	at c.ij.util.ui.EdtInvocationManager.invokeLaterIfNeeded(EdtInvocationManager.java:101)
	at c.ij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2125)
	at o.sl.ij.notifications.ProjectServerNotificationsSubscriber$ConfigureNotificationsAction.actionPerformed(ProjectServerNotificationsSubscriber.kt:201)
	at c.ij.notification.NotificationAction.actionPerformed(NotificationAction.java:33)
	at c.ij.oa.actionSystem.ex.ActionUtil.lambda$performActionDumbAwareWithCallbacks$4(ActionUtil.java:235)
	at c.ij.oa.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:256)
	at c.ij.oa.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:235)
	at c.ij.oa.fileEditor.impl.IdeUiServiceImpl.performActionDumbAwareWithCallbacks(IdeUiServiceImpl.java:100)
	at c.ij.notification.Notification.fire(Notification.java:261)
	at c.ij.notification.impl.NotificationsManagerImpl.lambda$createAction$11(NotificationsManagerImpl.java:830)
	at c.ij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:174)
	at c.ij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:388)

Automatically triggered by IDE;

Hey there.

This looks like another case of [SLI-702] UnsupportedOperationException when modifying the servers list - SonarSource. I’ll link this thread to that report so we can track it.

As a workaround, you can try restarting your IDE.