psychopy.org | Reference | Downloads | Github

Coder view keeps adding codes that are not in code components

Hi,

I added some code components to save some variables and add them to my data. Like so:

But when I run the experiment I get this error:

image

This is the part in the coder view where it throws the error:

I deleted line 737 a few times but whenever I make a change in the builder view it just automatically comes back.
Why might that be?

Are you editing in the coder view or Builder view?

I never edit a Builder experiment in coder because if you make a change in the coder component you can’t go back to the Builder view for that experiment.

Best wishes,

Wakefield

I didn’t originally edit anything in the coder view. But when I run the experiment there were lines as if I added them in a code component so that’s why I edited in coder.