IronBlock icon indicating copy to clipboard operation
IronBlock copied to clipboard

ApplicationException when undeclared variable is used

Open Amboryus opened this issue 3 years ago • 3 comments

The block "math_change" worked not as aspected.

Here is the error message: image

Here is my Example xml: TestResult.txt

I get the error message when i run your unit test with this formular, too.

Originally posted by @Amboryus in https://github.com/richorama/IronBlock/issues/53#issuecomment-956159753

Amboryus avatar Nov 01 '21 11:11 Amboryus

Thank you for posting this error. I believe this is because the 'TestResult' variable is not declared in your blockly program. This is a case that IronBlock currently doesn't handle. I will add support for it.

richorama avatar Nov 01 '21 15:11 richorama

Thank for your quick answer!

The variable "TestResult" is still declared. When i remove "math_change" from the formular "TestResult" can be handled.

image

Amboryus avatar Nov 01 '21 16:11 Amboryus

hmm, I wonder if it's a scope problem - I'll continue to investigate...

richorama avatar Nov 01 '21 17:11 richorama