Error in SonarLint for IntelliJ 2023/3

Environment:

  • Java: JetBrains s.r.o. 17.0.9
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2023.3.2
  • SonarLint: 10.2.0.77238
java.lang.RuntimeException: Cannot invoke (class=BranchContextTracker, method=branchHasChanged, topic=VCS branch changed)
	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.proxy1/jdk.proxy1.$Proxy357.branchHasChanged(Unknown Source)
	at git4idea.branch.GitBranchOperation.lambda$notifyBranchHasChanged$3(GitBranchOperation.java:269)
	at c.ij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
	at c.ij.oa.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
	at c.ij.oa.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
	at c.ij.oa.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
	at c.ij.oa.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:843)
	at c.ij.oa.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:463)
	at c.ij.oa.application.impl.RwLockHolder.runWithEnabledImplicitRead(RwLockHolder.kt:75)
	at c.ij.oa.application.impl.RwLockHolder.runWithImplicitRead(RwLockHolder.kt:67)
	at c.ij.oa.application.impl.ApplicationImpl.runWithImplicitRead(ApplicationImpl.java:1436)

Hi @rabestro,

The stack trace appears to be truncated. If you still have the complete one, or if the error reappears, could you please share it with us?

Another user had a similar error; perhaps it could be the same root cause: