Error in SonarLint while opening a JSON file

Environment:

  • Java: JetBrains s.r.o. 17.0.9
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2023.3.2
  • SonarLint: 10.2.1.77304
java.lang.RuntimeException: Cannot invoke (class=, method=fileClosed, topic=FileEditorManagerListener)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:677)
	at c.ij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:423)
	at c.ij.util.messages.impl.MessageBusImplKt.pumpWaiting(MessageBusImpl.kt:402)
	at c.ij.util.messages.impl.MessageBusImplKt.access$pumpWaiting(MessageBusImpl.kt:1)
	at c.ij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:461)
	at jdk.proxy2/jdk.proxy2.$Proxy66.fileClosed(Unknown Source)
	at c.ij.oa.fileEditor.impl.EditorWindow.closeFile$lambda$8$lambda$7(EditorWindow.kt:594)
	at c.ij.oa.fileEditor.impl.FileEditorManagerImpl.notifyPublisher(FileEditorManagerImpl.kt:1275)
	at c.ij.oa.fileEditor.impl.EditorWindow.closeFile$intellij_platform_ide_impl(EditorWindow.kt:591)
	at c.ij.oa.fileEditor.impl.EditorWindow.closeFile$intellij_platform_ide_impl$default(EditorWindow.kt:559)
	at c.ij.oa.fileEditor.impl.FileEditorManagerImpl.closeFile$intellij_platform_ide_impl(FileEditorManagerImpl.kt:696)
	at c.ij.oa.fileEditor.impl.FileEditorManagerImpl.closeFile(FileEditorManagerImpl.kt:717)
	at c.ij.oa.fileEditor.impl.tabActions.CloseTab.actionPerformed(CloseTab.kt:101)
	at c.ij.oa.actionSystem.ex.ActionUtil.doPerformActionOrShowPopup(ActionUtil.java:344)
	at c.ij.oa.actionSystem.ex.ActionUtil.lambda$performActionDumbAwareWithCallbacks$4(ActionUtil.java:318)

Hello @jay_simonini,

We found the cause of this error, it’s not related to SonarLint. See this thread