Error when opening projects in Sikuli (2.0.5)

Asked by Ricardo Luzini

Hi was using Siculi and created a few projects, but I had to reinstal a few SW in my machine and Siculi stopped working. I reinstalled it but now I ca open a few projects, but not all - I do not get the reason why.
Could any of you help me on that?

I opened using a debug info, after I succesfully opened Siculi:
  [debug] IDE: MenuAction.doOpen
  [debug] EditorPane: created 1626903563733
  [debug] SikulixFileChooser: Open at C:\Users\MT\Desktop\SicPROJETOS
  [debug] EditorPane: loadfile: C:\Users\MT\Desktop\SicPROJETOS\013_Ariba_v1_DEMO.sikuli
  [debug] IDE: selectFile: cancelled

I have created this project and it worked before

THIS IS an "OK" project - full log from opening, and it work:

C:\Automacao\RAW>REM java -jar sikulixide-2.0.5.jar -v -c

C:\Automacao\RAW>java -jar sikulixide-2.0.5-win.jar -v -c
[DEBUG]startUp: IDE: Running: C:\Automacao\RAW\sikulixide-2.0.5-win.jar
[DEBUG]startUp: IDE: AppData: C:\Users\MT\AppData\Roaming\Sikulix
[DEBUG]startUp: IDE: starting with classpath: sikulixide-2.0.5-win.jar ...
[DEBUG]startUp: IDE: no extensions.txt nor valid content
[200 debug] RunTime:temp folder ok: C:\Users\MT\AppData\Local\Temp\Sikulix_1530882792
Options: *** options dump
Options: testing =
Options: OptionsFile = C:\Users\MT\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
***** show environment for 2.0.5 API
user.home: C:\Users\MT
work dir: C:\Automacao\RAW
running on Windows 10.0 from a jar
running Java AdoptOpenJDK 1.8.0_262-b10
java.io.tmpdir: C:\Users\MT\AppData\Local\Temp
app data folder: C:\Users\MT\AppData\Roaming\Sikulix
executing jar: C:\Automacao\RAW\sikulixide-2.0.5-win.jar
*** classpath dump sikulix
  0: file:/C:/Automacao/RAW/sikulixide-2.0.5-win.jar
*** classpath dump end
***** show environment end
[DEBUG]startUp: IDE: *********************** leaving start
[33 debug] Sikulix: starting IDE
[46 debug] RunTime:temp folder ok: C:\Users\MT\AppData\Local\Temp\Sikulix_288977337
Options: *** options dump
Options: testing =
Options: OptionsFile = C:\Users\MT\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
***** show environment for 2.0.5 IDE
user.home: C:\Users\MT
work dir: C:\Automacao\RAW
running on Windows 10.0 from a jar
running Java AdoptOpenJDK 1.8.0_262-b10
java.io.tmpdir: C:\Users\MT\AppData\Local\Temp
app data folder: C:\Users\MT\AppData\Roaming\Sikulix
executing jar: C:\Automacao\RAW\sikulixide-2.0.5-win.jar
*** classpath dump sikulix
  0: file:/C:/Automacao/RAW/sikulixide-2.0.5-win.jar
  1: file:/C:/Automacao/RAW/sikulixide-2.0.5-win.jar
