How to get python class references working in PyCharm plugin?

Hello,

I modified the IntelliBot plugin using IDEA community edition (did only minor changes). The plugin builds successfully and works as expected when running it in IDEA community edition.

I built the plugin via 'Prepare Plugin Module .. For Deployment' and installed it into PyCharm using the created zip file.

After restart I get the following error in Event Log:

NoClassDefFoundError: Could not initialize class com.jetbrains.python.psi.stubs.PyClassNameIndex

Dependencies in plugin.xml are the original ones:

<depends>com.intellij.modules.lang</depends>
<depends optional="true">
com.intellij.modules.python</depends>
<depends optional="true">
Pythonid</depends>
<depends optional="true">
PythonCore</depends>


What should I do to get the plugin working in PyCharm?

Thanks,
Zoltan

2 comments
Comment actions Permalink

Looks like you added the Python plugin classes as a library to your module. Instead, you need to add them to the classpath of your IntelliJ IDEA SDK.


0
Comment actions Permalink

Thanks, this was the case.

0

Please sign in to leave a comment.