lppedd / idea-conventional-commit

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

plugin causes an exception when launching php storm #150

Open jakub-gawlik opened 2 days ago

jakub-gawlik commented 2 days ago

OS: Windows 11 PhpStorm 2024.3

Extension seems to be working as expected though.

Please let me know if you want me to provide any more details.

Screenshot

image

Complete log

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$lambda$0(coroutines.kt:142)
    at com.intellij.openapi.progress.ContextKt.prepareThreadContext(context.kt:85)
    at com.intellij.openapi.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:140)
    at com.intellij.openapi.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:123)
    at com.intellij.execution.wsl.WslIjentUtil.runProcessBlocking(WslIjentUtil.kt:68)
    at com.intellij.execution.wsl.WSLDistribution.lambda$patchCommandLine$2(WSLDistribution.java:245)
    at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:463)
    at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:469)
    at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:374)
    at com.intellij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:85)
    at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:45)
    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: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:171)
    at git4idea.commands.GitImplBase.runCommand(GitImplBase.java:62)
    at git4idea.config.GitConfigUtil.getValue(GitConfigUtil.java:88)
    at git4idea.config.GitConfigUtil.getValue(GitConfigUtil.java:75)
    at git4idea.GitUserRegistry.readCurrentUser(GitUserRegistry.java:71)
    at git4idea.GitUserRegistry.readUser(GitUserRegistry.java:62)
    at git4idea.GitUserRegistry.getOrReadUser(GitUserRegistry.java:52)
    at git4idea.log.GitLogProvider.getCurrentUser(GitLogProvider.java:553)
    at com.github.lppedd.cc.vcs.InternalVcsService$fetchCurrentUsers$1.invoke(InternalVcsService.kt:75)
    at com.github.lppedd.cc.vcs.InternalVcsService$fetchCurrentUsers$1.invoke(InternalVcsService.kt:75)
    at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:210)
    at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:170)
    at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
    at kotlin.sequences.SequencesKt___SequencesKt.toSet(_Sequences.kt:838)
    at com.github.lppedd.cc.vcs.InternalVcsService.fetchCurrentUsers(InternalVcsService.kt:77)
    at com.github.lppedd.cc.vcs.InternalVcsService.refreshCachedValues(InternalVcsService.kt:69)
    at com.github.lppedd.cc.vcs.InternalVcsService.refresh(InternalVcsService.kt:55)
    at com.github.lppedd.cc.vcs.VcsStartupActivity.runActivity$lambda$1$lambda$0(VcsStartupActivity.kt:21)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport$executeOnPooledThread$1.run(AnyThreadWriteThreadingSupport.kt:167)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
    at com.intellij.util.concurrency.ContextCallable.lambda$call$1(ContextCallable.java:74)
    at com.intellij.util.concurrency.ContextCallable.call(ContextCallable.java:83)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
    at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:101)
    at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:101)
    at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:107)
    at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:101)
    at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
    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.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
    at java.base/java.lang.Thread.run(Thread.java:1583)
lppedd commented 2 days ago

Thanks for the report!
Will be fixed in the next release, which I'll publish on the weekend.