From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KAKLCSZCMV87XwAA0tVLHw (envelope-from ) for ; Mon, 10 Aug 2020 12:48:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kKJABSZCMV8CAgAAbx9fmQ (envelope-from ) for ; Mon, 10 Aug 2020 12:48:38 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7013C9402D1 for ; Mon, 10 Aug 2020 12:48:37 +0000 (UTC) Received: from localhost ([::1]:41334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k57EC-0005MC-0C for larch@yhetil.org; Mon, 10 Aug 2020 08:48:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k57Dp-0005Ls-LZ for emacs-orgmode@gnu.org; Mon, 10 Aug 2020 08:48:13 -0400 Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:42180 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k57Dn-0003lJ-FV for emacs-orgmode@gnu.org; Mon, 10 Aug 2020 08:48:13 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1k57Di-0006KP-Qn for emacs-orgmode@gnu.org; Mon, 10 Aug 2020 14:48:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: "Loris Bennett" Subject: org-caldav-sync hangs Date: Mon, 10 Aug 2020 14:47:59 +0200 Message-ID: <87v9hqekg0.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cancel-Lock: sha1:cmCXKrqxB9l1DysSFNYQIxMxI/A= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/10 07:18:02 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.51 X-TUID: +pCwAfXq8KoX 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) #)(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 () #) (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 () #) "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(#) #f(compiled-function () #)() funcall(#f(compiled-function () #)) (let nil (funcall '#f(compiled-function () #))) eval((let nil (funcall '#f(compiled-function () #)))) 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.