Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: WebStorm 2024.1
  • SonarLint: 10.5.0.78339
java.lang.IllegalStateException: There is no ProgressIndicator or Job in this thread, the current job is not cancellable.
	at c.ij.oa.progress.CoroutinesKt$runBlockingCancellable$1.invoke(coroutines.kt:128)
	at c.ij.oa.progress.CoroutinesKt$runBlockingCancellable$1.invoke(coroutines.kt:126)
	at c.ij.oa.progress.ContextKt.prepareThreadContext(context.kt:83)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:126)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:121)
	at c.ij.execution.wsl.WslIjentUtil.runProcessBlocking(WslIjentUtil.kt:62)
	at c.ij.execution.wsl.WSLDistribution.lambda$patchCommandLine$2(WSLDistribution.java:239)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:490)
	at c.ij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:463)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:356)
	at c.ij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:86)
	at c.ij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:46)
	at c.ij.execution.process.KillableProcessHandler.<init>(KillableProcessHandler.java:41)
	at c.ij.execution.process.KillableProcessHandler.<init>(KillableProcessHandler.java:55)
	at git4idea.commands.GitTextHandler$MyOSProcessHandler.<init>(GitTextHandler.java:146)
	at git4idea.commands.GitLineHandler$1.<init>(GitLineHandler.java:143)

Since IntelliJ 2024.1, it seems this issue is raised on background tasks with no ProgressIndicator or Job. This problem has been raised on the JetBrains side (YouTrack ticket and this community thread ), and we should expect a fix for IntelliJ 2024.2.

We created this ticket on our side to monitor the progress on this topic.