kidd / org-gcal.el

Org sync with Google Calendar. (active maintained project as of 2019-11-06)
432 stars 47 forks source link

Incomplete calendar sync for single calendar #251

Open cashpw opened 1 month ago

cashpw commented 1 month ago

Similar issue: #151.

Expected behavior

org-gcal-fech fetches all events.

Actual behavior

org-gcal-fech fetches 247/322 events and I need to re-run org-gcal-fetch to get the remainder.

My configuration

Also see my full Emacs configuration.

;; Set fetch-file-alist, etc to avoid warning messages.
...
(use-package! org-gcal
  :custom
  (plstore-cache-passphrase-for-symmetric-encryption t)
  (org-gcal-up-days 1)
  (org-gcal-down-days 8)
  (org-gcal-remove-cancelled-events t)
  (org-gcal-remove-events-with-cancelled-todo t)
  ;; See https://github.com/kidd/org-gcal.el/issues/172
  (org-gcal-auto-archive nil)
  (org-gcal-recurring-events-mode 'top-level)

  :config
  (org-gcal-reload-client-id-secret)
  ;; My own code to set :SCHEDULED:, effort, categories, etc
  (add-hook!
   'org-gcal-after-update-entry-functions
   ;; #'cashpw/org-gcal--set-effort
   #'cashpw/org-gcal--set-scheduled
   #'cashpw/org-gcal--set-category
   #'cashpw/org-gcal--maybe-create-todo-extract-reminder
   #'cashpw/org-gcal--maybe-handle-sleep
   #'cashpw/org-gcal--maybe-create-prep-meeting)
  (add-hook
   'org-gcal-after-update-entry-functions
   #'cashpw/org-gcal--set-processed
   ;; Add to end of list of functions
   100)
  (add-hook!
   'org-gcal-fetch-event-filters
   #'cashpw/org-gcal--filter-summaries
   #'cashpw/org-gcal--event-not-declined-by-me-p))