Inline script code parsing errors Mac OS X
I gave the Mac OS X version another spin and found out that the code window of the inline script does indeed still do peculiar things to the code you enter to it. For instance, if I write a simple for loop containing:
for n in range(0,20): print n
(In OpenSesame I of course use tabs for indentation, but this does not seem to be possible here)
OpenSesame immediately crashes with the following error message:
Error: Script error Description: Failed to instantiate module 'inline_script' as 'inline_script': Error: Script error Description: Error parsing ' set _run "for n in range(0,20):' in item 'inline_script': No closing quotation
Trying to find out what this means, I tried the following:
print "Starting" for n in range(0,20): print n
Now the error message looks like this:
Traceback (most recent call last): File "libopensesame/inline_script.pyc", line 97, in prepare File "", line 2 or n in range(0,20): ^ SyntaxError: invalid syntax
Sooo, the mac version is indeed still not working as it should...
It seems that (in both cases) OpenSesame doesn't register the character after (or before?) an newline character.
I hope I will have time soon to dive into this a little bit deeper, but as it looks right now, that will be end of October for me. Have you had any other reports of this problem lately?