dengste / org-caldav

Caldav sync for Emacs orgmode
GNU General Public License v3.0
724 stars 105 forks source link

UID matching error SC-(uid) as SC(uid) #175

Closed SSD2019 closed 5 years ago

SSD2019 commented 5 years ago

The first sync is successful, but future updates are not synced because it cannot find the matching UID. It seems to be not able to correctly remove SC- from the calendar UID.

Generated ICS output

BEGIN:VEVENT DTSTAMP:20190502T020623Z UID:SC-917c1600-f4d0-4842-9f6c-440d5bcedbe2
DTSTART;VALUE=DATE:20190504 DTEND;VALUE=DATE:20190505 SUMMARY:S: Account CATEGORIES:TODO END:VEVENT

Debugger entered--Lisp error: (error #("Could not find UID SC917c1600-f4d0-4842-9f6c-440d5bcedbe2." 21 57 (ws-butler-chg chg))) signal(error (#("Could not find UID SC917c1600-f4d0-4842-9f6c-440d5bcedbe2." 21 57 (ws-butler-chg chg)))) error("Could not find UID %s." #("SC917c1600-f4d0-4842-9f6c-440d5bcedbe2" 2 38 (ws-butler-chg chg))) org-caldav-generate-md5-for-org-entry(#("SC917c1600-f4d0-4842-9f6c-440d5bcedbe2" 2 38 (ws-butler-chg chg))) org-caldav-update-eventdb-from-org(#)

[nil "\306\307 !C\"\310\211\2035

SSD2019 commented 5 years ago

The problem was in my own setup. I had a hook for org-icalendar-after-save-hook to trigger 'toDOS' for my previously google calendar integration of (ICS->Dropbox->google app script to sync ICS to calendar) Now Caldav works perfectly! Thanks.