microsoft / microsoft/azure-tools-for-java
[IntelliJ] Uncaught Exception java.lang.Throwable: psiElement is not instance of requiredClass.
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.4.1 IU-243.25659.59
OS: Mac OS X
JDK: JetBrains s.r.o. 21.0.6
Plugin version: 3.95.0-2024.3
Additional Info: None
Parent component:
com.intellij.openapi.wm.impl.IdeRootPane[,0,0,1470x852,invalid,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.Throwable: psiElement is not instance of requiredClass.
psiElement=PsiImportStatement, psiElement.class=class com.intellij.psi.impl.source.PsiImportStatementImpl, requiredClass=interface com.intellij.psi.PsiClass, operation=Looking for net.apmoller.crb.fcp.service.customer.allocation.od.testdata.TestDataSetUp in java.class.fqn, stubIdList=[34]@0.
at com.microsoft.azure.toolkit.intellij.storage.code.java.ConnectionStringStorageClientAnnotator.annotate(ConnectionStringStorageClientAnnotator.java:56)
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 in src/main/java/com/microsoft/azure/toolkit/intellij/storage/code/java/ConnectionStringStorageClientAnnotator.java at annotate, line 56, using the reported IntelliJ, plugin, and JDK versions as reproduction context. Determine how the PsiImportStatement reaches the lookup and confirm that the reported annotation path no longer produces an uncaught exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100