ocadotechnology / rapid-router

A Blockly and python based educational game aimed at students age 5-14.
https://www.codeforlife.education
Other
57 stars 81 forks source link

bug: certain lines of code in Python-only levels don't highlight #1703

Open evemartin opened 3 months ago

evemartin commented 3 months ago

Describe the bug Some lines of code in Python-only levels don't highlight, specifically ones to do with incrementing variables and ones that call procedures.

To Reproduce Steps to reproduce the behaviour:

  1. Go to a Python-only level that involves incrementation, i.e. Python Den Level 16

  2. Click "Solve" to get the model solution, then run the model solution

  3. Notice that only the lines of code involving my_van highlight, not the while loop or the other lines controlling count

  4. Go to a Python-only level that involves a procedure, i.e. Python Den Level 57

  5. Click "Solve" to get the model solution, then run the model solution

  6. Notice that the lines of code where the procedure is called don't highlight - once again only the lines of code involving my_van highlight

Expected behaviour Every line of code should highlight while it's running, including the ones to do with incrementing variables or procedures

Screenshots

Private Zenhub Video

Private Zenhub Video