org-caldav
org-caldav copied to clipboard
Error in org-caldav-generate-ics after org update
I recently updated my org package after a while, and encountered the following error when trying to sync by org files with my nextcloud server:
"Invalid version syntax: ‘’ (must start with a number)
The backtrace gave me the following information:
Debugger entered--Lisp error: (error "Invalid version syntax: ‘’ (must start with a number)")
signal(error ("Invalid version syntax: ‘’ (must start with a number)"))
error("Invalid version syntax: `%s' (must start with a number)" "")
version-to-list("")
version<("" "8.3beta")
org-caldav-generate-ics()
#f(compiled-function () #<bytecode 0x188e1fd>)()
funcall(#f(compiled-function () #<bytecode 0x188e1fd>))
(let ((org-caldav-inbox (quote "~/private/nextcloud/org/org-caldav/org-work-inbox.org")) (org-caldav-files (quote ("~/private/nextcloud/org/work/work.org"))) (org-caldav-calendar-id (quote "org-work"))) (funcall (quote #f(compiled-function () #<bytecode 0x188e1fd>))))
eval((let ((org-caldav-inbox (quote "~/private/nextcloud/org/org-caldav/org-work-inbox.org")) (org-caldav-files (quote ("~/private/nextcloud/org/work/work.org"))) (org-caldav-calendar-id (quote "org-work"))) (funcall (quote #f(compiled-function () #<bytecode 0x188e1fd>)))))
org-caldav-sync-calendar((:calendar-id "org-work" :files ("~/private/nextcloud/org/work/work.org") :inbox "~/private/nextcloud/org/org-caldav/org-work-inbox.org"))
org-caldav-sync()
funcall-interactively(org-caldav-sync)
call-interactively(org-caldav-sync nil nil)
command-execute(org-caldav-sync)
I traced it dow to line 1319 in org-caldav.el. When replacing (if (version< org-version "8.3beta")
by (if nil)
and re-evaluating the expression, the sync worked again.
I am using org 9.4.4 and org-caldav 20200510.2030.
Seems to be known and solved in the next org release: https://orgmode.org/list/[email protected]/