Error in SonarLint for IntelliJ EAP

Environment:

  • Java: JetBrains s.r.o. 17.0.4.1
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2022.3 EAP
  • SonarLint: 7.1.1.54565
c.ij.diagnostic.PluginException: PSI element is provided on EDT by o.sl.ij.ui.tree.IssueTree.getData("psi.File"). Please move that to a BGT data provider using PlatformCoreDataKeys.BGT_DATA_PROVIDER [Plugin: org.sonarlint.idea]
	at c.ij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23)
	at c.ij.diagnostic.PluginException.createByClass(PluginException.java:83)
	at c.ij.ide.impl.DataValidators.reportPsiElementOnEdt(DataValidators.java:87)
	at c.ij.ide.impl.DataValidators.isDataValid(DataValidators.java:72)
	at c.ij.ide.impl.DataValidators.validOrNull(DataValidators.java:62)
	at c.ij.ide.impl.DataManagerImpl.getDataFromProviderInner(DataManagerImpl.java:244)
	at c.ij.ide.impl.DataManagerImpl.getDataFromProviderAndRulesInner(DataManagerImpl.java:81)
	at c.ij.ide.impl.DataManagerImpl.getDataFromProviderAndRules(DataManagerImpl.java:60)
	at c.ij.oa.actionSystem.impl.PreCachedDataContext.cacheProviderData(PreCachedDataContext.java:325)
	at c.ij.oa.actionSystem.impl.PreCachedDataContext.cacheComponentsData(PreCachedDataContext.java:301)
	at c.ij.oa.actionSystem.impl.PreCachedDataContext.<init>(PreCachedDataContext.java:98)
	at c.ij.oa.actionSystem.impl.Utils.newPreCachedDataContext(Utils.java:117)
	at c.ij.oa.actionSystem.impl.Utils.wrapToAsyncDataContext(Utils.java:98)
	at c.ij.oa.actionSystem.impl.Utils.wrapDataContext(Utils.java:122)
	at c.ij.ide.impl.StructureViewWrapperImpl.checkUpdate(StructureViewWrapperImpl.java:211)

Hello @Per_Abich1,

Thanks for raising this. It is caused by recent changes in the IntelliJ platform. We will make sure to fix that, I created this ticket, please note that only the EAP version is affected. We will look at this in the next few days/weeks.

Thanks for reporting!

A new version has just been released, could you please update and check that it fixes the problem ? Thanks!