Open zellyn opened 3 months ago
Hi @zellyn!
Thanks for the message and the kind words! Music is a bit new so the errors are not as well developed as they could be. What you see here is a parse error, but what could do to make this better is to add an error production, not sure how familiar you are with compiler/parser technology, this might not be enough info for you?
The idea is to add an extra rule to catch this and to present an error based on that.
Here is a PR that also adds a new error production, maybe that helps as an inspiration: https://github.com/hedyorg/hedy/pull/5177/files#diff-3de13d718733aaa612bf35f9750f41c325f7be6f1df0030b4ad029406ca0276b
If not, do feel free to reach out!
Describe the bug In an attempt to play the first few notes of "Twinkle, twinkle little star", I entered:
The error message was misleading/unhelpful:
screenshot
I'm a professional programmer, exploring Hedy after listening to the latest CoRecursive podcast: if this fix would be within the bounds of the existing error message generation, feel free to just point me in the right direction and I'll send a PR. I love what you're doing!