emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tractatus <51183341@gmx.at>
To: emacs-orgmode@gnu.org
Subject: org-caldav: VTODO entries without DTSTART
Date: Fri, 22 May 2015 09:16:30 +0200	[thread overview]
Message-ID: <20150522091630.72cc7a8b@valun> (raw)

Hello,

I am testing syncing my ical files via Radicale CalDAV Server to org
usinf org-caldav. For some files I get an error "Format specifier
doesn't match argument type". [2]

In my ical files generated by Mozilla Icedove are VTODO entries [1]
without a DTSTART field. [1] I think this causes the error.
Since I do not care to sync VTODO'S is there a way to filter them out
before they are processed? Can this error be avoided?

The code seems to try to deal with missing dtstarts:
https://github.com/dengste/org-caldav/blob/master/org-caldav.el#L1198
but the error seems to occur before that:
https://github.com/dengste/org-caldav/blob/master/org-caldav.el#L1175


[1]
BEGIN:VTODO
CREATED:20150522T053330Z
LAST-MODIFIED:20150522T053352Z
DTSTAMP:20150522T053352Z
UID:b3a0257d-cf04-4675-825d-f47b802e5838
SUMMARY:test TODO
X-RADICALE-NAME:b3a0257d-cf04-4675-825d-f47b802e5838.ics
END:VTODO

[2]
Debugger entered--Lisp error: (error "Format specifier doesn't match
argument type") format("%02d:%02d" "nil" nil)
  icalendar--datetime-to-colontime(nil)
  (let* ((calendar-date-style ...) (ical-list ...) (e ...)
(zone-map ...) (dtstart ...) (dtstart-zone ...) (dtstart-dec ...)
(start-d ...) (start-t ...) (dtend ...) (dtend-zone ...)
(dtend-dec ...) (dtend-1-dec ...) end-d end-1-d end-t (summary ...)
(description ...) (rrule ...) (rdate ...) (duration ...)) (if (and
dtstart ...) (setq start-t nil)) (when duration (let ... ... ... ...))
(setq end-d (if dtend-dec ... start-d)) (setq end-1-d (if
dtend-1-dec ... start-d)) (setq end-t (if ... ... start-t)) (list
start-d start-t (if end-t end-d end-1-d) end-t summary description))
org-caldav-convert-event()

                 reply	other threads:[~2015-05-22  7:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150522091630.72cc7a8b@valun \
    --to=51183341@gmx.at \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).