I am in the process of setting up calendar synchronisation using the capabilities of my mail provider (posteo) and org-caldav. Unfortunately, I have not been able to get the org-caldav-sync function to work as expected: I receive a "wrong number of arguments (0 . 0) 1" error.
This is my config (using straight package manager with use-package integration:
Now, when I want to use the sync command, I am sometimes first asked my username/password for SabreDav. If I use a wrong user id, then I receive a 404 error. If I use the correct ID, I receive the error message already mentioned in the title: Wrong number of arguments: (0 . 0), 1 . I checked the Messages buffer, which says that the error is thrown by org-export-as. With correct url/id, the org-caldav-debug buffer mentions that it checks for connection and generates an ics file - but the mentioned ics file is empty, without content (I used an empty file for starters and have put some appointments in the Posteo calendar).
The error message output after enabling M-x toggle-debug-on-error.
I believe to have found the source of the error. As assumed, the problem is the org-export-as function, which is defined in the ox-icalendar.el file. When I try to evaluate it on its own, it errors out. This is a bit confusing considering that it seems to have all the required arguments (as per docstring) and even fails (same error) if I call it only with the mandatory argument.
This is the function and expected inputs, followed by the function in the above named file, followed by the "reduced" function call.
Hello fellows,
I am in the process of setting up calendar synchronisation using the capabilities of my mail provider (posteo) and org-caldav. Unfortunately, I have not been able to get the org-caldav-sync function to work as expected: I receive a "wrong number of arguments (0 . 0) 1" error.
This is my config (using straight package manager with use-package integration:
Now, when I want to use the sync command, I am sometimes first asked my username/password for SabreDav. If I use a wrong user id, then I receive a 404 error. If I use the correct ID, I receive the error message already mentioned in the title: Wrong number of arguments: (0 . 0), 1 . I checked the Messages buffer, which says that the error is thrown by org-export-as. With correct url/id, the org-caldav-debug buffer mentions that it checks for connection and generates an ics file - but the mentioned ics file is empty, without content (I used an empty file for starters and have put some appointments in the Posteo calendar).
The error message output after enabling M-x toggle-debug-on-error.
I believe to have found the source of the error. As assumed, the problem is the org-export-as function, which is defined in the ox-icalendar.el file. When I try to evaluate it on its own, it errors out. This is a bit confusing considering that it seems to have all the required arguments (as per docstring) and even fails (same error) if I call it only with the mandatory argument.
This is the function and expected inputs, followed by the function in the above named file, followed by the "reduced" function call.
Any suggestions and tips on how to solve this issue are very welcome :)
Have a good day, folks!