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

data did not match any variant of untagged enum OneOrMany #239

Open
ernieIzde8ski opened this issue Oct 16, 2024 · 0 comments
Open

data did not match any variant of untagged enum OneOrMany #239

ernieIzde8ski opened this issue Oct 16, 2024 · 0 comments

Comments

@ernieIzde8ski
Copy link

Hi, I'm filing an issue because although I spotted my syntax error, the error message is unhelpful:

  milkmoney:
    type: Video
    title: "Milk Money"
    # ...
    parent:
      title: "Rotten"
-     publisher: ["Zero Point Zero Production", "Netflix"]
+     publisher: Zero Point Zero Production; Netflix

This syntax is in line with the syntax for author, names, editor, and I don't know what else, so it's an easy mistake to make. The error also doesn't point to an obvious answer—no idea why it says line 2, column 3, which is where type is.

[1] ernie@vivec::factchecking% ~/.local/share/cargo/bin/typst compile milk-money-review.typ
error: failed to parse YAML (milkmoney: data did not match any variant of untagged enum OneOrMany at line 2 column 3)
   ┌─ milk-money-review.typ:89:14
   │
89 │ #bibliography("milk-money-bibliography.yml", full: true)
   │               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Process exited with code 1
[1] ernie@vivec::factchecking% ~/.local/share/cargo/bin/typst --version
typst 0.11.1 (unknown hash)

typst was installed today via cargo install --locked typst-cli

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

No branches or pull requests

1 participant