You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
com.intellij.diagnostic.PluginException: class com.intellij.psi.impl.source.JavaDummyHolder cannot be cast to class org.jetbrains.yaml.psi.YAMLFile
#1084
Open
davsclaus opened this issue
Dec 6, 2024
· 0 comments
com.intellij.diagnostic.PluginException: class com.intellij.psi.impl.source.JavaDummyHolder cannot be cast to class org.jetbrains.yaml.psi.YAMLFile (com.intellij.psi.impl.source.JavaDummyHolder is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @777a87d8; org.jetbrains.yaml.psi.YAMLFile is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @1c30293) [Plugin: org.apache.camel]
at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23)
at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:100)
at com.intellij.psi.impl.source.codeStyle.CoreCodeStyleUtil.processElementOrFail(CoreCodeStyleUtil.java:86)
at com.intellij.psi.impl.source.codeStyle.CoreCodeStyleUtil.postProcessElement(CoreCodeStyleUtil.java:59)
at com.intellij.formatting.service.CoreFormattingService.formatElement(CoreFormattingService.java:46)
at com.intellij.formatting.service.FormattingServiceUtil.formatElement(FormattingServiceUtil.java:67)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:82)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:66)
at org.jetbrains.yaml.refactoring.inlineExpandConversion.YAMLInlineCollectionIntentionAction.invokeInlineActionVirtually(YAMLInlineCollectionIntentionAction.kt:82)
at org.jetbrains.yaml.refactoring.inlineExpandConversion.YAMLInlineCollectionIntentionAction.access$invokeInlineActionVirtually(YAMLInlineCollectionIntentionAction.kt:31)
at org.jetbrains.yaml.refactoring.inlineExpandConversion.YAMLInlineCollectionIntentionAction$generatePreview$1$1.invokeSuspend$lambda$1(YAMLInlineCollectionIntentionAction.kt:45)
at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$5.invokeSuspend(InternalReadAction.kt:46)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
Caused by: java.lang.ClassCastException: class com.intellij.psi.impl.source.JavaDummyHolder cannot be cast to class org.jetbrains.yaml.psi.YAMLFile (com.intellij.psi.impl.source.JavaDummyHolder is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @777a87d8; org.jetbrains.yaml.psi.YAMLFile is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @1c30293)
at com.github.cameltooling.idea.service.extension.camel.YamlCamelIdeaUtils.isCamelFile(YamlCamelIdeaUtils.java:185)
at com.github.cameltooling.idea.util.CamelIdeaUtils.processText(CamelIdeaUtils.java:284)
at com.github.cameltooling.idea.formatter.CamelPostFormatProcessor.processText(CamelPostFormatProcessor.java:41)
at com.github.cameltooling.idea.formatter.CamelPostFormatProcessor.processElement(CamelPostFormatProcessor.java:33)
at com.intellij.psi.impl.source.codeStyle.CoreCodeStyleUtil.processElementOrFail(CoreCodeStyleUtil.java:75)
... 15 more
The text was updated successfully, but these errors were encountered:
com.intellij.diagnostic.PluginException: class com.intellij.psi.impl.source.JavaDummyHolder cannot be cast to class org.jetbrains.yaml.psi.YAMLFile (com.intellij.psi.impl.source.JavaDummyHolder is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @777a87d8; org.jetbrains.yaml.psi.YAMLFile is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @1c30293) [Plugin: org.apache.camel]
at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23)
at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:100)
at com.intellij.psi.impl.source.codeStyle.CoreCodeStyleUtil.processElementOrFail(CoreCodeStyleUtil.java:86)
at com.intellij.psi.impl.source.codeStyle.CoreCodeStyleUtil.postProcessElement(CoreCodeStyleUtil.java:59)
at com.intellij.formatting.service.CoreFormattingService.formatElement(CoreFormattingService.java:46)
at com.intellij.formatting.service.FormattingServiceUtil.formatElement(FormattingServiceUtil.java:67)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:82)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:66)
at org.jetbrains.yaml.refactoring.inlineExpandConversion.YAMLInlineCollectionIntentionAction.invokeInlineActionVirtually(YAMLInlineCollectionIntentionAction.kt:82)
at org.jetbrains.yaml.refactoring.inlineExpandConversion.YAMLInlineCollectionIntentionAction.access$invokeInlineActionVirtually(YAMLInlineCollectionIntentionAction.kt:31)
at org.jetbrains.yaml.refactoring.inlineExpandConversion.YAMLInlineCollectionIntentionAction$generatePreview$1$1.invokeSuspend$lambda$1(YAMLInlineCollectionIntentionAction.kt:45)
at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$5.invokeSuspend(InternalReadAction.kt:46)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
Caused by: java.lang.ClassCastException: class com.intellij.psi.impl.source.JavaDummyHolder cannot be cast to class org.jetbrains.yaml.psi.YAMLFile (com.intellij.psi.impl.source.JavaDummyHolder is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @777a87d8; org.jetbrains.yaml.psi.YAMLFile is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @1c30293)
at com.github.cameltooling.idea.service.extension.camel.YamlCamelIdeaUtils.isCamelFile(YamlCamelIdeaUtils.java:185)
at com.github.cameltooling.idea.util.CamelIdeaUtils.processText(CamelIdeaUtils.java:284)
at com.github.cameltooling.idea.formatter.CamelPostFormatProcessor.processText(CamelPostFormatProcessor.java:41)
at com.github.cameltooling.idea.formatter.CamelPostFormatProcessor.processElement(CamelPostFormatProcessor.java:33)
at com.intellij.psi.impl.source.codeStyle.CoreCodeStyleUtil.processElementOrFail(CoreCodeStyleUtil.java:75)
... 15 more
The text was updated successfully, but these errors were encountered: