Hello, I see here is a bug, for a simple code but with typo, like
out.wook = 1
I get error message unknown signal. Once I fix it to out.wood = 1 and save the code, the error doesn't disappear. I need to clear all code and click save to remove error message. After that I can paste back the correct code. Please check it. Thank you.
Hi.
It's not exactly bug, as "out" table is supposed to be persistent like that, i.e. if you put "wook" in there, it'll stay until you clear it up.
But don't think it's useful to keep invalid signals there, as they are not displayed in the window either, so can be confusing like that.
Or hmm... actually, maybe it'd be better just to display these in the right panel, as lua code might be setting this signal only once, and if it gets silently cleared up, you'll never know there was an error, as it won't be there next tick or whatever, but keeping and showing it properly should make it perfectly clear.
Should be fixed in 0.0.41 - invalid signals stuck in output table will be displayed in the gui on the right, after all other signals, with special prefix and color.
They can be invalid for various reasons, e.g. invalid name, wrong value type, number out of range, etc, and can still be used in the code, despite causing the error if left in that table.
Thanks for reporting!