Using Python packages Follow
Hello,
I'm trying to develop a multi language plugin using Java and Python. In one of my Java classes I'm trying to get the PSI for a given Python file using the Python PSI library in jetbrains, but "com.jetbrains.python" doesn't resolve.
It looks like the SDK only recognizes "com.jetbrains.javascript" and "com.jetbrains.jsonSchema"
I looked at the version of Community Edition that I checked out, and the packages for supporting python exist.
Is there a solution for this?
Please sign in to leave a comment.
I don't believe that the Python packages are included in the SDK classpath by default. Go to your project structure dialog (File->Project Structure...->SDKs [left panel]->Classpath [right panel]) and add all of the jars from your IDEA installation /lib directory to the SDK. (Duplicates will be discarded, so pick _all_ of the jars.) Anything in blue at the bottom of the list is what has been added during this step.
I tried doing that and then reloading the project, yet the modules still aren't recognized.
I'm attempting to do something similar where I need to use the PSI for multiple languages and am having the same problem.
from plugin.xml: