Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create-author crashes UCM unless you've got base or run builtins.mergeio #4594

Open
ChrisPenner opened this issue Jan 8, 2024 · 0 comments

Comments

@ChrisPenner
Copy link
Contributor

ChrisPenner commented Jan 8, 2024

This one-line transcript crashes on a fresh codebase:

```ucm
.> create.author alicecoder "Alice McGee"
```

It crashes with:

Here's a stringy rendering of the exception:

  SqliteQueryException {sql = "SELECT object.id FROM object JOIN hash ON object.primary_hash_id = hash.id WHERE hash.base32 = ? COLLATE NOCASE", params = [SQLText "saimo18uuvgf25t4e09mjej4d3nui36vdgj6h3bf8i6aensnejrv2n2fscpf3gp8a4ble371tkeq6i7d755iogplqil9bk1d9b0jh78"], exception = ExpectedExactlyOneRowException {rows = "[]"}, callStack = [], connection = Connection { name = "main", file = "/private/var/folders/y6/hrl0s0q93lb8h9skglplrqsw0000gn/T/transcript-912277ad48bd3533/.unison/v2/unison.sqlite3" }, threadId = ThreadId 21}

So I'm guessing something is expecting to find something from BuiltinsIO that hasn't been added to the codebase yet.

If you builtins.mergeio first it works okay.

Regardless of how we want to implement this, it probably shouldn't completely crash 😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants