Error in SonarLint for IntelliJ - opening multiple projects in cascade

I think this happened when opening the linked project in pycharm from our SonarQube instance. Clicking the project on the pop-up listing the projects did not work so I selected it manually to open it. Pycharm ended up with 9 opened instances of that project…

Environment:

  • Java: JetBrains s.r.o. 17.0.5
  • OS: Mac OS X aarch64
  • IDE: PyCharm 2022.3.1
  • SonarLint: 7.4.0.60471
java.lang.IncompatibleClassChangeError: Method 'c.ij.ide.RecentProjectsManager c.ij.ide.RecentProjectsManager.getInstance()' must be InterfaceMethodref constant
	at o.sl.ij.ui.SonarLintRecentProjectPanel.performSelectedAction(RecentProjectsPanel.kt:88)
	at o.sl.ij.ui.SonarLintRecentProjectPanel.access$performSelectedAction(RecentProjectsPanel.kt:78)
	at o.sl.ij.ui.SonarLintRecentProjectPanel$2.onClick(RecentProjectsPanel.kt:211)
	at c.ij.ui.ClickListener$1.mouseReleased(ClickListener.java:59)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:298)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6648)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3392)
	at java.desktop/java.awt.Component.processEvent(Component.java:6413)
	at java.desktop/java.awt.Container.processEvent(Container.java:2266)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5022)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4854)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)

Hi @thomas.richard

We have noticed the same issue on our side, this is caused by a change in IntelliJ Platform 2022.3.
A ticket had been created and the fix will be part of the next release:
https://sonarsource.atlassian.net/browse/SLI-869

Thanks for reporting the issue anyway!