CompletionContributor registration changes in Maia

I noticed that completion.contributor extension registration routine has significantly changed. Now (build 10652) I get infamous ClassCastException when trying to register my contributor extending com.intellij.codeInsight.completion.CompletionContributor. Extension point interface has been changed to com.intellij.codeInsight.completion.CompletionContributorEP.
What is the right way to register my contributor in Maia?

2 comments
Comment actions Permalink

Hello Max,

You need to specify the language:
<completion.contributor language="foo" implementationClass="my.implementation.class"/>

I noticed that completion.contributor extension registration routine
has significantly changed. Now (build 10652) I get infamous
ClassCastException when trying to register my contributor extending
com.intellij.codeInsight.completion.CompletionContributor. Extension
point interface has been changed t

o com.intellij.codeInsight.completion.CompletionContributorEP.

What is the right way to register my contributor in Maia?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Yeah, that helped.
In fact, I have added language attribute, but somehow my plugin.xml was not copied to plugin-sandbox folder.

0

Please sign in to leave a comment.