I'm not entirely sure what I did to create this, but it occurred as I was removing some code and moving around a .kt file that extended from org.jetbrains.spek.api.Spek within a test directory.
Stack trace:
org.jetbrains.spek.idea.SpekJvmConfigurationFactory@3f2aaa02 produced wrong type: org.jetbrains.kotlin.psi.KtBinaryExpression cannot be cast to org.jetbrains.kotlin.psi.KtStringTemplateExpression
java.lang.ClassCastException: org.jetbrains.kotlin.psi.KtBinaryExpression cannot be cast to org.jetbrains.kotlin.psi.KtStringTemplateExpression
at org.jetbrains.spek.idea.SpekJvmUtils.extractPath(SpekJvmUtils.kt:124)
at org.jetbrains.spek.idea.SpekJvmUtils.extractPath$default(SpekJvmUtils.kt:118)
at org.jetbrains.spek.idea.SpekJvmRunConfigurationProducer.targetForNearestSurroundingSpekBlock(SpekJvmRunConfigurationProducer.kt:198)
at org.jetbrains.spek.idea.SpekJvmRunConfigurationProducer.setupConfigurationFromContext(SpekJvmRunConfigurationProducer.kt:96)
at org.jetbrains.spek.idea.SpekJvmRunConfigurationProducer.setupConfigurationFromContext(SpekJvmRunConfigurationProducer.kt:25)
at com.intellij.execution.actions.RunConfigurationProducer.createLightConfiguration(RunConfigurationProducer.java:246)
at com.intellij.execution.lineMarker.ExecutorAction$Companion.computeConfigurations(ExecutorAction.kt:76)
at com.intellij.execution.lineMarker.ExecutorAction$Companion.getConfigurations(ExecutorAction.kt:62)
at com.intellij.execution.lineMarker.ExecutorAction$Companion.access$getConfigurations(ExecutorAction.kt:45)
at com.intellij.execution.lineMarker.ExecutorAction.getActionName(ExecutorAction.kt:108)
at com.intellij.execution.lineMarker.ExecutorAction.update(ExecutorAction.kt:85)
at com.intellij.execution.lineMarker.LineMarkerActionWrapper.update(LineMarkerActionWrapper.java:84)
at com.intellij.codeInsight.daemon.impl.GutterIntentionAction.isAvailable(GutterIntentionAction.java:80)
at com.intellij.codeInsight.daemon.impl.GutterIntentionAction.addActions(GutterIntentionAction.java:147)
at com.intellij.codeInsight.daemon.impl.GutterIntentionAction.addActions(GutterIntentionAction.java:140)
at com.intellij.codeInsight.daemon.impl.GutterIntentionAction.addActions(GutterIntentionAction.java:117)
at com.intellij.codeInsight.daemon.impl.GutterIntentionAction.addActions(GutterIntentionAction.java:102)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.getActionsToShow(ShowIntentionsPass.java:376)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.getIntentionActionsToShow(ShowIntentionsPass.java:269)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.doCollectInformation(ShowIntentionsPass.java:245)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:70)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:437)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1134)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:430)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:429)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:405)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:143)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:218)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:403)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:170)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
I'm not entirely sure what I did to create this, but it occurred as I was removing some code and moving around a .kt file that extended from org.jetbrains.spek.api.Spek within a test directory.
Stack trace: