Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kpervin opened this issue Apr 15, 2024 · 7 comments
Labels

Comments

@kpervin
Copy link

kpervin commented Apr 15, 2024

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: WebStorm 2024.1
  • Conventional Commit: 0.23.0
  • uname -r: 5.15.146.1-microsoft-standard-WSL2
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
Copy link
Owner

lppedd commented Apr 15, 2024

Ha! Another remote development issue? 😭

@kpervin
Copy link
Author

kpervin commented Apr 15, 2024

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

@lppedd
Copy link
Owner

lppedd commented Apr 15, 2024

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
Copy link

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
Copy link
Owner

lppedd commented Apr 17, 2024

Thank you!

@lppedd
Copy link
Owner

lppedd commented Jun 23, 2024

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

@lppedd lppedd closed this as completed Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants