Minivera/FocusTreeAndEventManager

Cannot use certain characters while typing

Closed this issue · 1 comments

App24 commented

While trying to code, I put a '{' or '}' or '=' and gives this error
capture

This is caused by the code editor checking after EVERY key press if the script can be parsed. The parser is meant to throw an exception if the code has syntax errors (Not closing brackets for example), hence the .First rather than .FirstOrDefault.

Beta_3_a will change the parsing check after return is pressed and will change the InvalidOperationException to a syntax error, preventing any crashes. You can try it in the beta_3_a branch.

I'm leaving this issue open until release.