Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org-caldav-fix-todo-priority: Search failed: "PRIORITY:" #276

Open
Andrmist opened this issue Aug 10, 2023 · 3 comments
Open

org-caldav-fix-todo-priority: Search failed: "PRIORITY:" #276

Andrmist opened this issue Aug 10, 2023 · 3 comments

Comments

@Andrmist
Copy link

Description

I tried to use org-caldav for the first time. So I've created new calendar in Nextcloud (26.0.3) and tried to create new task using TODO.

**** TODO test
:PROPERTIES:
:ID:       12b1d71b-91ea-40a5-b887-11ad0bfcbaf9
:END:
<2023-08-10 чт>

And it returned this in *Messages*:

"diary.org" 24L, 441C written
Wrote /tmp/org-caldav-gLJRxr
org-caldav-fix-todo-priority: Search failed: "PRIORITY:"

Config

I'm using Doom Emacs v3.0.0-pre
Here's my ~/doom.d/config.el:

(use-package! org-caldav
  :custom
  (org-caldav-save-directory "~/org/.caldav_sync")
  (org-caldav-url "https://cloud.********/remote.php/dav/calendars/qugalet")
  (org-caldav-calendars
  '((:calendar-id "1" :files ("~/org/diary.org")
     :inbox "~/org/from_calendar.org")
    ))
  (org-icalendar-include-todo t)
)

/tmp/org-caldav-gLJRxr:

BEGIN:VEVENT
DTSTAMP:20230810T194858Z
UID:12b1d71b-91ea-40a5-b887-11ad0bfcbaf9
DTSTART;VALUE=DATE:20230810
DTEND;VALUE=DATE:20230811
SUMMARY:test
DESCRIPTION:
CATEGORIES:diary
END:VEVENTBEGIN:VTODO
@jackkamm
Copy link
Collaborator

What Emacs and org versions are you using?

@djs42012
Copy link

djs42012 commented Aug 19, 2023

Hij @jackkamm,
I am experiencing the same issue with org version 9.7 and emacs version 29.1, although I am attempting to sync TODO’s with google calendar

EDIT: Also using the latest version of DOOM

@jackkamm
Copy link
Collaborator

@djs42012 google calendar does not support iCalendar todos, so you shouldn't try to sync the todos as such -- instead you need to sync them as regular calendar events (not using org-icalendar-include-todo).

@Andrmist it looks like the exported tmp file is mangled -- first of all it is exported as VEVENT instead of VTODO, but then ends with a "BEGIN:VTODO" immediately after. I don't know why it happens in your case, but I did notice that your config is missing some variables for syncing TODOs properly, namely the org-caldav-sync-todo variable. Try setting that variable to see if it helps -- see the section in the Readme on syncing TODOs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants