-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] block in block error message should not show without repeat/if #3270
Comments
Also for @boryanagoncharenko ? |
@Felienne What errors should we display to the user in both cases? In the first error, instead of The second error cannot be replicated anymore. Now we show the message |
Yes, I think
Ah I guess @akseron fixed that already (or maybe I did it?)
Yeah I agree that final sentence can be removed in this case! But maybe not in all cases? I am not sure if there are cases where it should remain. What do you think? |
Yes I remember looking at it, however it was already solved in #4351 😄 |
Fixes #3270 Level 8 introduces indentation and allows single blocks while later levels allow nested blocks. Therefore, level 8 requires slightly different error messages. Please consider whether the error messages could have better text. **How to test** Run Hedy locally and run the following snippets in level 8. The error messages should be meaningful and should not mention 'block in a block': ``` print 'test' print 'Hello folks' ``` ``` repeat 5 times print 'Hello folks' ``` ``` repeat 5 times print 'test' print 'Hello folks' ``` ``` repeat 5 times print 'test' print 'Hello folks' ``` ``` repeat 5 times print 'test' print 'Hello folks' ```
Describe the bug
A block in a block error is given when we do not use a repeat.
Paste the Hedy code & level
Level 7
Add a screenshot (optional)
The text was updated successfully, but these errors were encountered: