Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.1.4] IDE: Jython: Interactive sessions no longer supported --- use an installed Jython #19

Closed
blkeller opened this issue Aug 23, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@blkeller
Copy link

Sikuli version: 1.1.4, build 2018-08-23_12:18
Platform: Windows 8.1, 64-bit

>java -version
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

I seem to be unable to get a functioning interactive Sikuli session with the latest nightly build. The session starts, but it does not accept any keyboard input. The only way to exit is via CTRL-C. After forcing termination of the interactive session, I can see that all of my attempted input is actually fed as input to the Windows command prompt instead of Sikuli, though this is hidden until the Sikuli interactive session is terminated.

Resulting output:

C:\SikuliX\1.1.4~nightly20180823_1218>java -jar sikulix.jar -i -d
Hello, this is your interactive Sikuli (rules for interactive Python apply)
use the UP/DOWN arrow keys to walk through the input history
help()<enter> will output some basic Python information
... use ctrl-d to end the session

[The session hangs here regardless of keyboard input, except until CTRL-C is pressed.]

C:\SikuliX\1.1.4~nightly20180823_1218>
C:\SikuliX\1.1.4~nightly20180823_1218>
C:\SikuliX\1.1.4~nightly20180823_1218>
C:\SikuliX\1.1.4~nightly20180823_1218>
C:\SikuliX\1.1.4~nightly20180823_1218>
C:\SikuliX\1.1.4~nightly20180823_1218>
C:\SikuliX\1.1.4~nightly20180823_1218>help()
This command is not supported by the help utility.  Try "() /?".

C:\SikuliX\1.1.4~nightly20180823_1218>
C:\SikuliX\1.1.4~nightly20180823_1218>
C:\SikuliX\1.1.4~nightly20180823_1218>^D
'♦' is not recognized as an internal or external command,
operable program or batch file.

C:\SikuliX\1.1.4~nightly20180823_1218>

Debug log:

[2657 debug (8/23/18 12:49:36 PM)] Debug: setLogFile: C:/SikuliX/1.1.4~nightly20180823_1218/SikulixLog.txt
[2672 debug (8/23/18 12:49:36 PM)] Runner: commandline: 
[2672 debug (8/23/18 12:49:36 PM)] --- Sikuli parameters ---
[2672 debug (8/23/18 12:49:36 PM)] 1: -i
[2672 debug (8/23/18 12:49:36 PM)] 2: -d
[2672 debug (8/23/18 12:49:36 PM)] ScriptingSupport: initScriptingSupport: enter
[5750 debug (8/23/18 12:49:39 PM)] JythonSupport: init: starting
[5750 debug (8/23/18 12:49:39 PM)] JythonSupport: init: success
[5750 debug (8/23/18 12:49:39 PM)] JythonSupport: ***** Jython sys.path
 0: C:\Users\Brett Keller\AppData\Roaming\Sikulix\Lib
 1: C:\Users\Brett Keller\AppData\Roaming\Sikulix\Extensions\Lib
 2: C:\Users\Brett Keller\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar\Lib
 3: __classpath__
 4: __pyclasspath__/
[5750 debug (8/23/18 12:49:39 PM)] JythonSupport: ***** Jython sys.path end
[5860 debug (8/23/18 12:49:40 PM)] Jython: sikuli: Sikuli: starting init
[7032 debug (8/23/18 12:49:41 PM)] Mouse: init start
[7532 debug (8/23/18 12:49:41 PM)] Mouse: init end
[7610 debug (8/23/18 12:49:41 PM)] RunTimeIDE: loadLib: WinUtil.dll
[7688 debug (8/23/18 12:49:41 PM)] Jython: requested to use as default region: S(0)[0,0 1440x900]
[7891 debug (8/23/18 12:49:42 PM)] Jython: sikuli: Sikuli: ending init
[7907 debug (8/23/18 12:49:42 PM)] JythonScriptRunner: running Jython 2.7.1 
[7907 debug (8/23/18 12:49:42 PM)] ScriptingSupport: initScriptingSupport: added: jython
[7907 debug (8/23/18 12:49:42 PM)] ScriptingSupport: initScriptingSupport: added: JavaScript
[7907 debug (8/23/18 12:49:42 PM)] ScriptingSupport: initScriptingSupport: exit with defaultrunner: jython (py)
[7922 debug (8/23/18 12:49:42 PM)] Jython: requested to use as default region: S(0)[0,0 1440x900]
[30782 debug (8/23/18 12:50:04 PM)] Sikulix: endNormal: 0
[30782 debug (8/23/18 12:50:04 PM)] Sikulix: cleanUp: 0
[30782 debug (8/23/18 12:50:04 PM)] RunTimeIDE: final cleanup
[30797 debug (8/23/18 12:50:04 PM)] FileManager: deleteFileOrFolder:
C:\Users\BRETTK~1\AppData\Local\Temp\Sikulix_1703971813
@RaiMan RaiMan changed the title Interactive sessions not accepting input and are unusable [1.1.4] IDE: Jython: Interactive sessions on command line not accepting input, hence unusable Aug 24, 2018
@RaiMan
Copy link
Owner

RaiMan commented Aug 24, 2018

Made it a bug on Launchpad.

@RaiMan RaiMan added the bug Something isn't working label Aug 24, 2018
@RaiMan RaiMan changed the title [1.1.4] IDE: Jython: Interactive sessions on command line not accepting input, hence unusable [1.1.4] IDE: Jython: Interactive sessions no longer supported --- use an installed Jython Apr 12, 2019
@RaiMan
Copy link
Owner

RaiMan commented Apr 12, 2019

the feature is cancelled.
if you need it:

  • install a valid jython
  • run it from commandline

@RaiMan RaiMan closed this as completed Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants