lppedd / idea-conventional-commit

Context and template-based completion for conventional/semantic commits.
https://plugins.jetbrains.com/plugin/13389-conventional-commit
MIT License
327 stars 19 forks source link

java.lang.IllegalStateException: There is no ProgressIndicator or Job in this thread, the current job is not cancellable. #141

Closed kpervin closed 1 week ago

kpervin commented 2 months ago

Environment:

java.lang.IllegalStateException: There is no ProgressIndicator or Job in this thread, the current job is not cancellable.
    at com.intellij.openapi.progress.CoroutinesKt$runBlockingCancellable$1.invoke(coroutines.kt:128)
    at com.intellij.openapi.progress.CoroutinesKt$runBlockingCancellable$1.invoke(coroutines.kt:126)
    at com.intellij.openapi.progress.ContextKt.prepareThreadContext(context.kt:83)
    at com.intellij.openapi.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:126)
    at com.intellij.openapi.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:121)
    at com.intellij.execution.wsl.WslIjentUtil.runProcessBlocking(WslIjentUtil.kt:62)
    at com.intellij.execution.wsl.WSLDistribution.lambda$patchCommandLine$2(WSLDistribution.java:239)
    at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:490)
    at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:463)
    at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:356)
    at com.intellij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:86)
    at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:46)
    at com.intellij.execution.process.KillableProcessHandler.<init>(KillableProcessHandler.java:41)
    at com.intellij.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)
    at git4idea.commands.GitLineHandler.createProcess(GitLineHandler.java:143)
    at git4idea.commands.GitTextHandler.startProcess(GitTextHandler.java:76)
    at git4idea.commands.GitHandler.start(GitHandler.java:469)
    at git4idea.commands.GitHandler.runInCurrentThread(GitHandler.java:407)
    at git4idea.commands.GitImplBase.doRun(GitImplBase.java:199)
    at git4idea.commands.GitImplBase.run(GitImplBase.java:162)
    at git4idea.commands.GitImplBase.runCommandWithoutCollectingOutput(GitImplBase.java:91)
    at git4idea.history.GitLogUtil.readTimedCommits(GitLogUtil.java:126)
    at git4idea.history.GitLogUtil.readTimedCommits(GitLogUtil.java:72)
    at git4idea.log.GitLogProvider.getCommitsMatchingFilter(GitLogProvider.java:490)
    at git4idea.log.GitLogProvider.getCommitsMatchingFilter(GitLogProvider.java:400)
    at com.github.lppedd.cc.vcs.InternalVcsService.fetchCommitsFromLogProvider(InternalVcsService.kt:110)
    at com.github.lppedd.cc.vcs.InternalVcsService.access$fetchCommitsFromLogProvider(InternalVcsService.kt:22)
    at com.github.lppedd.cc.vcs.InternalVcsService$fetchCommits$1.invoke(InternalVcsService.kt:82)
    at com.github.lppedd.cc.vcs.InternalVcsService$fetchCommits$1.invoke(InternalVcsService.kt:82)
    at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:210)
    at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:811)
    at com.github.lppedd.cc.vcs.InternalVcsService.fetchCommits(InternalVcsService.kt:83)
    at com.github.lppedd.cc.vcs.InternalVcsService.refreshCachedValues(InternalVcsService.kt:71)
    at com.github.lppedd.cc.vcs.InternalVcsService.access$refreshCachedValues(InternalVcsService.kt:22)
    at com.github.lppedd.cc.vcs.InternalVcsService$MyVcsLogRefresher.refresh(InternalVcsService.kt:157)
    at git4idea.log.GitLogProvider.lambda$subscribeToRootRefreshEvents$10(GitLogProvider.java:388)
    at com.intellij.platform.backend.observation.TrackingUtil$trackActivity$2.invoke(util.kt:44)
    at com.intellij.platform.backend.observation.TrackingUtil$trackActivity$2.invoke(util.kt:44)
    at com.intellij.platform.backend.observation.PlatformActivityTrackerService.trackConfigurationActivityBlocking(PlatformActivityTrackerService.kt:72)
    at com.intellij.platform.backend.observation.TrackingUtil.trackActivity(util.kt:44)
    at git4idea.log.GitLogProvider.lambda$subscribeToRootRefreshEvents$11(GitLogProvider.java:385)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:700)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:660)
    at com.intellij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:423)
    at com.intellij.util.messages.impl.MessageBusImplKt.pumpWaiting(MessageBusImpl.kt:402)
    at com.intellij.util.messages.impl.MessageBusImplKt.access$pumpWaiting(MessageBusImpl.kt:1)
    at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:461)
    at jdk.proxy12/jdk.proxy12.$Proxy224.repositoryChanged(Unknown Source)
    at git4idea.repo.GitRepositoryManager.lambda$notifyListenersAsync$2(GitRepositoryManager.java:84)
    at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
    at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:244)
    at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:30)
    at com.intellij.util.concurrency.BoundedTaskExecutor$1.executeFirstTaskAndHelpQueue(BoundedTaskExecutor.java:222)
    at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:218)
    at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:210)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
    at java.base/java.lang.Thread.run(Thread.java:840)
lppedd commented 2 months ago

Ha! Another remote development issue? 😭

lppedd commented 2 months ago

Identical to https://community.sonarsource.com/t/error-in-sonarlint-for-intellij-10-4-2-illegalstateexception-there-is-no-progressindicator-or-job/112753

kpervin commented 2 months ago

Hmm, I wonder if this is a blanket issue with IDEA 2024.1 and WSL?

lppedd commented 2 months ago

I've found other references to that exception, and they're all related to

  1. Platform coroutine management
  2. WSL

https://youtrack.jetbrains.com/issue/IJPL-73522 I feel like this is an IDEA problem, yeah.

vladimirlagunov commented 2 months ago

Hi, it's certainly a problem of the platform. I created an issue. https://youtrack.jetbrains.com/issue/IJPL-148354/WSL-GitLogUtil-There-is-no-ProgressIndicator-or-Job-in-this-thread-the-current-job-is-not-cancellable.

lppedd commented 2 months ago

Thank you!

lppedd commented 1 week ago

Closing as we understood we can't solve it on our side.