*** classpath dump end
***** show environment end
[216 debug] IDE: running with Locale: en_US
[DEBUG]startUp: IDE: --- Sikuli parameters ---
[DEBUG]startUp: IDE: 1: -v
[DEBUG]startUp: IDE: 2: -c
[216 debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[579 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[579 debug] IDE: Init ScriptingSupport
[594 debug] IDESupport: enter
[3559 debug] Runner: init: class org.sikuli.script.runners.AbstractLocalFileScriptRunner: warning: not possible
[3569 debug] Runner: added: Jython [py] text/jython
[3569 debug] Runner: added: PackedSikulix [zip] application/zip
[3569 debug] Runner: added: NetworkRunner [] NET
[3569 debug] Runner: added: Text [txt] text/text
[3569 debug] Runner: added: PackedSikulix [skl] text/skl
[3569 debug] Runner: added: Sikulix [] directory/sikulix
[3569 debug] Runner: added: PowerShell [ps1] text/powershell
[3569 debug] Runner: added: SikulixJar [jar] text/jar
[3569 debug] Runner: added: SikulixExecutableJar [executablejar] text/jar
[3569 debug] IDESupport: added: Jython
[3569 debug] IDESupport: added: Text
[3569 debug] IDESupport: exit: defaultrunner: Jython (py)
[3579 debug] IDE: Reading Preferences
[3579 debug] IDE: Adding components to window
[3579 debug] IDE: [I18N] menuRecent
[3611 debug] IDE: [I18N] menuToolAndroid
[3611 debug] IDE: creating tabbed editor
[3695 debug] IDE: creating message area
[3826 debug] IDE: creating combined work window
[3826 debug] IDE: Putting all together
[3826 debug] IDE: Putting all together - after main pane
[3911 debug] IDE: Putting all together - after toolbar
[3911 debug] IDE: Putting all together - before layout
[3980 debug] IDE: Putting all together - after layout
[3980 debug] IDE: Putting all together - Restore last Session
[3980 debug] IDE: Restore scripts from last session
[3996 debug] EditorPane: created 1626903679814
[4011 debug] JythonRunner: starting initialization
[4043 debug] EditorPane: InitTab: (text/jython)
[4043 debug] ImagePath: new BundlePath: C:\Users\MT\AppData\Local\Temp\Sikulix_288977337\SikulixIDETempTab1626903679814
[4058 debug] Screen: initScreens: starting
[4058 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[4058 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[4058 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[4074 debug] Screen: Monitor 0: (0, 0) 1366 x 768
[4074 debug] Screen: Monitor 1: (1366, 0) 1366 x 768
[4074 debug] Screen: initScreens: monitor mouse check
[error] Mouse: not useable (blocked)
[4080 debug] Screen: initScreens: ending
[4080 debug] IDE startup: 4.1 seconds
[debug] Jython: added as Jython::sys.path[0]:
C:\Users\MT\AppData\Roaming\Sikulix\Lib\site-packages
[debug] Jython: found Lib/site-packages/sites.txt
[debug] Jython: added as Jython::sys.path[0] from Lib/site-packages/sites.txt:
C:\Users\MT\Desktop\SicPROJETOS
[debug] Jython: added as Jython::sys.path[0] from Lib/site-packages/sites.txt:
C:\Automacao\RAW
[debug] Jython: ***** sys.path
 0: C:\Users\MT\AppData\Local\Temp\Sikulix_288977337\SikulixIDETempTab1626903679814
 1: C:\Automacao\RAW
 2: C:\Users\MT\Desktop\SicPROJETOS
 3: C:\Users\MT\AppData\Roaming\Sikulix\Lib\site-packages
 4: C:\Users\MT\AppData\Roaming\Sikulix\Lib
 5: C:\Automacao\RAW\Lib
 6: C:\Automacao\RAW\sikulixide-2.0.5-win.jar\Lib
[6563 debug] JythonRunner: ready: version 2.7.2
[debug] IDE: MenuAction.doOpen
[debug] EditorPane: created 1626903697618
[debug] SikulixFileChooser: Open at C:\Users\MT\Desktop\SicPROJETOS
[debug] EditorPane: loadfile: C:\Users\MT\Desktop\SicPROJETOS\005_pudim_com_popup.sikuli
[debug] EditorPane: InitTab: (text/jython)
[debug] SikuliEditorKit.read
[debug] ImagePath: new BundlePath: C:\Users\MT\Desktop\SicPROJETOS\005_pudim_com_popup.sikuli
[debug] EditorPane: setFiles: for: C:\Users\MT\Desktop\SicPROJETOS\005_pudim_com_popup.sikuli
[debug] Image: loaded: 1621268062318.png (file:/C:/Users/MT/Desktop/SicPROJETOS/005_pudim_com_popup.sikuli/1621268062318.png)
[debug] Image: cached: 1621268062318.png (23 KB) (# 1 KB 23 -- 0 % of 64 MB)
[debug] Image: loaded: Bepudimpudim.png (file:/C:/Users/MT/Desktop/SicPROJETOS/005_pudim_com_popup.sikuli/Bepudimpudim.png)
[debug] Image: cached: Bepudimpudim.png (13 KB) (# 2 KB 36 -- 0 % of 64 MB)

Question information

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

what happens, when you select a "not working" script in the open dialog?

  [debug] SikulixFileChooser: Open at C:\Users\MT\Desktop\SicPROJETOS
  [debug] EditorPane: loadfile: C:\Users\MT\Desktop\SicPROJETOS\013_Ariba_v1_DEMO.sikuli
  [debug] IDE: selectFile: cancelled

You might try to directly open the .py file inside 013_Ariba_v1_DEMO.sikuli.

Revision history for this message
Ricardo Luzini (rluzini) said :
#2

@RaiMan, I just tried open the .py file and it worked.

[debug] EditorPane: writeSrcFile: C:\Users\MT\Desktop\SicPROJETOS\014_Ariba_v2.sikuli\Ariba_v2.py
[debug] EditorPane: Tab close: Ariba_v2.py
[debug] ImagePath: new BundlePath: C:\Users\MT\Desktop\SicPROJETOS\013_Ariba_v1_DEMO.sikuli

Thanks for your promptness and support!
Luzini

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

If you save a project as .sikuli or as a folder, then the .py file gets the same name (- extension).

if you now change either the folder name or the .py file name outside the IDE to something different, it cannot be opened anymore as .sikuli or folder (since the name equality is expected).

So never do this.

\014_Ariba_v2.sikuli not= Ariba_v2.py !!!