ivan-lednev / obsidian-day-planner

An Obsidian plugin for day planning with a clean UI and a simple task format
MIT License
1.93k stars 485 forks source link

Plugin becomes unresponsive, probably due to ical scheduled tasks #432

Closed kjarnot closed 3 weeks ago

kjarnot commented 2 months ago

Describe the bug I've been encountering an issue where the Day Planner plugin becomes unresponsive. The timeline doesn't change, task notifications are not displayed, settings toggles don't change when clicked, etc.

I checked the developer console and saw that an exception was being thrown in getNotificationKey(), where task.location.path was undefined:

image

image

I managed to catch the exception in the debugger, and when I inspected the task variable, I saw that it did not have a member named location (I think a TaskLocation), hence the exception. I did notice that it was an icalEvent (from an Office 365 Exchange remote calendar).

To Reproduce Steps to reproduce the behavior: (this is a guess)

  1. Configure an external remote calendar
  2. Start Obsidian
  3. At some point (when scheduled task begins, I believe), an exception is thrown and Day Calendar becomes unresponsive

Expected behavior Plugin continues to operate correctly

Additional context I think the bug may be in the icalEventToTask() function, as location is never set.

image

ivan-lednev commented 3 weeks ago

This should be fixed in the latest version. Please re-open it if the issue shows up again.