microsoft / microsoft/azure-tools-for-java
[IntelliJ][ReportedByUser] Uncaught Exception com.microsoft.azure.toolkit.lib.common.operation.OperationException: generate environment variables for resource (...)
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 262
- Forks
- 185
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 1
Description
IntelliJ build version: 2023.1.2 IC-231.9011.34
OS: Mac OS X
JDK: JetBrains s.r.o. 17.0.6
Plugin version: 3.78.0-2023.1-BETA.20230629025803
Additional Info: None
Parent component:
com.intellij.openapi.wm.impl.IdeRootPane[,0,0,2560x1415,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=com.intellij.ui.ToolbarUtil$3@f8755dd,flags=449,maximumSize=,minimumSize=,preferredSize=]
Error message:
IdeaLoggingEvent[message=null, throwable=com.microsoft.azure.toolkit.lib.common.operation.OperationException: generate environment variables for resource ()
at com.microsoft.azure.toolkit.lib.common.operation.AzureOperationAspect.afterThrowing(AzureOperationAspect.java:94)
at com.microsoft.azure.toolkit.lib.common.operation.AzureOperationAspect.afterThrowing(AzureOperationAspect.java:49)
at com.microsoft.azure.toolkit.intellij.connector.dotazure.Profile.generateEnvLines(Profile.java:138)
at com.microsoft.azure.toolkit.intellij.connector.dotazure.Profile.lambda$addConnectionToDotEnv$4(Profile.java:176)
Caused by: com.microsoft.azure.toolkit.lib.common.exception.AzureToolkitRuntimeException: storageAccounts '' does not exist.
at com.microsoft.azure.toolkit.intellij.connector.AzureServiceResource.initEnv(AzureServiceRes
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 by reviewing the stack trace in Profile.java, especially generateEnvLines and addConnectionToDotEnv, then follow AzureServiceResource.initEnv where the empty storageAccounts value is rejected. Reproduce with the reported IntelliJ, macOS, JDK, and plugin versions if possible; done means the failure is understood and the uncaught exception is appropriately handled or prevented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100