Comments (3)
Same for me:
4:30:08 PM ClassCastException: com.intellij.psi.impl.source.tree.java.PsiLiteralExpressionImpl cannot be cast to com.intellij.psi.PsiArrayInitializerMemberValue
Happens every time I open .story file or click on a step.
Stacktrace
com.intellij.psi.impl.source.tree.java.PsiLiteralExpressionImpl cannot be cast to com.intellij.psi.PsiArrayInitializerMemberValue
java.lang.ClassCastException: com.intellij.psi.impl.source.tree.java.PsiLiteralExpressionImpl cannot be cast to com.intellij.psi.PsiArrayInitializerMemberValue
at com.github.kumaraman21.intellijbehave.service.JBehaveUtil.getAliasesAnnotationTexts(JBehaveUtil.java:173)
at com.github.kumaraman21.intellijbehave.service.JBehaveUtil.getAnnotationTexts(JBehaveUtil.java:142)
at com.github.kumaraman21.intellijbehave.service.JavaStepDefinition.getAnnotationTexts(JavaStepDefinition.java:103)
at com.github.kumaraman21.intellijbehave.service.JavaStepDefinition.getStepMatchers(JavaStepDefinition.java:76)
at com.github.kumaraman21.intellijbehave.service.JavaStepDefinition.matches(JavaStepDefinition.java:36)
at com.github.kumaraman21.intellijbehave.service.JBehaveStepsIndex.findStepDefinitions(JBehaveStepsIndex.java:44)
at com.github.kumaraman21.intellijbehave.resolver.StepPsiReference.multiResolve(StepPsiReference.java:119)
at com.github.kumaraman21.intellijbehave.resolver.StepPsiReference.resolve(StepPsiReference.java:56)
at com.intellij.codeInsight.TargetElementUtilBase.getReferenceOrReferencedElement(TargetElementUtilBase.java:315)
at com.intellij.codeInsight.TargetElementUtil.getReferenceOrReferencedElement(TargetElementUtil.java:95)
at com.intellij.codeInsight.TargetElementUtilBase.findTargetElement(TargetElementUtilBase.java:200)
at com.intellij.codeInsight.TargetElementUtil.findTargetElement(TargetElementUtil.java:60)
at com.intellij.codeInsight.daemon.impl.IdentifierHighlighterPass.doCollectInformation(IdentifierHighlighterPass.java:88)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:62)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:438)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1146)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:429)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.registerIndicatorAndRun(ProgressManagerImpl.java:281)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:426)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:402)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask.exec(JobLauncherImpl.java:202)
at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:109)
from intellijbehave.
Is there any way to avoid this class cast exception? After I did fresh install of the PC it started to appear.
from intellijbehave.
I created a pull request for fixing this issue. Can someone test it?
#36
from intellijbehave.
Related Issues (20)
- Change file extension in settings. HOT 4
- JBehave Support Plugin 1.53 not supporting on IntelliJ HOT 2
- Plugin isnt working with latest version intelliJ 2019.2.2 HOT 1
- intellijbehave.settings.JBehaveSettings requested as a service, but it is a component HOT 2
- Create various code inspections
- Migrate project to Java 11 HOT 1
- Exception in plugin JBehave Support (1.53)
- Incompatible with 2021.1.3 HOT 2
- ClassNotFoundException: JBehaveTemplateLoaderComponent HOT 2
- Support IDEA 2021.2 HOT 14
- Error after updating the JBhave to version 1.54 in IntelliJ 2021.2 HOT 1
- java.lang.NoClassDefFoundError upon plugin initialization (v 1.54, IntelliJ 2021.1.3) HOT 2
- Exception in plugin JBehave Support (1.54) HOT 2
- Exception in Intellij 2021.3 HOT 2
- Cannot create configurable HOT 2
- Structure View does not support Lifecycle steps HOT 1
- Version incompatibility - Auto suggestion doesn't work on 2022.1.1. version HOT 3
- how to build plugin from sources and install it to Idea by jar HOT 1
- Support for composite steps
- Jbehave support plugin 1.6 version is causing that IntelliJ consumes 500%+ CPU time on my mac HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intellijbehave.