j-palindrome / obsidian-time-ruler

A drag-and-drop time ruler combining the best of a task list and a calendar view (integrates with Tasks, Full Calendar, and Dataview).
MIT License
214 stars 7 forks source link

Cannot add calendar: Time Ruler: Error creating calendar – Cannot add property 0, object is not extensible #109

Closed jnnkB closed 3 months ago

jnnkB commented 5 months ago

Describe the bug Adding an iCal calendar does not work.

To Reproduce Steps to reproduce the behavior:

  1. Go to settings and add a link towards an iCal calendar
  2. You get the message "Time Ruler: Error creating calendar – Cannot add property 0, object is not extensible"

As a first attempt of narrowing down the issue, I created an own ICS file that I uploaded to my server. Unfortunately, the error remains when using that file. You can download it here: demo.txt.

Expected behavior The calendar should be added.

Obsidian Version: Tested on desktop version only.

If there is any further information, I am happy to provide that.

j-palindrome commented 5 months ago

Thanks I'll take a look! Probably a readonly object that needs to be copied.

eden-chan commented 4 months ago

Getting the same issue when I get my Google Calendar shareable ICS format link:

image image
j-palindrome commented 3 months ago

As far as I know this is fixed.

jenpritchard commented 3 months ago

I'm getting the same exact error. Edit: After uninstalling Time Ruler, completely closing Obsidian, and reinstalling, it now lets me add it. Go figure.

j-palindrome commented 2 months ago

Huh...yeah this seems like one of those obscure low-level incompatibility bugs. Glad it's fixed!