Error in SonarLint for IntelliJ running scan

Environment:

  • Java: JetBrains s.r.o. 17.0.9
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2023.2.5
  • SonarLint: 10.0.1.77000
java.lang.IllegalArgumentException: node does not have a parent.
	at java.desktop/javax.swing.tree.DefaultTreeModel.removeNodeFromParent(DefaultTreeModel.java:275)
	at o.sl.ij.ui.tree.SecurityHotspotTreeModelBuilder.removeFile(SecurityHotspotTreeModelBuilder.java:176)
	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
	at o.sl.ij.ui.tree.SecurityHotspotTreeModelBuilder.updateModel(SecurityHotspotTreeModelBuilder.java:105)
	at o.sl.ij.ui.ReportPanel.updateFindings(ReportPanel.java:140)
	at o.sl.ij.actions.SonarLintToolWindow.lambda$openReportTab$0(SonarLintToolWindow.java:84)
	at o.sl.ij.actions.SonarLintToolWindow.updateTab(SonarLintToolWindow.java:140)
	at o.sl.ij.actions.SonarLintToolWindow.openTab(SonarLintToolWindow.java:126)
	at o.sl.ij.actions.SonarLintToolWindow.openReportTab(SonarLintToolWindow.java:84)
	at o.sl.ij.actions.ShowReportCallable.lambda$showReportTab$0(ShowReportCallable.java:48)
	at o.sl.ij.ui.UiUtils$Companion.runOnUiThread$lambda$0(UiUtils.kt:37)
	at c.ij.oa.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:208)
	at c.ij.oa.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
	at c.ij.oa.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:190)
	at c.ij.oa.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)
	at c.ij.oa.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:478)
	at c.ij.oa.application.impl.FlushQueue.doRun(FlushQueue.java:79)

Hi @dmarsh ,

Can you share with me the actions that led to this error?
It would be also helpful to have some insight into how many files were analyzed and what the approximate issue count was.
Were you using Connected Mode?
Were you using “Set Focus On New Code”?

Thank you