← Back to team overview

sikuli-driver team mailing list archive

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

 

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Low

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 2.0.5

** Summary changed:

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

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1446769

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

Status in Sikuli:
  In Progress

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?

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1446769/+subscriptions


References