Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created calendar is immutable, meaning event times can be changed by mouse, but no description can be added #45

Open
opto opened this issue Sep 30, 2024 · 1 comment

Comments

@opto
Copy link

opto commented Sep 30, 2024

this error blocks me more than #44:

as in experimentsample, calendar is created like this:

if (calendars.length==0) {
calendar = await lightning.calendars.create({
type: "ext-" + messenger.runtime.id,
url: "custom://test",
name: "Test Calendar"
});
console.log("create immediate", calendar);
};

STR: most likely based on fa00dc7

change item times by mouse: success
edit calendar item "findme" in TB main calendar UI: add description, gives this error in console:

NS_ERROR_OBJECT_IS_IMMUTABLE: CalItemBase.sys.mjs:197
modify resource:///modules/CalItemBase.sys.mjs:197
setProperty resource:///modules/CalItemBase.sys.mjs:487
set id resource:///modules/CalItemBase.sys.mjs:125
propsToItem resource://tb-experiments-calendar/experiments/calendar/ext-calendar-utils.sys.mjs:107
listener file:///E:/Arbeit/TB/tb68/TB102/TB115/Weiterentwicklung 115/calendartools/experiments/calendar/parent/ext-calendar-provider.js:601
AsyncFunctionNext self-hosted:804
Uncaught (in promise) NS_ERROR_OBJECT_IS_IMMUTABLE: [Exception... "Can not modify immutable data container" nsresult: "0x80460002 (NS_ERROR_OBJECT_IS_IMMUTABLE)" location: "JS frame :: file:///E:/Arbeit/TB/tb68/TB102/TB115/Weiterentwicklung%20115/calendartools/experiments/calendar/parent/ext-calendar-provider.js :: modifyItem :: line 337" data: no]
modifyItem resource:///modules/CalCachedCalendar.sys.mjs:756
modifyItemCallback resource:///modules/CalCachedCalendar.sys.mjs:809
doModifyItem resource:///modules/CalCachedCalendar.sys.mjs:840

@opto opto changed the title created calendar is immutable, meaning times can be changed by mouse, but no description can be added created calendar is immutable, meaning event times can be changed by mouse, but no description can be added Sep 30, 2024
@kewisch
Copy link
Member

kewisch commented Oct 1, 2024

Are you using the latest version of the experiment? It looks like line 107 is not in propsToItem. If you could try again with the latest version that would be helpful. What is immutable is the calendar item, if this persists we might need to clone somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants