Re: [O] org-caldav problem; used to work
Detlef Steuer writes: org-check-agenda-file: Wrong type argument: stringp, nil Do M-x toggle-debug-on-error before the sync and you should get a backtrace for the error. Just post that here and we might be able to see what's going on. -David
Re: [O] org-caldav problem; used to work
Am Sun, 16 Nov 2014 22:53:11 +0100 schrieb David Engster d...@randomsample.de: Detlef Steuer writes: org-check-agenda-file: Wrong type argument: stringp, nil Do M-x toggle-debug-on-error before the sync and you should get a backtrace for the error. Just post that here and we might be able to see what's going on. -David Thx David! Here it is: Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-exists-p(nil) org-check-agenda-file(nil) byte-code(\302!\210r\303!q\210 \203 #[(file) \300\301\215\207 [nextfile (byte-code \302!\210r\303!q\210 \203 mapconcat(#[(file) \300\301\215\207 [nextfile (byte-code \302!\210r\303!q\210 \203 org-icalendar--combine-files(nil ~/Test/Orgmodetest/CaldavKalender/testtodo.org ~/Test/Orgmodetest/CaldavKalender/caldav-inbox.org) apply(org-icalendar--combine-files nil (~/Test/Orgmodetest/CaldavKalender/testtodo.org ~/Test/Orgmodetest/CaldavKalender/caldav-inbox.org)) (if (featurep (quote ox-icalendar)) (apply (quote org-icalendar--combine-files) nil orgfiles) (apply (quote org-export-icalendar) t orgfiles)) (let ((icalendar-file (if (featurep (quote ox-icalendar)) (quote org-icalendar-combined-agenda-file) (quote org-combined-agenda-icalendar-file))) (orgfiles (append org-caldav-files (list org-caldav-inbox))) (org-icalendar-store-UID t) (org-icalendar-include-bbdb-anniversaries nil) (icalendar-uid-format orgsexp-%h) (org-icalendar-date-time-format (cond ((and org-icalendar-timezone (string= org-icalendar-timezone UTC)) :%Y%m%dT%H%M%SZ) (org-icalendar-timezone ;TZID=%Z:%Y%m%dT%H%M%S) (t :%Y%m%dT%H%M%S (set icalendar-file (make-temp-file org-caldav-)) (org-caldav-debug-print 1 (format Generating ICS file %s. (symbol-value icalendar-file))) (if (featurep (quote ox-icalendar)) (apply (quote org-icalendar--combine-files) nil orgfiles) (apply (quote org-export-icalendar) t orgfiles)) (find-file-noselect (symbol-value icalendar-file))) org-caldav-generate-ics() (setq org-caldav-ics-buffer (org-caldav-generate-ics)) (if (and org-caldav-event-list (y-or-n-p Last sync seems to have been aborted. Should I try to resume? )) nil (setq org-caldav-ics-buffer (org-caldav-generate-ics)) (setq org-caldav-event-list nil) (setq org-caldav-sync-result nil) (org-caldav-load-sync-state) (let ((--dolist-tail-- org-caldav-event-list) cur) (while --dolist-tail-- (setq cur (car --dolist-tail--)) (org-caldav-event-set-status cur nil) (setq --dolist-tail-- (cdr --dolist-tail-- (org-caldav-update-eventdb-from-org org-caldav-ics-buffer) (org-caldav-update-eventdb-from-cal)) org-caldav-sync() call-interactively(org-caldav-sync record nil) command-execute(org-caldav-sync record) execute-extended-command(nil org-caldav-sync) call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) Does that help? Detlef
Re: [O] org-caldav problem; used to work
Detlef Steuer detlef.ste...@gmx.de writes: Am Sun, 16 Nov 2014 22:53:11 +0100 schrieb David Engster d...@randomsample.de: Detlef Steuer writes: org-check-agenda-file: Wrong type argument: stringp, nil Do M-x toggle-debug-on-error before the sync and you should get a backtrace for the error. Just post that here and we might be able to see what's going on. -David Thx David! Here it is: Try to remove nil in line 882. I.e.: (apply 'org-icalendar--combine-files orgfiles) —Rasmus -- Enough with the bla bla!
Re: [O] org-caldav problem; used to work
Detlef Steuer writes: Am Sun, 16 Nov 2014 22:53:11 +0100 schrieb David Engster d...@randomsample.de: Detlef Steuer writes: org-check-agenda-file: Wrong type argument: stringp, nil Do M-x toggle-debug-on-error before the sync and you should get a backtrace for the error. Just post that here and we might be able to see what's going on. Here it is: [...] The signature of org-icalendar--combine-files changed in 67ae102b4b. I've pushed a workaround which should fix this. -David
Re: [O] org-caldav problem; used to work
Am Sun, 16 Nov 2014 23:37:48 +0100 schrieb David Engster d...@randomsample.de: The signature of org-icalendar--combine-files changed in 67ae102b4b. I've pushed a workaround which should fix this. Thank you! I can confirm that fixes the reported issue, i.e. my test appointments are exported and show up in the owncloud´s calendar. Fine! But there was a new Problem: A new set of UIDs got created when I edited my test data. (removed the SCHEDLULED key-word) --- Before (result of first test export) * APPT Test1 SCHEDULED: 2014-11-12 Mi 19:00-20:00 :PROPERTIES: :ID: dc432cb8-ab29-4bf0-8ea0-e40ca8e8850d :END: * APPT Test2 SCHEDULED: 2014-11-16 So 23:00-24:00 :PROPERTIES: :ID: ec46076b-e1d9-453b-8e63-317e6ff64b0e :END: * APPT Test3 SCHEDULED: 2014-11-17 Mo 23:00-24:00 :PROPERTIES: :ID: c28a7aa7-9c93-4d94-9f85-d563d933bb35 :END: --- removed SCHEDULED --- After * APPT Test1 :PROPERTIES: :ID: 867c4f4e-9c7f-4d39-9404-f9dadb25edd9 :END: 2014-11-12 Mi 19:00-20:00 :PROPERTIES: :ID: dc432cb8-ab29-4bf0-8ea0-e40ca8e8850d :END: * APPT Test2 :PROPERTIES: :ID: 4961e4b3-cb9b-4247-b4f5-4e27cb2d1ee1 :END: 2014-11-16 So 23:00-24:00 :PROPERTIES: :ID: ec46076b-e1d9-453b-8e63-317e6ff64b0e :END: * APPT Test3 :PROPERTIES: :ID: 5cc68445-4829-4672-863b-3b4bb7346f11 :END: 2014-11-17 Mo 23:00-24:00 :PROPERTIES: :ID: c28a7aa7-9c93-4d94-9f85-d563d933bb35 :END: --- Detlef -David
Re: [O] org-caldav problem; used to work
Am Sun, 16 Nov 2014 23:24:24 +0100 schrieb Rasmus ras...@gmx.us: Detlef Steuer detlef.ste...@gmx.de writes: Am Sun, 16 Nov 2014 22:53:11 +0100 schrieb David Engster d...@randomsample.de: Detlef Steuer writes: org-check-agenda-file: Wrong type argument: stringp, nil Do M-x toggle-debug-on-error before the sync and you should get a backtrace for the error. Just post that here and we might be able to see what's going on. -David Thx David! Here it is: Try to remove nil in line 882. I.e.: (apply 'org-icalendar--combine-files orgfiles) Yeah. Spot-on! Worked, but David`s fix also arrived before I could send this reply. Thx a lot! Detlef —Rasmus
Re: [O] org-caldav problem; used to work
Hello, Detlef Steuer detlef.ste...@gmx.de writes: But there was a new Problem: A new set of UIDs got created when I edited my test data. (removed the SCHEDLULED key-word) --- Before (result of first test export) * APPT Test1 SCHEDULED: 2014-11-12 Mi 19:00-20:00 :PROPERTIES: :ID: dc432cb8-ab29-4bf0-8ea0-e40ca8e8850d :END: [...] removed SCHEDULED A properties drawer needs to be the second element in the entry, planning info being the first, or the first one if there is no planning info. If you remove SCHEDULED:, you also remove planning info only to leave a plain timestamp (in a paragraph, but that doesn't matter here). The properties drawer is no longer correctly located in your entry: it becomes a regular drawer named PROPERTIES. As a consequence, ox-icalendar can no longer recognize entry's ID and creates a new one, correctly located this time, before next export: --- After * APPT Test1 :PROPERTIES: :ID: 867c4f4e-9c7f-4d39-9404-f9dadb25edd9 :END: 2014-11-12 Mi 19:00-20:00 :PROPERTIES: :ID: dc432cb8-ab29-4bf0-8ea0-e40ca8e8850d :END: Long story short: if you remove SCHEDULED:, also move the timestamp /after/ the drawer. Regards, -- Nicolas Goaziou