microsoft / microsoft/azure-tools-for-java
[IntelliJ] Uncaught Exception java.lang.IllegalStateException: There is no `Job` in this thread, spawned coroutines are not cancellable.
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 262
- Forks
- 185
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 1
Description
IntelliJ build version: 2024.3.1 IU-243.22562.145
OS: Linux
JDK: JetBrains s.r.o. 21.0.5
Plugin version: 3.93.0-2024.3
Additional Info: None
Parent component:
com.intellij.openapi.wm.impl.IdeRootPane[,0,0,3840x2116,layout=com.intellij.openapi.wm.impl.IdeRootPane$CustomHeaderRootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=]
Error message:
IdeaLoggingEvent[message=null, throwable=java.lang.IllegalStateException: There is no `Job` in this thread, spawned coroutines are not cancellable.
If the transition from coroutines to blocking code happens in the same stack frame as the call to this function, the transition should use `blockingContext`.
at com.microsoft.azure.toolkit.intellij.cloudshell.actions.StartCloudShellAction.provisionForSubscription(StartCloudShellAction.kt:54)
at com.microsoft.azure.toolkit.intellij.cloudshell.actions.StartCloudShellAction.access$provisionForSubscription(StartCloudShellAction.kt:24)
at com.microsoft.azure.toolkit.intellij.cloudshell.actions.StartCloudShellAction$actionPerformed$step$1.onChosen$lambda$0(StartCloudShellAction.kt:42)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with StartCloudShellAction.kt, especially provisionForSubscription at line 54 and the actionPerformed flow around line 42. Reproduce the IntelliJ Cloud Shell action on the listed environment and verify that the uncaught IllegalStateException no longer occurs and spawned coroutines remain cancellable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100