Plugin extension point problem
Answered
I had an error getting the extension implementation of MyInterface. such as
private static final ExtensionPointName<MyInterface> EP_NAME = ExtensionPointName.create("my.plugin.myExtensionPoint2");
Error message: java.lang.ClassNotFoundException: another.MyInterfaceImpl
I looked in the documentation but I didn't find an example of how to get an instance of all extensions for myExtensionPoint2 。
https://plugins.jetbrains.com/docs/intellij/plugin-extension-points.html
Please sign in to leave a comment.
Hi,
Please clarify the case. I don't understand where the code you pasted is located. Where is it called? Where is the usage of MyInterfaceImpl? What is the full stacktrace?
Ideally, provide a working reproducible example with the steps to reproduce.
Hi,
This is my plugin code
Exposed extension points
anotherPlugin
plugin.xml
I get an error when using EP_NAME in my plugin to get all extension instances.
Hi,
I assume that both plugins are installed when you test it.
I'm sorry, but I don't see the issue. In this case, please provide a minimal project to reproduce the problem, a test project I can run it on, and describe steps to reproduce.