Hey everyone! I wanted to implement more complex logic in ignitnion. Has anyone managed to get a working Jython scripting setup where Java classes show proper IntelliSense and aren't flagged as incorrect imports in any IDE? Ignition gives hints only for their system.<...> functions . I've been struggling with this and tried:
Latest PyCharm - won't even let me set Jython as an interpreter
Latest IntelliJ - also not working, java classes also marked as incorrect imports
The Java imports keep getting marked as errors even though they work at runtime. Really frustrating when you're trying to write Jython code that uses Java libraries and the IDE is constantly screaming at you. You of course can write code with no clue but I don't really think that it is acceptable developer experience in 2k25...
I just have the java docs open next to the script editor when I need to use java classes directly Javadocs & Notable API Changes · inductiveautomation/ignition-sdk-examples Wiki · GitHub Bit more old school but I honestly don’t think it hampers me all that much especially given that its not like I constantly need to use java classes directly, the ignition system.* functions cover a lot of ground.
There was talk of a VSCode plugin but I don’t think it’s out yet and afaik may just be an idea floating about with nothing concrete yet. Looks like some other talk of debugger/breakpoints in script console for 8/8.1 that seemed to never really come to fruition - Break points and a good debugger | Voters | Inductive Automation
My advice, get used to coding in the script library directly. I’ve worked with it for almost a decdae now and tbh I don’t know how much more an IDE would have helped me be more productive etc. Espeically given a lack of timeline or details on when any sort of IDE implementation might be feasible.
There was talk, but I believe that was just getting the system functions to be recognized, not all Java classes.
In my over decades worth of experience, I have found that the less that I need to depend on script, the better my applications perform. I spend far more time trying to figure out how to make things work as pure expressions, than I would a script, but in the end it’s worth the effort.
Thanks for your replies! So if I understood correctly there is no way to have jython + java classes ide with features like type hints etc ?
It makes me feel a bit unconfortable, especially that I have a couple of years of experience as software developer and I used to work in different text editor environment, but I understand that it’s what it is.