I've been trying to get this to work all day in Intellij IDEA, but I cant get the project/module/dependenc/classpath config just right such that I can call java code from within python (using the jython interpreter), and/or get any kind of autocomplete. If I do it from the command line, it works fine.
I've tried creating a Java project with a python facet.
I've tried creating a java project with python submodule. Also a python project with a java submodule, etc. Also tried adding all kinds of dependencies from the out/production/<module_name> (where the .class files are) to trying to add the java class to the 'sources' of the python content root.
Nothing works.
Any clues?
If I get it working, I intend to write a blog detailing how to get it to work, because I haven't seen any indications from doing google searches on how to get this.
Hello Christian,
PyCharm does fully support Jython as a Python intepreter; you can run and
debug your code under Jython. What PyCharm does not support is integration
with Java (if you calling Java code from your Python classes, you won't get
any coding assistance for the Java methods).
The IntelliJ IDEA Python plugin does support the integration with Java.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
No reply needed. I searched the forums after posting this and found that PyCharm doesn't support Jython, and has no plans to.
There is some limited support in IntelliJ IDEA from what I've read, but I've not gotten it to work in the evaluation version.
Thanks,
Christian
Hi Dimitry,
Thank you for the response with clarification.
Is it possible for you to point me to some documentation for getting the java integration in IDEA+Python plugin to work?
I can't get basic autocomplete for importing 'javax.tools', etc or any Java files.
Thanks,
Christian
I've been trying to get this to work all day in Intellij IDEA, but I cant get the project/module/dependenc/classpath config just right such that I can call java code from within python (using the jython interpreter), and/or get any kind of autocomplete. If I do it from the command line, it works fine.
I've tried creating a Java project with a python facet.
I've tried creating a java project with python submodule. Also a python project with a java submodule, etc. Also tried adding all kinds of dependencies from the out/production/<module_name> (where the .class files are) to trying to add the java class to the 'sources' of the python content root.
Nothing works.
Any clues?
If I get it working, I intend to write a blog detailing how to get it to work, because I haven't seen any indications from doing google searches on how to get this.
Thanks in advance,
Christian
Dimitry, Any suggestions?
Thanks!
Christian
Hello Christian,
The Java/Python integration is indeed broken in the currently available version
of the Python plugin. It will be fixed in the next release of the plugin
for IntelliJ IDEA 10.5.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Indeed, python support seems better in 10.5 with the updated plugin but I face some strange problems.
Am I missed something?
Thanks in advance.
How to debug Jython code with IDEA + PYthon plugin?
Unanswered question about the subject:
http://stackoverflow.com/questions/15825656/jython-remote-debugging-intellij-idea-using-pycharm-plugin