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

Asked by matteoa on 2018-10-19

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2018-10-24
Last query:
2018-10-24
Last reply:
2018-10-19
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.

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.

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

matteoa (matteoa) said : #4

Thanks RaiMan, that solved my question.

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.

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

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)