andrewbrereton / obsidian-to-ical-plugin

This is a plugin for Obsidian that searches your vault for tasks that contain dates, and generates a calendar in iCal format that can be imported into your preferred calendar application.
MIT License
61 stars 13 forks source link

recurring export doesn't work #27

Closed bepolymathe closed 10 months ago

bepolymathe commented 10 months ago

Hi @andrewbrereton

First of all, thank you for this plugin. I've been waiting for this for a long time and it's a turning point for me. I want to export to local (.ics) for reading via thunderbird. If I make a parameter change, the export goes well the first time but after 5 min (default time) the update doesn't work. I get no error message in the obsidian console. 🤔

andrewbrereton commented 10 months ago

Oh, thanks for this report. I'll dig into it later tonight!

andrewbrereton commented 10 months ago

Hi @bepolymathe.

I've added some logging and I'm watching it, however I'm unable to replicate your issue.

image

The code that writes the calendar to disk is very simple, and there is no exception handling, so I would expect to see an error in the Console if there was an issue.

Can I confirm that Save calendar to disk is enabled, Periodically save your calendar is enabled, and How often should we parse an save your calendar is a low number?

Please also go to your Obsidiain Preferences, go to the Community plugins tab, and turn iCal off then on again.

If it's still not working, I might make a feature to turn on debugging mode to try and see if I can get more details about what is happening.

bepolymathe commented 10 months ago

Hi,

Can I confirm that Save calendar to disk is enabled, Periodically save your calendar is enabled, and How often should we parse an save your calendar is a low number?

Yes, I can confirm that everything is active. I deactivated/activated the plugin, restarted obsidian and switched the option to "do not modify them". My file is at the root of the vault and the recurrence at 5 minutes.

image

EDIT : 🛑 It seems to be working again. I'll let it run a while and let you know if it's a problem.

bepolymathe commented 10 months ago

Hi @andrewbrereton

I've done several tests and I think I can say that the problem is as follows : the export doesn't launch when the application starts. If I deactivate/activate the plugin, the export works and so does the refresh every 5 minutes. If I close obsidian again and restart the application. The export doesn't launch. Neither at startup, nor 5 minutes later.

bepolymathe commented 10 months ago

Hi @andrewbrereton

I’ve done a test with the new debug option active. When I start the application, I get no message. It's as if the plugin doesn't launch at startup, but with no error message or info. On the other hand, if I deactivate/activate the plugin, it launches again and works.

image

andrewbrereton commented 10 months ago

Hi @bepolymathe, this may be resolved in 1.9.3. This release changes the initial starting call from onload to onLayoutReady as I was seeing a similar issue (#33).

I'm curious if the fix for #33 has also fixed this issue.

bepolymathe commented 10 months ago

Yep i can confirm it works now for local and gist. Thanks !