sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #56847
[Bug 1917408] Re: [2.0.5] getParentFolder(), getImagePath() breaks in 2.0.5 but was working on 2.0.4
@Chetan
The space problem should be fixed.
New artifacts are online.
Test and feedback appreciated.
** Description changed:
print("Parent",getParentFolder())
exit(2)
using the above code
in 2.0.4
output
('Parent', u'C:\\Perf\\Work\\Groups\\AntiPirates\\PDFNext\\Automations\\FeatTests\\FEAT\\Unified Share\\UI_Automation\\TestFiles\\')
[info] Exit code: 2
in 2.0.5
('Parent', u'/C:/Perf/Work/Groups/AntiPirates/PDFNext/Automations/FeatTests/FEAT/Unified%20Share/UI_Automation/TestFiles/DragDrop.sikuli\\')
notice the path seperator "/" are incorrect as a result any imports
fail
OS windows
this makes build 2.0.5 unusable 64 bit java 14- please suggest workaround
similar issue is seen with getImagePath() on windows
print(getImagePath())
2.0.4
[u'C:\\Perf\\Work\\Groups\\AntiPirates\\PDFNext\\Automations\\FeatTests\\FEAT\\Unified Share\\UI_Automation\\image.sikuli']
2.0.5
[u'/C:/Perf/Work/Groups/AntiPirates/PDFNext/Automations/FeatTests/FEAT/Unified%20Share/UI_Automation/image.sikuli/']
-
-
-
- ***********
- logs below on running ide
- ***** show environment end
- [DEBUG]startUp: IDE: *********************** leaving start
- [10 debug] Sikulix: starting IDE
- [23 debug] RunTime:temp folder ok: C:\Users\cshamdas\AppData\Local\Temp\Sikulix_941082000
- Options: *** options dump
- Options: testing =
- Options: OptionsFile = C:\Users\cshamdas\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
- Options: *** options dump end
- ***** show environment for 2.0.5 IDE
- user.home: C:\Users\cshamdas
- work dir: C:\Users\cshamdas\Downloads
- running on Windows 10.0 from a jar
- running Java Oracle Corporation 1.8.0_281-b09
- java.io.tmpdir: C:\Users\cshamdas\AppData\Local\Temp
- app data folder: C:\Users\cshamdas\AppData\Roaming\Sikulix
- executing jar: C:\Users\cshamdas\Downloads\sikulixide-2.0.5.jar
- *** classpath dump sikulix
- 0: file:/C:/Users/cshamdas/Downloads/sikulixide-2.0.5.jar
- 1: file:/C:/Users/cshamdas/Downloads/sikulixide-2.0.5.jar
- *** classpath dump end
- ***** show environment end
- [79 debug] IDE: running with Locale: en_US
- [DEBUG]startUp: IDE: --- Sikuli parameters ---
- [DEBUG]startUp: IDE: 1: -v
- [DEBUG]startUp: IDE: 2: -c
- [87 debug] HotkeyManager: add Capture Hotkey: CTRL 1 (49, 2)
- [403 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
- [404 debug] IDE: Init ScriptingSupport
- [407 debug] IDESupport: enter
- [2004 debug] Runner: added: Jython [py] text/jython
- [2006 debug] Runner: added: NetworkRunner [] NET
- [2007 debug] Runner: added: SikulixJar [jar] text/jar
- [2008 debug] Runner: added: PackedSikulix [skl] text/skl
- [2010 debug] Runner: added: SikulixExecutableJar [executablejar] text/jar
- [2010 debug] Runner: added: Sikulix [] directory/sikulix
- [2011 debug] Runner: added: PackedSikulix [zip] application/zip
- [2011 debug] Runner: added: PowerShell [ps1] text/powershell
- [2011 debug] Runner: added: Text [txt] text/text
- [2012 debug] Runner: init: class org.sikuli.script.runners.AbstractLocalFileScriptRunner: warning: not possible
- [2012 debug] IDESupport: added: Jython
- [2012 debug] IDESupport: added: Text
- [2013 debug] IDESupport: exit: defaultrunner: Jython (py)
- [2015 debug] IDE: Reading Preferences
- [2016 debug] IDE: Adding components to window
- [2021 debug] IDE: [I18N] menuRecent
- [2033 debug] IDE: [I18N] menuToolAndroid
- [2035 debug] IDE: creating tabbed editor
- [2089 debug] IDE: creating message area
- [2123 debug] IDE: creating combined work window
- [2173 debug] IDE: Putting all together
- [2173 debug] IDE: Putting all together - after main pane
- [2222 debug] IDE: Putting all together - after toolbar
- [2224 debug] IDE: Putting all together - before layout
- [2240 debug] IDE: Putting all together - after layout
- [2241 debug] IDE: Putting all together - Restore last Session
- [2242 debug] IDE: Restore scripts from last session
- [2242 debug] IDE: Restore Sikuli script: C:\Perf\Work\Groups\AntiPirates\PDFNext\Automations\FeatTests\FEAT\Unified Share\UI_Automation\image.sikuli
- [2252 debug] EditorPane: created 1614671584714
- [2256 debug] EditorPane: loadfile: C:\Perf\Work\Groups\AntiPirates\PDFNext\Automations\FeatTests\FEAT\Unified Share\UI_Automation\image.sikuli
- [2259 debug] JythonRunner: starting initialization
- [2274 debug] EditorPane: InitTab: (text/jython)
- [2275 debug] SikuliEditorKit.read
- [2283 debug] ImagePath: new BundlePath: /C:/Perf/Work/Groups/AntiPirates/PDFNext/Automations/FeatTests/FEAT/Unified%20Share/UI_Automation/image.sikuli/
- [2283 debug] EditorPane: setFiles: for: C:\Perf\Work\Groups\AntiPirates\PDFNext\Automations\FeatTests\FEAT\Unified Share\UI_Automation\image.sikuli
- [2286 debug] IDE: Restore Python script: DragDrop.py
- [2288 debug] EditorPane: created 1614671584750
- [2290 debug] EditorPane: loadfile: C:\Perf\Work\Groups\AntiPirates\PDFNext\Automations\FeatTests\FEAT\Unified Share\UI_Automation\TestFiles\DragDrop.sikuli\DragDrop.py
- [2293 debug] EditorPane: InitTab: (text/jython)
- [2294 debug] SikuliEditorKit.read
- [2302 debug] ImagePath: new BundlePath: /C:/Perf/Work/Groups/AntiPirates/PDFNext/Automations/FeatTests/FEAT/Unified%20Share/UI_Automation/TestFiles/DragDrop.sikuli/
- [2302 debug] EditorPane: setFiles: for: C:\Perf\Work\Groups\AntiPirates\PDFNext\Automations\FeatTests\FEAT\Unified Share\UI_Automation\TestFiles\DragDrop.sikuli\DragDrop.py
- [2303 debug] EditorPane: checkSource: started (C:\Perf\Work\Groups\AntiPirates\PDFNext\Automations\FeatTests\FEAT\Unified Share\UI_Automation\TestFiles\DragDrop.sikuli\DragDrop.py)
- [error] ImagePath: find: not there: RichMediaToolsLocal.png
- [2309 debug] ImagePath: ImagePath has 1 entries (valid 1)
- [2309 debug] ImagePath: BundlePath: /C:/Perf/Work/Groups/AntiPirates/PDFNext/Automations/FeatTests/FEAT/Unified%20Share/UI_Automation/TestFiles/DragDrop.sikuli/
- [2314 debug] IDE: Restore Python script: settings.py
- [2316 debug] EditorPane: created 1614671584778
- [2319 debug] EditorPane: loadfile: C:\Perf\Work\Groups\AntiPirates\PDFNext\Automations\FeatTests\Common\UIAutomation\acrobat.sikuli\settings.py
- [2321 debug] EditorPane: InitTab: (text/jython)
- [2322 debug] SikuliEditorKit.read
- [2328 debug] ImagePath: new BundlePath: /C:/Perf/Work/Groups/AntiPirates/PDFNext/Automations/FeatTests/Common/UIAutomation/acrobat.sikuli/
- [2328 debug] EditorPane: setFiles: for: C:\Perf\Work\Groups\AntiPirates\PDFNext\Automations\FeatTests\Common\UIAutomation\acrobat.sikuli\settings.py
- [2330 debug] EditorPane: checkSource: started (C:\Perf\Work\Groups\AntiPirates\PDFNext\Automations\FeatTests\Common\UIAutomation\acrobat.sikuli\settings.py)
- [2333 debug] ImagePath: new BundlePath: /C:/Perf/Work/Groups/AntiPirates/PDFNext/Automations/FeatTests/FEAT/Unified%20Share/UI_Automation/image.sikuli/
- [2338 debug] Screen: initScreens: starting
- [2338 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
- [2341 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
- [2342 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
- [2344 debug] Screen: Monitor 0: (0, 0) 1280 x 720
- [2346 debug] Screen: initScreens: monitor mouse check
- [2348 debug] Screen: *** checking: R[0,0 1280x720]@S(0) center: (640, 360) --- OK
- [2349 debug] Screen: initScreens: ending
- [2349 debug] IDE startup: 2.3 seconds
- [debug] Jython: added as Jython::sys.path[0]:
- C:\Users\cshamdas\AppData\Roaming\Sikulix\Lib\site-packages
- [debug] Jython: ***** sys.path
- 0: /C:/Perf/Work/Groups/AntiPirates/PDFNext/Automations/FeatTests/FEAT/Unified%20Share/UI_Automation/image.sikuli/
- 1: C:\Users\cshamdas\AppData\Roaming\Sikulix\Lib\site-packages
- 2: C:\Users\cshamdas\AppData\Roaming\Sikulix\Lib
- 3: C:\Users\cshamdas\Downloads\Lib
- 4: C:\Users\cshamdas\Downloads\sikulixide-2.0.5.jar\Lib
- [4231 debug] JythonRunner: ready: version 2.7.2
** Changed in: sikuli
Importance: High => Critical
** Summary changed:
- [2.0.5] getParentFolder(), getImagePath() breaks in 2.0.5 but was working on 2.0.4
+ [2.0.5] IDE: bundlePath having blanks in pathname do not work --- fixed
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1917408
Title:
[2.0.5] IDE: bundlePath having blanks in pathname do not work ---
fixed
Status in Sikuli:
Fix Committed
Bug description:
print("Parent",getParentFolder())
exit(2)
using the above code
in 2.0.4
output
('Parent', u'C:\\Perf\\Work\\Groups\\AntiPirates\\PDFNext\\Automations\\FeatTests\\FEAT\\Unified Share\\UI_Automation\\TestFiles\\')
[info] Exit code: 2
in 2.0.5
('Parent', u'/C:/Perf/Work/Groups/AntiPirates/PDFNext/Automations/FeatTests/FEAT/Unified%20Share/UI_Automation/TestFiles/DragDrop.sikuli\\')
notice the path seperator "/" are incorrect as a result any imports
fail
OS windows
this makes build 2.0.5 unusable 64 bit java 14- please suggest workaround
similar issue is seen with getImagePath() on windows
print(getImagePath())
2.0.4
[u'C:\\Perf\\Work\\Groups\\AntiPirates\\PDFNext\\Automations\\FeatTests\\FEAT\\Unified Share\\UI_Automation\\image.sikuli']
2.0.5
[u'/C:/Perf/Work/Groups/AntiPirates/PDFNext/Automations/FeatTests/FEAT/Unified%20Share/UI_Automation/image.sikuli/']
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1917408/+subscriptions
References