I am wading into using the IDE Communicator and have already gotten some strange responses using the Tester app provided in the example projects (2025r3.1). I am sending the following script:
Yeah so… IIRC there is context information that’s prepended to your script.
Look at The start and end column…. Column 38 to 44, I believe that’s “user” in the code you posted. Make sure your script doesn’t actually contain curly quotes.
IIRC there is context information that’s prepended to your script.
Is that done inside the script engine or something like that? I don’t see anything being added to the script before it leaves the Tester app.
And if so, how can I reliably interpret any error location that is returned? Do I always just add one to whatever line number is returned and then use the column values?
Make sure your script doesn’t actually contain curly quotes.
That’s the TextArea automatically converting to smart quotes when I type . I added some code to fix that and it’s working.
Remember, the underlying engine is still just xojoscript and all it sees is a single script + the context (in this case, supplied by the IDE itself). IIRC the reason XojoVersion is declared as a constant is for compatibility, speed and so comparisons don’t break because it’s a “double”.