Skip to content

VALARM in VEVENT: no function clause matching in Magical.Parser.EventParser.parse_event/2 #1

@apiontek

Description

@apiontek

Tried this out on a Google Calendar export. VEVENT can contain VALARM that seems to be unhandled. Such items elicit FunctionClauseError:

** (FunctionClauseError) no function clause matching in Magical.Parser.EventParser.parse_event/2                                              (magical 1.0.1) lib/magical/parser/event_parser.ex:13: Magical.Parser.EventParser.parse_event([{"begin", "VALARM", %{}}, {"action", "DISPLAY", %{}}, {"trigger", "-P0DT2H0M0S", %{}}, {"description", "This is an event reminder", %{}}, {"end", "VALARM", %{}}], %Magical.Event{uid: "xxxxxxxxxxxxxxxxxxxxxxxxxx@google.com", summary: "Meeting summary", description: "<a href=\"https://url/for/event\">https://url/for/event</a>", dtstamp: ~U[2024-11-16 17:43:48Z], location: nil, dtstart: ~U[2024-04-04 14:00:00Z], dtend: ~U[2024-04-04 14:30:00Z], class: nil, created: ~U[2024-03-21 20:27:46Z], geo: nil, last_modified: ~U[2024-03-21 20:27:46Z], organizer: nil, priority: nil, seq: nil, status: "CONFIRMED", transp: "OPAQUE", url: nil, recurid: nil, rrule: nil, attach: nil, attendee: nil, categories: nil, comment: nil, contact: nil, exdate: nil, rstatus: nil, related: nil, resources: nil, rdate: nil})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions