all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-caldav-sync hangs
@ 2020-08-10 12:47 Loris Bennett
  2020-08-10 14:02 ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Loris Bennett @ 2020-08-10 12:47 UTC (permalink / raw)
  To: emacs-orgmode

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.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-caldav-sync hangs
  2020-08-10 12:47 org-caldav-sync hangs Loris Bennett
@ 2020-08-10 14:02 ` Eric S Fraga
  2020-08-13  9:00   ` Loris Bennett
  0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2020-08-10 14:02 UTC (permalink / raw)
  To: Loris Bennett; +Cc: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-caldav-sync hangs
  2020-08-10 14:02 ` 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
  0 siblings, 2 replies; 5+ messages in thread
From: Loris Bennett @ 2020-08-13  9:00 UTC (permalink / raw)
  To: Org Mode Mailing List

Hi Eric,

Eric S Fraga <e.fraga@ucl.ac.uk> 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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-caldav-sync hangs
  2020-08-13  9:00   ` Loris Bennett
@ 2020-08-13  9:19     ` Robert Pluim
  2020-08-13 10:35     ` Eric S Fraga
  1 sibling, 0 replies; 5+ messages in thread
From: Robert Pluim @ 2020-08-13  9:19 UTC (permalink / raw)
  To: Loris Bennett; +Cc: Org Mode Mailing List

>>>>> On Thu, 13 Aug 2020 11:00:34 +0200, "Loris Bennett" <loris.bennett@fu-berlin.de> 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-caldav-sync hangs
  2020-08-13  9:00   ` Loris Bennett
  2020-08-13  9:19     ` Robert Pluim
@ 2020-08-13 10:35     ` Eric S Fraga
  1 sibling, 0 replies; 5+ messages in thread
From: Eric S Fraga @ 2020-08-13 10:35 UTC (permalink / raw)
  To: Loris Bennett; +Cc: Org Mode Mailing List

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-08-13 10:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-10 12:47 org-caldav-sync hangs Loris Bennett
2020-08-10 14:02 ` 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.