[2.0.x] IDE: delete images on save: orphan string delimiter message --- fixed in 2.0.4

Bug #1857600 reported by Jeff_Vallis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
High
RaiMan

Bug Description

2.0.1-2019-11-22_16:54/Mac10.15.2/Java13(64)13.0.1+9

Orphan string delimiter )" or ')
in line 3760

this was on saving a script in the IDE
my script file has 3318 lines

so I have a problem finding there error line

Revision history for this message
Jeff_Vallis (vallis-pj) wrote :

[error] EditorPane: DeleteImagesOnSave: No images deleted, caused by orphan string delimiter (" or ') in line 3760
[error] EditorPane: cleanBundle aborted (uncomplete_string_error)

RaiMan (raimund-hocke)
summary: - Orphan Delimiter
+ IDE: delete images on save: orphan string delimiter message line number
+ too large
summary: - IDE: delete images on save: orphan string delimiter message line number
- too large
+ [2.0.x] IDE: delete images on save: orphan string delimiter message line
+ number too large
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 2.0.2
Revision history for this message
David Eells (spaceman2901) wrote : Re: [2.0.x] IDE: delete images on save: orphan string delimiter message line number too large

I reproduced this error by accident and worked out that it traced to an apostrophe in a comment. Sikuli still reads that as a delimiter even though it's following a # or inside a ''' ''' block.

RaiMan (raimund-hocke)
summary: - [2.0.x] IDE: delete images on save: orphan string delimiter message line
- number too large
+ [2.0.x] IDE: delete images on save: orphan string delimiter message ---
+ fixed in 2.0.4
Changed in sikuli:
status: In Progress → Fix Committed
importance: Medium → High
milestone: 2.0.2 → 2.0.5
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → In Progress
Revision history for this message
SamaV (samav) wrote :

Hi,
Currently, we are using Sikuli 1.1.2 IDE to trigger our automation suite. However our project has a plan to
to change the current JDK from oracle to Zulu JDK (Version 11.62.17(11.0.18)), 64-bit.As part of this, we noticed that sikulix IDE 1.1.2 is no more supporting java version above 8.

And due to this have installed sikulix 2.0.5 just to ensure eveything works smooth with latest ZULU JDK with combination of 2.0.5 sikulix jar file. However, I have being displayed with below error when I try to edit and save from IDE.
"Orphan string delimiter (" or ') in line 272 No images will be deleted! Correct the problem before next save!"

Could you please help me getting this resolved.

Revision history for this message
RaiMan (raimund-hocke) wrote :

In the line mentioned or the line before there are unpaired " or ' in a comment

By design: When deleting not used images at save, SX also looks into comments for image name strings, since the comment might be a commented script line, that was commented for testing or other purposes, but the image should be kept.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.