[1.1.4] opening Sikulix with an error message, then everything works correctly

Asked by matteoa

Hello all,
when I open the 1.1.4 ide, with some projects opened, I have in the message tab this:
[error] EditorRegionButton: createFromString: Problem parsing region expression 3
[error] EditorRegionButton: createFromString: Problem parsing region expression 3
[error] EditorRegionButton: createFromString: Problem parsing region expression 3
[error] EditorRegionButton: createFromString: Problem parsing region expression 3
[error] EditorRegionButton: createFromString: Problem parsing region expression 3

Then everything works correctly, so I have no real problem, what is the meaning of this message(s)?
Thanks in advance

Question information

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

Thanks for posting. I have to check and make the error less mystically ;-)
When revised, I will come back here and ask you to test.

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

I guess, you have something in your script like:
... Region(x, y, w, h) ...

where one of the x-y-w-h is not a number, but a variable.

I have changed the error message to a log message, since the problematic case (creating a Region image) is simply ignored with the error.

The fix will be available with the next build.

Revision history for this message
matteoa (matteoa) said :
#3

Hello,
sorry for delay, I'm in a business trip..
I searched all the projects I have open in the ide and the only uncommented occurrence of the keyword region is this one:
    result = Do.input("Scrivi messaggioAl Server", "messaggio", "Scriviqui", Region(300,300))
and there are other commented occurrences like this one:
            result = Do.input("Scrivi messaggioAl Server", "messaggio", str) #, Region(300,300)
Anyway I do not see any problem running my scripts, so I think I can say that your prompt response answered my question
Thanks

Revision history for this message
matteoa (matteoa) said :
#4

Thanks RaiMan, that solved my question.

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

the definition of a Region is
Region(x, y, w, h)

using Region(300, 300) causes this message, since it cannot be converted into a symbol.

So either make it syntactically correct or live with the message.

Revision history for this message
matteoa (matteoa) said :
#6

Hi,
I took that call from this example:
result = Do.popError("autoclosed after 3 seconds", "Severe Error", 3, Region(300,300))
that is in the Do.input([parameters]) explanation in this page:
https://sikulix-2014.readthedocs.io/en/latest/interaction.html#popups-and-input-dialogs
...I live perfectly also with that message though...
;-)
Thanks

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

ok, thanks.
I have corrected the docs so:

where = Region(0,0,300,300)
result = Do.input("please fill in", "A filename", "someImage.png", where)