emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Loris Bennett" <loris.bennett@fu-berlin.de>
To: emacs-orgmode@gnu.org
Subject: org-caldav-sync hangs
Date: Mon, 10 Aug 2020 14:47:59 +0200	[thread overview]
Message-ID: <87v9hqekg0.fsf@hornfels.zedat.fu-berlin.de> (raw)

Hi,

The following used to work ca. 6-8 weeks ago to work and allow me to
synchronise events in an Org file with a calendar provided by a
Nextcloud instance:
 
  (defun lb/caldav-sync-fu ()
    (interactive)
    (let ((org-caldav-inbox "~/org/calendar_fu.org")
	  (org-caldav-url "https://box.fu-berlin.de/remote.php/dav/calendars/loris")
	  (org-caldav-calendar-id "work")
	  (org-caldav-files nil))
      (call-interactively 'org-caldav-sync)))

However, at some point this stopped working and causes Emacs to hang.
When I interrupt the process, the debug output looks like this:

Debugger entered--Lisp error: (quit)
  looking-at("^[ \011]*\n[ \011]*\n")
  org-element--list-struct(178045)
  org-element--current-element(178045 element nil nil)
  org-element--parse-to(173969)
  org-element-at-point()
  org-element-context()
  #f(compiled-function (specific end ts) #<bytecode 0x36584ed>)(nil 178045 nil)
  org-entry-properties(nil)
  org-cached-entry-get(nil "ID")
  (or (org-cached-entry-get nil "ID") "")
  (org-string<> (or (org-cached-entry-get nil "ID") "") "")
  (and (org-string<> (or (org-cached-entry-get nil "ID") "") ""))
  (or (and (org-string<> (or (org-cached-entry-get nil "ID") "") "")))
  (progn (setq org-cached-props nil) (or (and (org-string<> (or (org-cached-entry-get nil "ID") "") ""))))
  (lambda (todo tags-list level) (progn (setq org-cached-props nil) (or (and (org-string<> (or (org-cached-entry-get nil "ID") "") "")))))("TODO" (#("office" 0 6 (inherited t))) 3)
  org-scan-tags(#f(compiled-function () #<bytecode 0x30a1dd5>) (lambda (todo tags-list level) (progn (setq org-cached-props nil) (or (and (org-string<> (or (org-cached-entry-get nil "ID") "") ""))))) nil nil)
  org-map-entries(#f(compiled-function () #<bytecode 0x30a1dd5>) "ID<>\"\"")
  org-id-update-id-locations(nil t)
  org-id-find("040000008200E00074C5B7101A82E0080000000058FD669EF11ED601000000000000000010000000569400313380EA48ADA6B07C1CF71CF8" t)
  org-caldav-generate-md5-for-org-entry("040000008200E00074C5B7101A82E0080000000058FD669EF11ED601000000000000000010000000569400313380EA48ADA6B07C1CF71CF8")
  org-caldav-update-eventdb-from-org(#<buffer org-caldav-4TH4ol>)
  #f(compiled-function () #<bytecode 0x1841c31>)()
  funcall(#f(compiled-function () #<bytecode 0x1841c31>))
  (let nil (funcall '#f(compiled-function () #<bytecode 0x1841c31>)))
  eval((let nil (funcall '#f(compiled-function () #<bytecode 0x1841c31>))))
  org-caldav-sync-calendar()
  org-caldav-sync()
  funcall-interactively(org-caldav-sync)
  call-interactively(org-caldav-sync)
  (let ((org-caldav-inbox "~/org/calendar_fu.org") (org-caldav-url "https://box.fu-berlin.de/remote.php/dav/calendars/loris") (org-caldav-calendar-id "work") (org-caldav-files nil)) (call-interactively 'org-caldav-sync))
  lb/caldav-sync-fu()
  funcall-interactively(lb/caldav-sync-fu)
  call-interactively(lb/caldav-sync-fu record nil)
  command-execute(lb/caldav-sync-fu record)
  execute-extended-command(nil "lb/caldav-sync-fu" nil)
  funcall-interactively(execute-extended-command nil "lb/caldav-sync-fu" nil)
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

Does anyone have any ideas about where things could be going wrong?

I'm using 

  GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5)
  Org mode version 9.3.7 (9.3.7-18-g093b47-elpa @ /home/loris/.emacs.d/elpa/org-20200810/)

Cheers,

Loris

-- 
This signature is currently under construction.



             reply	other threads:[~2020-08-10 12:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-10 12:47 Loris Bennett [this message]
2020-08-10 14:02 ` org-caldav-sync hangs Eric S Fraga
2020-08-13  9:00   ` Loris Bennett
2020-08-13  9:19     ` Robert Pluim
2020-08-13 10:35     ` Eric S Fraga

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=87v9hqekg0.fsf@hornfels.zedat.fu-berlin.de \
    --to=loris.bennett@fu-berlin.de \
    --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).