microsoft / microsoft/azure-tools-for-java
[IntelliJ][ReportedByUser] Uncaught Exception com.intellij.diagnostic.PluginException: class com.intellij.testFramework.LightVirtualFile cannot be cast to class com.intellij.openapi.vfs.VirtualFileWithId (com.intellij.testFramework.LightVirtualFile and com.intellij.openapi.vfs.VirtualFileWithId are in unnamed module of loader com.intellij.util.lang.PathClassLoader @13b6d03) [Plugin: com.microsoft.tooling.msservices.intellij.azure]
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.1.2 IU-241.17011.79
OS: Windows 11
JDK: JetBrains s.r.o. 17.0.11
Plugin version: 3.88.1-2024.1
Additional Info: None
Parent component:
com.intellij.openapi.wm.impl.IdeRootPane[,8,0,2775x1979,invalid,layout=com.intellij.openapi.wm.impl.IdeRootPane$MyRootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=]
Error message:
IdeaLoggingEvent[message=null, throwable=com.intellij.diagnostic.PluginException: class com.intellij.testFramework.LightVirtualFile cannot be cast to class com.intellij.openapi.vfs.VirtualFileWithId (com.intellij.testFramework.LightVirtualFile and com.intellij.openapi.vfs.VirtualFileWithId are in unnamed module of loader com.intellij.util.lang.PathClassLoader @13b6d03) [Plugin: com.microsoft.tooling.msservices.intellij.azure]
at com.intellij.ui.EditorNotificationsImpl$updateEditors$job$1.invokeSuspend(EditorNotificationsImpl.kt:251)
Caused by: java.lang.ClassCastException: class com.intellij.testFra
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
Reproduce with IntelliJ IDEA 2024.1.2 on Windows 11 and plugin version 3.88.1-2024.1, then inspect the stack trace entry at EditorNotificationsImpl.kt:251 and the Azure plugin path that triggered it. Done means identifying the LightVirtualFile case and confirming the plugin no longer produces this uncaught ClassCastException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100