Eclipse/PyDev: how to configure Task viewer

Asked by eliteSKL

If I can not get the task viewer to work, I can live with out it.

So I have the default Jython interpreter setup with Sikuli perfectly. Everything works fine, with every project i start/import or run. I read at the PyDev site that you have to have to source folder added to the python path in order for the "Task" functionality. When i do this i get that "Task" functionality working but then I loose the Sikuli syntax recognition.

What do I have to do to get "Task viewer" working with this sikuli setup?

Thanks for your time!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
eliteSKL
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Seems to by an Eclipse/PyDev problem.

You say:
but then I loose the Sikuli syntax recognition.

What does this mean? Recognizing the Python syntax or being able to select Sikuli classes/methods?

Revision history for this message
eliteSKL (camaro70s) said :
#2

the Sikuli methods like click all of sudden go squiggly. The python syntax stays fine. I will have to go back and play with it more when i have more time.

i know i'm kind of asking a half ass-ed question without much info. maybe i'll post back later when i have more time to fiddle with it. and can ask a better question. I was just kind of hoping someone already had this issue.

okay thanks for your time.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

to save it from being expired

Revision history for this message
eliteSKL (camaro70s) said :
#4

okay so i want's me to call them explicitly. if i add any other file to the PYTHONPATH.

ex: Region.click(i,tPSM)

also for other modules that i have made have to be add to the PYTHONPATH in order to get code completion for those files. this also mess with it.

I think i need to do some more searching and re-read the PyDev site. I bet i'm doing something wrong.

maybe it is a PyDev/Eclipse issue.

Revision history for this message
eliteSKL (camaro70s) said :
#5

Okay, i figured it out. i was adding my personal modules that where Eclipse imported using the "Source folder" tab in the project properties window this was the wrong way.

the solution to keeping the Sikuli syntax and getting code completion for your own modules is to add it this way.

again through the projects own properties window click on the

pesonnal project --> Rightclick --> properties --> left hand window click PyDev-PYTHONPATH

Click the tab "External Libraries"--> click "Add external source folder" even though you have a copy of the module added to your project that doesn't mean you will get code completion.

DISCLAIMER: my first week using Eclipse, if i'm adding things backwards please straighten me out. this is just how i got everything to work for me. I have my Eclipse set-up like it has been said on these forums here. From what i understand there are global setting to get Eclipse working with Sikuli and then independent setting for each project that you start. OR ATLEAST AS I UNDERSTAND IT... o_O

cheers!

Revision history for this message
eliteSKL (camaro70s) said :
#6

Actually this only fixed getting code completion for personal modules added. this still doesn't fix the "Task Viewer"

Revision history for this message
RaiMan (raimund-hocke) said :
#7

Since I want to complete the FAQ http://sikuli.org/docx/faq/040-other-ide.html, that I started a few weeks ago, I will look into Netbeans and Eclipse the next days. May be I find something helpful.

--- One thing:
I think we will get code completion for click(), find() and other Region methods only, when they are qualified with a respective object (Region, Screen or Match), since the "naked" use is a "Python trick" with the global name tables, that is dynamically implemented at runtime during initialization of Sikuli (so an unqualified click() internally is "translated" to a Screen(0).click()).

So an unqualified click() cannot be known in the IDE at the time of source editing.

Revision history for this message
RaiMan (raimund-hocke) said :
#8

If interested, I have finished my research and evaluation of the Python environments in Eclipse and Netbeans.
http://sikuli.org/docx/faq/040-other-ide.html

I did not find any interdependencies to the task matter.