Error in SonarLint 7.2.0.56810 for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 17.0.4.1
  • OS: Mac OS X aarch64
  • IDE: AppCode 2022.2.4
  • SonarLint: 7.2.0.56810
java.lang.Throwable: Cannot cast object class com.jetbrains.cidr.xcode.model.PBXGroup to class com.jetbrains.cidr.xcode.model.PBXFileReference
cs.lprojfrom:
Localizable.strings
	at c.ij.oa.diagnostic.Logger.error(Logger.java:184)
	at com.jetbrains.cidr.xcode.Dictionary.checked(Dictionary.java:290)
	at com.jetbrains.cidr.xcode.Dictionary.checked(Dictionary.java:285)
	at com.jetbrains.cidr.xcode.model.PBXDictionary.resolveAttributeList(PBXDictionary.java:106)
	at com.jetbrains.cidr.xcode.model.PBXCompositeGroup.resolveFirstVariant(PBXCompositeGroup.java:38)
	at com.jetbrains.cidr.xcode.model.PBXCompositeGroup.resolveFirstVariantFile(PBXCompositeGroup.java:43)
	at com.jetbrains.cidr.projectView.XcodeProjectItemPresenter.getVirtualFile(XcodeProjectItemPresenter.java:24)
	at com.jetbrains.cidr.projectView.XcodeViewNode.getVirtualFile(XcodeViewNode.java:298)
	at c.ij.ide.projectView.impl.ProjectViewRenderer.appendInplaceComments(ProjectViewRenderer.kt:71)
	at c.ij.ide.projectView.impl.ProjectViewRenderer.customizeCellRenderer(ProjectViewRenderer.kt:40)
	at c.ij.ui.ColoredTreeCellRenderer.rendererComponentInner(ColoredTreeCellRenderer.java:125)
	at c.ij.ui.ColoredTreeCellRenderer.getTreeCellRendererComponent(ColoredTreeCellRenderer.java:57)
	at c.ij.ui.tree.ui.DefaultTreeUI.getRenderer(DefaultTreeUI.java:163)
	at c.ij.ui.tree.ui.DefaultTreeUI.paint(DefaultTreeUI.java:287)
	at java.desktop/javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
	at java.desktop/javax.swing.JComponent.paintComponent(JComponent.java:845)

Hello @Milan_Cap,

Thanks for raising this. I don’t see any mention of SonarLint, and the classes involved makes me think it’s a problem with AppCode. I suggest raising a bug on their ticket system (I can see other similar errors were raised in the past).

Thanks for using SonarLint :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.