org-caldav icon indicating copy to clipboard operation
org-caldav copied to clipboard

Sync not working anymore after org-caldav-delete-everything

Open fapdash opened this issue 4 years ago • 2 comments

I ran org-caldav-sync with org-caldav-inbox not configured, so it put my entries into the wrong file. After that I deleted the synced file via org-caldav-delete-everything and restarted emacs. Now every time I try to sync it says:

CalDAV Sync finished.

Nothing was done.

After sync I have a file in my org-caldav-save-directory:

;; This is the sync state from org-caldav
;; calendar-id: [email protected]
;; Do not modify this file.

(setq org-caldav-event-list
'nil)

(setq org-caldav-previous-files '("~/org/appointments.org"))

~/org/appointments.org doesn't exist.

My config:

(use-package org-caldav
  :ensure t
  :init
  (setq org-caldav-url 'google
          org-caldav-calendar-id "[email protected]"
          org-icalendar-timezone "Europe/Berlin"
          org-caldav-sync-direction 'cal->org
          org-caldav-inbox (concat org_todo "/vogella_caldav_gcal.org")
          org-caldav-save-directory org_todo)
  (load-library "~/repos/dotfiles/emacs/org-gcal-secrets.el.gpg"))

What I've tried so far:

  • restarting Emacs
  • running org-caldav-delete-everything
  • deleting the sync state file in the current org-caldev-save-directory manually
  • deleting .emacs.d/oauth2.plstore

But still the same problem. Does org-caldav cache some additional information somwhere that I'm not aware of?

fapdash avatar Jul 08 '21 11:07 fapdash

Same problem

tigger04 avatar Jul 21 '23 23:07 tigger04

I've tried to get org-caldav working 3 times over the last year, each time ending in disappointment and lengthy fishing out of those superfluous property box IDs littered all over my org files. A compromise I could live with if the thing ever worked.

I've been around the houses looking for some way of syncing orgmode with caldav over the last 2 years and I think I'm about to give up on orgmode entirely. It's just too old of a technology and Ive literally spend hundreds of hours writing elisp and bash scripts to get it in to my workflow. Perhaps it's time to give up and admit this old beast just doesn't want to integrate with modern tooling despite the best efforts of these well-meaning OSS projects.

Any recommendations for some note-taking app that plays nicely with caldav for tasks and calendar events?

tigger04 avatar Sep 19 '23 19:09 tigger04