sugarlabs / turtleart-activity

A block-based Logo programming environment
MIT License
18 stars 54 forks source link

Reverse interactive mode test in __run_stack #59

Closed quozl closed 6 years ago

quozl commented 6 years ago

Walter said;

you do not want to find value blocks in non-interactive mode

See also

https://github.com/sugarlabs/activity-turtle-confusion/pull/4/commits/ebd529bcb4632fe0a6a8191f9587e1dab892d3e6

https://github.com/sugarlabs/activity-turtle-confusion/pull/4

Reported-by: Yash Agrawal yagrawal900@gmail.com Signed-off-by: James Cameron quozl@laptop.org

quozl commented 6 years ago

@walterbender, please review? I'm holding this in my branch of Confusion and it keeps coming up as I compare with @yashagrawal3's branch of Confusion.

walterbender commented 6 years ago

Traceback (most recent call last): File "/home/walter/Activities/quozl-turtle.activity/TurtleArt/talogo.py", line 627, in doevalstep self.step.next() File "/home/walter/Activities/quozl-turtle.activity/TurtleArt/talogo.py", line 596, in _evalsym result = self.cfun.fcn(self, self.arglist) File "/home/walter/Activities/quozl-turtle.activity/TurtleArt/taprimitive.py", line 325, in call new_prim.call_afterwards(new_args, **new_kwargs) File "/home/walter/Activities/quozl-turtle.activity/TurtleArt/tabasics.py", line 1311, in after_move self.tw.coord_scale) File "/home/walter/Activities/quozl-turtle.activity/TurtleArt/talogo.py", line 1097, in update_label_value for block in self.value_blocks_to_update[name]: AttributeError: LogoCode instance has no attribute 'value_blocks_to_update'

walterbender commented 6 years ago

I trigger the above error by running in slow mode (snail) with the blocks visible.

quozl commented 6 years ago

'k, thanks. I've no idea. I'll pull back.