- edited description
Error analyzing LWC .js files due to class JSFunctionExpressionImpl cannot be cast to class JSReferenceExpression
Issue #2390
resolved
This was reported by a user and is due to the following:
2023-06-27 16:38:48,042 [ 141732] SEVERE - #c.i.o.a.i.ActionUpdater - class com.intellij.lang.javascript.psi.impl.JSFunctionExpressionImpl cannot be cast to class com.intellij.lang.javascript.psi.JSReferenceExpression (com.intellij.lang.javascript.psi.impl.JSFunctionExpressionImpl and com.intellij.lang.javascript.psi.JSReferenceExpression are in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @48e3cca5)
java.lang.ClassCastException: class com.intellij.lang.javascript.psi.impl.JSFunctionExpressionImpl cannot be cast to class com.intellij.lang.javascript.psi.JSReferenceExpression (com.intellij.lang.javascript.psi.impl.JSFunctionExpressionImpl and com.intellij.lang.javascript.psi.JSReferenceExpression are in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @48e3cca5)
at com.illuminatedcloud.intellij.lightning.AuraSpecificHandlersFactory$AuraTypeEvaluator.lambda$getComponentType$1(SourceFile:89)
at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:158)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:39)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:244)
at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:42)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:244)
at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:112)
at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:42)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:66)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:245)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:28)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:69)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:155)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:121)
at com.illuminatedcloud.intellij.lightning.AuraSpecificHandlersFactory$AuraTypeEvaluator.getComponentType(SourceFile:88)
at com.illuminatedcloud.intellij.lightning.AuraSpecificHandlersFactory$AuraTypeEvaluator.evaluateCallExpressionTypes(SourceFile:74)
Comments (3)
-
reporter -
reporter - attached IlluminatedCloud2.zip
Attached is a build with a prospective fix for this issue, though it is otherwise the current official build. You can install it by downloading the archive and, without extracting it, select it using Settings / Preferences > Plugins > Install plugin from disk (under the gear drop-down menu). Please let me know if it doesn't resolve the issue, and I'll plan to include it in the next official build.
-
reporter - changed status to resolved
Delivered in 2.2.7.4.
- Log in to comment