#1
by
the_dirk
Hi, I ran into the following problem after downloading code which had worked perfectly fine before. Usually, otree studio autofills lines of code such as - "session = subsession.session" in "def creating_session(subsession):" - "participant = player.participant" in "def app_after_this_page(player, upcoming_apps):" - etc. Now, I get error messages due to undefined names (attached screenshot shows this for creating session). The error messages disappear once I manually write the lines of code mentioned above (second attached screenshot shows what this looks like in studio). This means that I would need to manually copy-paste these lines into every signle page of every single otree project. Is this an intended change or will there be a fix? And if I change this now and it gets fixed at a later date, will I get errors all over again (name '...' already defined)? Cheers Dirk
#2
by
fabilous
Same here. Thanks for clarification :)
#3
by
Chris_oTree
Hi, it should be fixed now. Thanks for reporting this issue.
#4
by
the_dirk
Hi Chris, the issue is fixed indeed. Thank you for taking care of it! Best Dirk