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

ClassCastException: mobi.hsz.idea.gitignore.psi.impl.GitignoreEntryFileImpl cannot be cast to com.intellij.psi.impl.source.tree.LeafPsiElement #37

Closed
doxxx opened this issue Jul 28, 2014 · 2 comments
Labels

Comments

@doxxx
Copy link

doxxx commented Jul 28, 2014

Using IDEA EAP 138.1029 and gitignore plugin 0.5.1, when I try to apply the quickfix to all unused entry problems, I get the following:

mobi.hsz.idea.gitignore.psi.impl.GitignoreEntryFileImpl cannot be cast to com.intellij.psi.impl.source.tree.LeafPsiElement
java.lang.ClassCastException: mobi.hsz.idea.gitignore.psi.impl.GitignoreEntryFileImpl cannot be cast to com.intellij.psi.impl.source.tree.LeafPsiElement
    at mobi.hsz.idea.gitignore.actions.GitignoreRemoveEntryFix.invoke(GitignoreRemoveEntryFix.java:27)
    at com.intellij.codeInspection.LocalQuickFixOnPsiElement.applyFix(LocalQuickFixOnPsiElement.java:102)
    at com.intellij.codeInspection.LocalQuickFixOnPsiElement.applyFix(LocalQuickFixOnPsiElement.java:92)
    at com.intellij.codeInspection.LocalQuickFixOnPsiElement.applyFix(LocalQuickFixOnPsiElement.java:26)
    at com.intellij.codeInspection.actions.CleanupInspectionIntention$3.run(CleanupInspectionIntention.java:97)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1010)
    at com.intellij.codeInspection.actions.CleanupInspectionIntention.invoke(CleanupInspectionIntention.java:94)
    at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler$2.run(ShowIntentionActionsHandler.java:169)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
    at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.chooseActionAndInvoke(ShowIntentionActionsHandler.java:188)
    at com.intellij.codeInsight.intention.impl.IntentionListStep$2$1.run(IntentionListStep.java:243)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:318)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
    at java.awt.EventQueue.access$400(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:697)
    at java.awt.EventQueue$3.run(EventQueue.java:691)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:722)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:549)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:360)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
@hsz hsz closed this as completed in 85f1502 Jul 28, 2014
@hsz
Copy link
Member

hsz commented Jul 28, 2014

Fixed with release v0.5.2

zolotov pushed a commit to zolotov/idea-gitignore that referenced this issue Jul 28, 2014
@doxxx
Copy link
Author

doxxx commented Jul 29, 2014

Thanks, confirmed!

@hsz hsz added the bug label Apr 16, 2015
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

2 participants