[2.0.4] Docs: should clearly describe how to get Eclipse/PyDev working with Sikuli (and maybe other commonly used Jython capable IDE's

Bug #1446769 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Low
RaiMan

Bug Description

I have sikuli setup to work with Eclipse via PyDev, but I've been having difficulty getting Pydev to recognize the 'sikuli' package found in '../sikulixapi.jar/Lib'. The code runs properly, my only problem is getting code-completion and tool-tips to work. Right now my EclipseIDE is filled with false errors, saying that sikuli functions are undefined even though they've been imported.

I was following the instructions from here: https://github.com/RaiMan/SikuliX-2014/wiki/Usage-in-Java-programming, but had no luck. Specifically, I can't get PyDev to add 'sikulixapi.jar/Lib' or 'sikulixapi.jar\Lib' as an External Library.

The problem is not with the Jar, as I can succesfully add 'sikulixapi.jar' as an External Library. Additionally, with 'sikulixapi.jar' as an External Library I am able to get code completion working with the line: "from Lib.sikuli import *". Unfortunately this approach breaks the scripts when I try to run them with "ImportError: No module named Lib".

So, to get code completion working I could do the following:

import org.sikuli.basics.SikulixForJython
try: from Lib.sikuli import *
except: pass
from sikuli import *

But that's inelegant and hacky.

What's the correct way to get code completion working in Eclipse/PyDev?

Revision history for this message
RaiMan (raimund-hocke) wrote :

some information is in the related question.

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 2.0.5
summary: - [1.0.1] Docs: should clearly describe how to get Eclipse/PyDev working
+ [2.0.4] Docs: should clearly describe how to get Eclipse/PyDev working
with Sikuli (and maybe other commonly used Jython capable IDE's
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.