Closed KemGus closed 5 months ago
@outputs Recieve:number [One, Two, Three, Four, Five, Six, Seven]:number #[Radio inputs]#
You are not supposed to write down the variables in this format when grouping them with brackets.
This would be the intended "correct" format:
@outputs Recieve:number [One Two Three Four Five Six Seven]:number #[Radio inputs]#
But this would probably also "work", because of how the internal pre-processor handles the variable names:
@outputs Recieve:number [One,Two,Three,Four,Five,Six,Seven]:number #[Radio inputs]#
So basically either use Spaces only or Commas only, but not both.
Besides that, this still should not throw a Lua error, so the issue in general is still relevant. For some reason PreProcessor:ConvertDescriptions(portstbl) receives a nil value, even though it is only being called on Lines 392-393 by PreProccesor:Proccess and the nil-check block on Lines 367-379 should make sure this doesn't happen. Needs further investigation.
The error comes from including a file with any directives in it.
The error occurs because E2Lib.PreProcessor.Execute
can return either PPDirectives
or Error[]
as its second argument and the validate action does not check if an error occurred before trying to include the file.
Error:
Relevant code: