← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #663191]: How to Go-to-line in the IDE

 

Question #663191 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663191

    Status: Open => Answered

Roman Podolyan proposed the following answer:
1) You can use other IDE to navigate the script. Sikuli scripts could be
edited with PyCharm, and they can be even run with it.   (you won't have
capabilities to to capture images though). PyCharm has Go To Line

2) You can spend some time and insert after every 50 lines comment like

#mark050
...
#mark100
...
#mark150

It would be dirty hack. 
_____

But in general if you have over 1000 lines in one script, you are doing
it wrong. This is what is called "large class" anti-pattern. Even 250+
like I had is not a good idea: it is hard to manage.  Consider breaking
your script into several smaller files/classes and smaller functions.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.