Code Monkey home page Code Monkey logo

Comments (6)

RaiMan avatar RaiMan commented on June 4, 2024

This is a request since years ;-)

It is principally possible, yes, but has its caveats.

Until version 1.1.3 I always told people, they might use the interactive mode from command line. But this of course has its limitations.
... and is no longer available with 1.1.4 due to implementation issues.

So I have the "pressure" to offer some solution and I will do that:
Right-click on the line number will offer:

  • run this line
  • run to this line from top
  • run from this line to end
  • run selection (if nothing is selected: run current line)

Additionally in the Run menu, there is an entry Run selection, that runs the current selection or the current line, if nothing is selected.

Jython: If the first line of a multiline-selection is indented, a if True: at indent 0 is prepended.

You must really know what you are doing:

  • the auto-save feature is not used
  • the one interpreter session remembers the history until this point (especially variable/object states), but you might use the reset option in the tab menu, which resets the interpreter to a state comparable to after the IDE is started

from sikulix1.

RaiMan avatar RaiMan commented on June 4, 2024

I have added the features (2018-10-09 build #106) as mentioned in the comment before for now only for Jython scripting.
Some tests would be appreciated.

from sikulix1.

kaltinril avatar kaltinril commented on June 4, 2024

I'll look into testing, I've only ran things from the UI or command line.

Not sure how to begin with testing jython.

Your previous reply has lots of information, but I wasn't sure if you were providing reasons it can go wrong or?

You say there is an entry in the run menu called run selection

from sikulix1.

RaiMan avatar RaiMan commented on June 4, 2024

Might have been misunderstanding:

The features are implemented in the SikuliX IDE (but there currently not for Ruby scripting nor JavaScript).

some docs are here

from sikulix1.

RaiMan avatar RaiMan commented on June 4, 2024

implemented

from sikulix1.

kaltinril avatar kaltinril commented on June 4, 2024

Nice, I finally had some time at work to test this. I like that it retains context (variables, positions, etc). I also like that it hides/minimizes Sikulix to prevent type("foo bar") from going into the window.

Now to try if the other items you've closed I can get past :)

Thank you!

from sikulix1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.