Tutorial Validation Does Not Rendering pxt_controls_for Blocks
Open
@shakao is already working on this.
Since Jun 18, 2021.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 641
- Avg merge
- 12h 4m
- Merged PRs (30d)
- 57
Description
Describe the bug
For tutorial validation, for loop blocks cannot be rendered in the validation message. In tutorialCodeValidation.tsx's method getRuleBlocksAsync, symbol in const symbol = blocksInfo.blocksById[id]; is undefined, and so the block doesn't get rendered.
To Reproduce
Steps to reproduce the behavior:
- Download 'Magical Fishes file from the Yelm OneNote on Tutorial Validation or modify any tutorial and add to any step (Make sure tutorial validation is turned on and required is enabled in the rules) or create a tutorial step that uses a for loop block.
```requiredTutorialBlock
for (let index = 0; index <= 4; index++) {
}
```~
- Once the tutorial is loaded and you're on the step with a 'for-loop' block, click the 'Next' Button.
Expected behavior
You should see the validation message with no 'for-loop' block rendered
Screenshots


Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.