(Never Mind) 50 line limit in Lua Test Editor? -My Mistake

I seem to run into a limit with the test box at about 50 lines of Lua code. I’m working on a function that’s about 40 lines and it works, but if I add print or output lines for testing, it just gives:

? 3/15/2016, 9:13:32 AM Code execution failed ? 3/15/2016, 9:13:32 AM Lua Command execution on vera failed.()

If I take out blank lines to keep the total below 50, it works again.

Just asking if this is intended, or maybe left over from development?

Thanks,

If the text box on the UI allows you to enter more than 50 lines, I find it hard to believe there is a limit in the underlying code. I have reviewed it before and use something similar.

In any case for maintainability for something that large you should look at using a module:
http://forum.micasaverde.com/index.php/topic,33226.0.html

[quote=“RichardTSchaefer, post:2, topic:191600”]If the text box on the UI allows you to enter more than 50 lines, I find it hard to believe there is a limit in the underlying code. I have reviewed it before and use something similar.

In any case for maintainability for something that large you should look at using a module:
http://forum.micasaverde.com/index.php/topic,33226.0.html[/quote]

@RichardTSchaefer

Thanks for the quick reply, and for pointing to a better way. I saw your post about setting up a module before, but had a little trouble understanding it. ??? I’ll spend some time playing and see if I can follow. (Hope you will take questions)

I should have tested a bit more before I posted. I just pasted 3 RexBeckett functions that total about 65 lines, and they run with no problems. Sorry for the false alarm. I knew my code was getting out of hand, really thought it was 50 lines.

So sorry amg0 and all.