Re: org-caldav-sync hangs
In your debug backtrace, the ID of the entry causing difficulties was given. Could you check out this entry to see if it is strange in some way? Maybe remove it (temporarily) from your org file and see if the sync operation works? -- : Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-705-gea9463
Re: org-caldav-sync hangs
> On Thu, 13 Aug 2020 11:00:34 +0200, "Loris Bennett" > said: Loris> Thanks for the suggestions. Unfortunately all the relevant Org file Loris> pass linting and regenerating .org-id-locations didn't help. Loris> What I do occasionally see is this error: Loris> up-list: Scan error: "Unbalanced parentheses", 388, 126 Loris> However I don't even know whether this is coming from Org or not, so I Loris> can't tell whether it is relevant. (setq debug-on-message "Unbalanced parentheses") Robert
Re: org-caldav-sync hangs
Hi Eric, Eric S Fraga writes: > On Monday, 10 Aug 2020 at 14:47, Loris Bennett wrote: >> 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: > > I had this problem in the past, or something similar. I found that I > had to run org-lint on all my relevant files. Some of my files had the > properties drawer in the wrong place (things have changed along the way > with respect to where org expects these to be). Once I fixed them, > everything has worked smoothly. I also use org-caldav-sync with a > nextcloud instance. > > Just in case, and grasping at straws, another possibility may be that > the file which keeps track of org IDs (~/.emacs.d/.org-id-locations on > my system) has ended up inconsistent with your actual org files. You > may be able to delete that file (make a copy in case I'm wrong) and it > should be re-generated. Thanks for the suggestions. Unfortunately all the relevant Org file pass linting and regenerating .org-id-locations didn't help. What I do occasionally see is this error: up-list: Scan error: "Unbalanced parentheses", 388, 126 However I don't even know whether this is coming from Org or not, so I can't tell whether it is relevant. Cheers, Loris -- This signature is currently under construction.
Re: org-caldav-sync hangs
On Monday, 10 Aug 2020 at 14:47, Loris Bennett wrote: > 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: I had this problem in the past, or something similar. I found that I had to run org-lint on all my relevant files. Some of my files had the properties drawer in the wrong place (things have changed along the way with respect to where org expects these to be). Once I fixed them, everything has worked smoothly. I also use org-caldav-sync with a nextcloud instance. Just in case, and grasping at straws, another possibility may be that the file which keeps track of org IDs (~/.emacs.d/.org-id-locations on my system) has ended up inconsistent with your actual org files. You may be able to delete that file (make a copy in case I'm wrong) and it should be re-generated. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-705-gea9463
org-caldav-sync hangs
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("04008200E00074C5B7101A82E00858FD669EF11ED6011000569400313380EA48ADA6B07C1CF71CF8" t) org-caldav-generate-md5-for-org-entry("04008200E00074C5B7101A82E00858FD669EF11ED6011000569400313380EA48ADA6B07C1CF71CF8") 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.