microsoft / microsoft/azure-tools-for-java

[IntelliJ][ReportedByUser] Uncaught Exception java.lang.AssertionError

Open
#8,081 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

need more info Reason: fixed State: Resolved Tool: IntelliJ Type: Bug
Dominant language
Java
Stars
262
Forks
185
Avg merge
2d 21h
Merged PRs (30d)
1

Description

IntelliJ build version: 2023.3.2 IC-233.13135.103
OS: Linux
JDK: JetBrains s.r.o. 17.0.9
Plugin version: 3.83.0-2023.3
Additional Info: None
Parent component:

javax.swing.JRootPane[,0,37,1080x900,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=]

Error message:

IdeaLoggingEvent[message=null, throwable=java.lang.AssertionError
	at com.microsoft.azure.toolkit.lib.cognitiveservices.AzureCognitiveServices.accounts(AzureCognitiveServices.java:44)
	at com.microsoft.azure.toolkit.lib.cognitiveservices.AzureCognitiveServices.isOpenAIEnabled_aroundBody0(AzureCognitiveServices.java:50)
	at com.microsoft.azure.toolkit.lib.cognitiveservices.AzureCognitiveServices$AjcClosure1.run(AzureCognitiveServices.java:1)
	at com.microsoft.azure.toolkit.lib.common.cache.CacheManager.lambda$readCache$0(CacheManager.java:129)
	at com.microsoft.azure.toolkit.lib.common.cache.CacheManager.readCache(CacheManager.java:126)
	at com.microsoft.azure.toolkit.lib.common.cache.CacheManager.ajc$inlineAccessMethod$com_microsoft_azure_toolkit_lib_common_cache_CacheManager$com_microsoft_azure_toolkit_lib_common_cache_CacheManager$readCache(CacheManager.java:1)
	at com.microsoft.azure.toolkit.lib.common.cache.CacheManager.aroundCacheable(CacheManager.java:77)
	at com.microsoft.azure.toolkit.lib.cognitiv

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the stack trace entries in AzureCognitiveServices.java, especially accounts() at line 44 and isOpenAIEnabled_aroundBody0(), then inspect the surrounding CacheManager calls. Reproduce the assertion with the reported IntelliJ, Linux, JDK, and plugin versions; done means the uncaught exception is resolved and the affected operation behaves normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, java
Domain
cloud, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.