Coder Social home page Coder Social logo

Errors after upgrade about org-caldav HOT 5 CLOSED

wentasah avatar wentasah commented on August 21, 2024
Errors after upgrade

from org-caldav.

Comments (5)

dengste avatar dengste commented on August 21, 2024

pop-to-buffer-same-window is indeed not existent in Emacs 23.x. I will need to use something different.

I cannot explain the other error, though. Could you provide a backtrace? (Do M-x toggle-debug-on-error before running org-caldav-sync.) Also, the content of org-caldav-debug could be helpful.

from org-caldav.

wentasah avatar wentasah commented on August 21, 2024

Strange. Now, I cannot reproduce the "Wrong type argument" error. Instead I get:

File error: "Removing old name", "Error removing", "https://www.google.com/calendar/dav/[email protected]/...", 404

With the following workaround, sync was sucessfully finished.

diff --git a/org-caldav.el b/org-caldav.el
index d4e4d9e..56a6e9c 100644
--- a/org-caldav.el
+++ b/org-caldav.el
@@ -481,7 +481,7 @@ ICSBUF is the buffer containing the exported iCalendar file."
       (dolist (cur events)
    (setq counter (1+ counter))
    (message "Deleting event %d from %d" counter (length events))
-   (org-caldav-delete-event (car cur))
+   ;(org-caldav-delete-event (car cur))
    (push (list (car cur) 'deleted-in-org 'removed-from-cal)
          org-caldav-sync-result)
    (setq org-caldav-event-list

from org-caldav.

dengste avatar dengste commented on August 21, 2024

It seems it tries to remove an event which already is gone. I don't know why this happens. Again, I'm afraid I'd need to see the full backtrace. The full output of the org-caldav-debug buffer would also greatly help. You can send it to the address which is at the top of org-caldav.el.

from org-caldav.

wentasah avatar wentasah commented on August 21, 2024

Hi,

I had some duplicated events in org and google. I believe I deleted events at both places manually. This might be the reason for this error. I'm send the backtrace and debug buffer via email.

Thanks.

from org-caldav.

dengste avatar dengste commented on August 21, 2024

I now catch errors which are thrown from url-dav-delete-file. You will still get a warning message, but at least the sync should continue.

from org-caldav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.