Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
Labels

Comments

@davsclaus
Copy link
Collaborator

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

@davsclaus davsclaus added the bug label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant