It took a while to hunt down the source of this. Rather than an error message, trying to generate bindings gave me the unhelpful message EOF while parsing a value at line 1 column 0 with no other details. I resorted to rolling back one commit at a time, then deleting individual lines until I found the part where the error occurred.
To reproduce: create a table with a unique column, then use table.insert to make two entries with duplicate keys. Not a bug, but the error message indicates a parsing error rather than a module runtime error.
I suggest adding help info to the bindings command when this happens, saying that one or more reducers experienced a fatal error.
It took a while to hunt down the source of this. Rather than an error message, trying to generate bindings gave me the unhelpful message
EOF while parsing a value at line 1 column 0with no other details. I resorted to rolling back one commit at a time, then deleting individual lines until I found the part where the error occurred.To reproduce: create a table with a unique column, then use table.insert to make two entries with duplicate keys. Not a bug, but the error message indicates a parsing error rather than a module runtime error.
I suggest adding help info to the bindings command when this happens, saying that one or more reducers experienced a fatal error.