Error in SonarQube for IntelliJ 10.14.1 - There is no ProgressIndicator or Job in this thread

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2024.3.1.1
  • SonarQube for IDE: 10.14.1.80220
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$lambda$0(coroutines.kt:142)
	at c.ij.oa.progress.ContextKt.prepareThreadContext(context.kt:85)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:140)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:123)
	at c.ij.execution.wsl.WslIjentUtil.runProcessBlocking(WslIjentUtil.kt:68)
	at c.ij.execution.wsl.WSLDistribution.lambda$patchCommandLine$2(WSLDistribution.java:245)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:463)
	at c.ij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:469)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:374)
	at c.ij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:85)
	at c.ij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:45)
	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:166)
	at git4idea.commands.GitLineHandler$1.<init>(GitLineHandler.java:143)
	at git4idea.commands.GitLineHandler.createProcess(GitLineHandler.java:143)
	at git4idea.commands.GitTextHandler.startProcess(GitTextHandler.java:77)
	at git4idea.commands.GitHandler.start(GitHandler.java:470)
	at git4idea.commands.GitHandler.runInCurrentThread(GitHandler.java:408)
	at git4idea.commands.GitImplBase.doRun(GitImplBase.java:199)
	at git4idea.commands.GitImplBase.run(GitImplBase.java:162)
	at git4idea.commands.GitImplBase.runCommand(GitImplBase.java:62)
	at git4idea.history.GitHistoryUtils.getMergeBase(GitHistoryUtils.java:291)
	at o.sl.ij.git.GitRepo.distance(GitRepo.kt:78)
	at o.sl.ij.git.GitRepo.electBestMatchingServerBranchForCurrentHead(GitRepo.kt:45)
	at o.sl.ij.SonarLintIntelliJClient.matchSonarProjectBranch(SonarLintIntelliJClient.kt:631)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$matchSonarProjectBranch$27(SonarLintRpcClientImpl.java:308)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$requestAsync$1(SonarLintRpcClientImpl.java:124)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Windows 11 amd64
  • IDE: PhpStorm 2024.3.1.1
  • SonarQube for IDE: 10.14.1.80220
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$lambda$0(coroutines.kt:142)
	at c.ij.oa.progress.ContextKt.prepareThreadContext(context.kt:85)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:140)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:123)
	at c.ij.execution.wsl.WslIjentUtil.runProcessBlocking(WslIjentUtil.kt:68)
	at c.ij.execution.wsl.WSLDistribution.lambda$patchCommandLine$2(WSLDistribution.java:245)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:463)
	at c.ij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:469)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:374)
	at c.ij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:85)
	at c.ij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:45)
	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:166)
	at git4idea.commands.GitLineHandler$1.<init>(GitLineHandler.java:143)
	at git4idea.commands.GitLineHandler.createProcess(GitLineHandler.java:143)
	at git4idea.commands.GitTextHandler.startProcess(GitTextHandler.java:77)
	at git4idea.commands.GitHandler.start(GitHandler.java:470)
	at git4idea.commands.GitHandler.runInCurrentThread(GitHandler.java:408)
	at git4idea.commands.GitImplBase.doRun(GitImplBase.java:199)
	at git4idea.commands.GitImplBase.run(GitImplBase.java:162)
	at git4idea.commands.GitImplBase.runCommand(GitImplBase.java:62)
	at o.sl.ij.git.GitRepo.getNumberOfCommitsBetween(GitRepo.kt:98)
	at o.sl.ij.git.GitRepo.distance(GitRepo.kt:84)
	at o.sl.ij.git.GitRepo.electBestMatchingServerBranchForCurrentHead(GitRepo.kt:45)
	at o.sl.ij.SonarLintIntelliJClient.matchSonarProjectBranch(SonarLintIntelliJClient.kt:631)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$matchSonarProjectBranch$27(SonarLintRpcClientImpl.java:308)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$requestAsync$1(SonarLintRpcClientImpl.java:124)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2024.3.1.1
  • SonarQube for IDE: 10.14.1.80220
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$lambda$0(coroutines.kt:142)
	at c.ij.oa.progress.ContextKt.prepareThreadContext(context.kt:85)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:140)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:123)
	at c.ij.execution.wsl.WslIjentUtil.runProcessBlocking(WslIjentUtil.kt:68)
	at c.ij.execution.wsl.WSLDistribution.lambda$patchCommandLine$2(WSLDistribution.java:245)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:463)
	at c.ij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:469)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:374)
	at c.ij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:85)
	at c.ij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:45)
	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:166)
	at git4idea.commands.GitLineHandler$1.<init>(GitLineHandler.java:143)
	at git4idea.commands.GitLineHandler.createProcess(GitLineHandler.java:143)
	at git4idea.commands.GitTextHandler.startProcess(GitTextHandler.java:77)
	at git4idea.commands.GitHandler.start(GitHandler.java:470)
	at git4idea.commands.GitHandler.runInCurrentThread(GitHandler.java:408)
	at git4idea.commands.GitImplBase.doRun(GitImplBase.java:199)
	at git4idea.commands.GitImplBase.run(GitImplBase.java:162)
	at git4idea.commands.GitImplBase.runCommand(GitImplBase.java:62)
	at git4idea.history.GitHistoryUtils.getMergeBase(GitHistoryUtils.java:291)
	at o.sl.ij.git.GitRepo.distance(GitRepo.kt:78)
	at o.sl.ij.git.GitRepo.electBestMatchingServerBranchForCurrentHead(GitRepo.kt:45)
	at o.sl.ij.SonarLintIntelliJClient.matchSonarProjectBranch(SonarLintIntelliJClient.kt:631)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$matchSonarProjectBranch$27(SonarLintRpcClientImpl.java:308)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$requestAsync$1(SonarLintRpcClientImpl.java:124)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Environment:

  • Java: JetBrains s.r.o. 21.0.4
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2024.2.3
  • SonarLint: 10.12.0.79769
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:141)
	at c.ij.oa.progress.CoroutinesKt$runBlockingCancellable$1.invoke(coroutines.kt:139)
	at c.ij.oa.progress.ContextKt.prepareThreadContext(context.kt:85)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:139)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:122)
	at c.ij.execution.wsl.WslIjentUtil.runProcessBlocking(WslIjentUtil.kt:64)
	at c.ij.execution.wsl.WSLDistribution.lambda$patchCommandLine$2(WSLDistribution.java:241)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:463)
	at c.ij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:469)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:374)
	at c.ij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:85)
	at c.ij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:45)
	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:166)
	at git4idea.commands.GitLineHandler$1.<init>(GitLineHandler.java:143)
	at git4idea.commands.GitLineHandler.createProcess(GitLineHandler.java:143)
	at git4idea.commands.GitTextHandler.startProcess(GitTextHandler.java:77)
	at git4idea.commands.GitHandler.start(GitHandler.java:470)
	at git4idea.commands.GitHandler.runInCurrentThread(GitHandler.java:408)
	at git4idea.commands.GitImplBase.doRun(GitImplBase.java:199)
	at git4idea.commands.GitImplBase.run(GitImplBase.java:162)
	at git4idea.commands.GitImplBase.runCommand(GitImplBase.java:62)
	at git4idea.history.GitHistoryUtils.getMergeBase(GitHistoryUtils.java:291)
	at o.sl.ij.git.GitRepo.distance(GitRepo.kt:78)
	at o.sl.ij.git.GitRepo.electBestMatchingServerBranchForCurrentHead(GitRepo.kt:45)
	at o.sl.ij.SonarLintIntelliJClient.matchSonarProjectBranch(SonarLintIntelliJClient.kt:629)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$matchSonarProjectBranch$27(SonarLintRpcClientImpl.java:308)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$requestAsync$1(SonarLintRpcClientImpl.java:124)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Hey there.

You’re running a version that’s a bit outdated. Can you update to v10.14.1 and see if the issue persists?

Hi, Colin.
I updated the plugin to the newest version available and restarted the IDE but I still got the same errors.

Environment:

  • Java: JetBrains s.r.o. 21.0.4
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2024.2.3
  • SonarQube for IDE: 10.14.1.80220
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:141)
	at c.ij.oa.progress.CoroutinesKt$runBlockingCancellable$1.invoke(coroutines.kt:139)
	at c.ij.oa.progress.ContextKt.prepareThreadContext(context.kt:85)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:139)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:122)
	at c.ij.execution.wsl.WslIjentUtil.runProcessBlocking(WslIjentUtil.kt:64)
	at c.ij.execution.wsl.WSLDistribution.lambda$patchCommandLine$2(WSLDistribution.java:241)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:463)
	at c.ij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:469)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:374)
	at c.ij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:85)
	at c.ij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:45)
	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:166)
	at git4idea.commands.GitLineHandler$1.<init>(GitLineHandler.java:143)
	at git4idea.commands.GitLineHandler.createProcess(GitLineHandler.java:143)
	at git4idea.commands.GitTextHandler.startProcess(GitTextHandler.java:77)
	at git4idea.commands.GitHandler.start(GitHandler.java:470)
	at git4idea.commands.GitHandler.runInCurrentThread(GitHandler.java:408)
	at git4idea.commands.GitImplBase.doRun(GitImplBase.java:199)
	at git4idea.commands.GitImplBase.run(GitImplBase.java:162)
	at git4idea.commands.GitImplBase.runCommand(GitImplBase.java:62)
	at git4idea.GitRevisionNumber.resolve(GitRevisionNumber.java:149)
	at git4idea.history.GitHistoryUtils.getMergeBase(GitHistoryUtils.java:295)
	at o.sl.ij.git.GitRepo.distance(GitRepo.kt:78)
	at o.sl.ij.git.GitRepo.electBestMatchingServerBranchForCurrentHead(GitRepo.kt:45)
	at o.sl.ij.SonarLintIntelliJClient.matchSonarProjectBranch(SonarLintIntelliJClient.kt:631)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$matchSonarProjectBranch$27(SonarLintRpcClientImpl.java:308)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$requestAsync$1(SonarLintRpcClientImpl.java:124)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2024.3.1.1
  • SonarQube for IDE: 10.14.1.80220
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$lambda$0(coroutines.kt:142)
	at c.ij.oa.progress.ContextKt.prepareThreadContext(context.kt:85)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:140)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:123)
	at c.ij.execution.wsl.WslIjentUtil.runProcessBlocking(WslIjentUtil.kt:68)
	at c.ij.execution.wsl.WSLDistribution.lambda$patchCommandLine$2(WSLDistribution.java:245)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:463)
	at c.ij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:469)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:374)
	at c.ij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:85)
	at c.ij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:45)
	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:166)
	at git4idea.commands.GitLineHandler$1.<init>(GitLineHandler.java:143)
	at git4idea.commands.GitLineHandler.createProcess(GitLineHandler.java:143)
	at git4idea.commands.GitTextHandler.startProcess(GitTextHandler.java:77)
	at git4idea.commands.GitHandler.start(GitHandler.java:470)
	at git4idea.commands.GitHandler.runInCurrentThread(GitHandler.java:408)
	at git4idea.commands.GitImplBase.doRun(GitImplBase.java:199)
	at git4idea.commands.GitImplBase.run(GitImplBase.java:162)
	at git4idea.commands.GitImplBase.runCommand(GitImplBase.java:62)
	at git4idea.history.GitHistoryUtils.getMergeBase(GitHistoryUtils.java:291)
	at o.sl.ij.git.GitRepo.distance(GitRepo.kt:78)
	at o.sl.ij.git.GitRepo.electBestMatchingServerBranchForCurrentHead(GitRepo.kt:45)
	at o.sl.ij.SonarLintIntelliJClient.matchSonarProjectBranch(SonarLintIntelliJClient.kt:631)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$matchSonarProjectBranch$27(SonarLintRpcClientImpl.java:308)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$requestAsync$1(SonarLintRpcClientImpl.java:124)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2024.3.1.1
  • SonarQube for IDE: 10.14.1.80220
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$lambda$0(coroutines.kt:142)
	at c.ij.oa.progress.ContextKt.prepareThreadContext(context.kt:85)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:140)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:123)
	at c.ij.execution.wsl.WslIjentUtil.runProcessBlocking(WslIjentUtil.kt:68)
	at c.ij.execution.wsl.WSLDistribution.lambda$patchCommandLine$2(WSLDistribution.java:245)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:463)
	at c.ij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:469)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:374)
	at c.ij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:85)
	at c.ij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:45)
	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:166)
	at git4idea.commands.GitLineHandler$1.<init>(GitLineHandler.java:143)
	at git4idea.commands.GitLineHandler.createProcess(GitLineHandler.java:143)
	at git4idea.commands.GitTextHandler.startProcess(GitTextHandler.java:77)
	at git4idea.commands.GitHandler.start(GitHandler.java:470)
	at git4idea.commands.GitHandler.runInCurrentThread(GitHandler.java:408)
	at git4idea.commands.GitImplBase.doRun(GitImplBase.java:199)
	at git4idea.commands.GitImplBase.run(GitImplBase.java:162)
	at git4idea.commands.GitImplBase.runCommand(GitImplBase.java:62)
	at o.sl.ij.git.GitRepo.getNumberOfCommitsBetween(GitRepo.kt:98)
	at o.sl.ij.git.GitRepo.distance(GitRepo.kt:85)
	at o.sl.ij.git.GitRepo.electBestMatchingServerBranchForCurrentHead(GitRepo.kt:45)
	at o.sl.ij.SonarLintIntelliJClient.matchSonarProjectBranch(SonarLintIntelliJClient.kt:631)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$matchSonarProjectBranch$27(SonarLintRpcClientImpl.java:308)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$requestAsync$1(SonarLintRpcClientImpl.java:124)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2024.3.1.1
  • SonarQube for IDE: 10.14.1.80220
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$lambda$0(coroutines.kt:142)
	at c.ij.oa.progress.ContextKt.prepareThreadContext(context.kt:85)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:140)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:123)
	at c.ij.execution.wsl.WslIjentUtil.runProcessBlocking(WslIjentUtil.kt:68)
	at c.ij.execution.wsl.WSLDistribution.lambda$patchCommandLine$2(WSLDistribution.java:245)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:463)
	at c.ij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:469)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:374)
	at c.ij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:85)
	at c.ij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:45)
	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:166)
	at git4idea.commands.GitLineHandler$1.<init>(GitLineHandler.java:143)
	at git4idea.commands.GitLineHandler.createProcess(GitLineHandler.java:143)
	at git4idea.commands.GitTextHandler.startProcess(GitTextHandler.java:77)
	at git4idea.commands.GitHandler.start(GitHandler.java:470)
	at git4idea.commands.GitHandler.runInCurrentThread(GitHandler.java:408)
	at git4idea.commands.GitImplBase.doRun(GitImplBase.java:199)
	at git4idea.commands.GitImplBase.run(GitImplBase.java:162)
	at git4idea.commands.GitImplBase.runCommand(GitImplBase.java:62)
	at o.sl.ij.git.GitRepo.getNumberOfCommitsBetween(GitRepo.kt:98)
	at o.sl.ij.git.GitRepo.distance(GitRepo.kt:85)
	at o.sl.ij.git.GitRepo.electBestMatchingServerBranchForCurrentHead(GitRepo.kt:45)
	at o.sl.ij.SonarLintIntelliJClient.matchSonarProjectBranch(SonarLintIntelliJClient.kt:631)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$matchSonarProjectBranch$27(SonarLintRpcClientImpl.java:308)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$requestAsync$1(SonarLintRpcClientImpl.java:124)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2024.3.1.1
  • SonarQube for IDE: 10.14.1.80220
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$lambda$0(coroutines.kt:142)
	at c.ij.oa.progress.ContextKt.prepareThreadContext(context.kt:85)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:140)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:123)
	at c.ij.execution.wsl.WslIjentUtil.runProcessBlocking(WslIjentUtil.kt:68)
	at c.ij.execution.wsl.WSLDistribution.lambda$patchCommandLine$2(WSLDistribution.java:245)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:463)
	at c.ij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:469)
	at c.ij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:374)
	at c.ij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:85)
	at c.ij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:45)
	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:166)
	at git4idea.commands.GitLineHandler$1.<init>(GitLineHandler.java:143)
	at git4idea.commands.GitLineHandler.createProcess(GitLineHandler.java:143)
	at git4idea.commands.GitTextHandler.startProcess(GitTextHandler.java:77)
	at git4idea.commands.GitHandler.start(GitHandler.java:470)
	at git4idea.commands.GitHandler.runInCurrentThread(GitHandler.java:408)
	at git4idea.commands.GitImplBase.doRun(GitImplBase.java:199)
	at git4idea.commands.GitImplBase.run(GitImplBase.java:162)
	at git4idea.commands.GitImplBase.runCommand(GitImplBase.java:62)
	at git4idea.GitRevisionNumber.resolve(GitRevisionNumber.java:149)
	at git4idea.history.GitHistoryUtils.getMergeBase(GitHistoryUtils.java:295)
	at o.sl.ij.git.GitRepo.distance(GitRepo.kt:78)
	at o.sl.ij.git.GitRepo.electBestMatchingServerBranchForCurrentHead(GitRepo.kt:45)
	at o.sl.ij.SonarLintIntelliJClient.matchSonarProjectBranch(SonarLintIntelliJClient.kt:631)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$matchSonarProjectBranch$27(SonarLintRpcClientImpl.java:308)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$requestAsync$1(SonarLintRpcClientImpl.java:124)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Environment:

  • Java: JetBrains s.r.o. 21.0.5
  • OS: Windows 10 amd64
  • IDE: PyCharm 2024.3.1.1
  • SonarQube for IDE: 10.14.1.80220
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$lambda$0(coroutines.kt:142)
	at c.ij.oa.progress.ContextKt.prepareThreadContext(context.kt:85)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:140)
	at c.ij.oa.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:123)
	at c.ij.execution.wsl.WslDistributionSafeNullableLazyValue.getValueOrElse(WslDistributionSafeNullableLazyValue.kt:100)
	at c.ij.execution.wsl.WslDistributionSafeNullableLazyValue.getValue(WslDistributionSafeNullableLazyValue.kt:42)
	at c.ij.execution.wsl.WSLDistribution.getValueWithLogging(WSLDistribution.java:827)
	at c.ij.execution.wsl.WSLDistribution.getShellPath(WSLDistribution.java:811)
	at c.ij.execution.wsl.WSLDistribution.doPatchCommandLine(WSLDistribution.java:353)
	at c.ij.execution.wsl.WSLDistribution.patchCommandLine(WSLDistribution.java:249)
	at git4idea.config.GitExecutable$Wsl.patchWslExecutable(GitExecutable.kt:156)
	at git4idea.config.GitExecutable$Wsl.patchCommandLine(GitExecutable.kt:137)
	at git4idea.commands.GitHandler.start(GitHandler.java:465)
	at git4idea.commands.GitHandler.runInCurrentThread(GitHandler.java:408)
	at git4idea.commands.GitImplBase.doRun(GitImplBase.java:199)
	at git4idea.commands.GitImplBase.run(GitImplBase.java:162)
	at git4idea.commands.GitImplBase.runCommand(GitImplBase.java:62)
	at git4idea.history.GitHistoryUtils.getMergeBase(GitHistoryUtils.java:291)
	at o.sl.ij.git.GitRepo.distance(GitRepo.kt:78)
	at o.sl.ij.git.GitRepo.electBestMatchingServerBranchForCurrentHead(GitRepo.kt:45)
	at o.sl.ij.SonarLintIntelliJClient.matchSonarProjectBranch(SonarLintIntelliJClient.kt:631)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$matchSonarProjectBranch$27(SonarLintRpcClientImpl.java:308)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$requestAsync$1(SonarLintRpcClientImpl.java:124)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Hey everyone.

I’ve merged a bunch of similar threads running the same version of SonarLint for IntelliJ. Someone will be here soon.

Hey again everyone!

Thanks for the reports. It has been confirmed to me that this is a harmless error not effecting analysis results that will go away in our next release. Thanks again for the reports.

We have just released version 10.15 of SonarQube for IDE with a fix for this noisy error. Please update, and if you still notice any issues, send us the logs. Thank you!

1 Like