Skip to content

Unique constraint violation in init causes unhelpful error generating bindings #3492

@PastelStoic

Description

@PastelStoic

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions