Zren / plasma-applet-eventcalendar

https://store.kde.org/p/998901/
469 stars 92 forks source link

Event calendar sync problem on archlinux. #203

Open IlabSentuser opened 3 years ago

IlabSentuser commented 3 years ago

Hello. I am having an issue with event calendar, i can log in to google calendar without apparent issue. It loads the calendars i have configured. The problem is that it does not sync with the google calendar. Neither manually or automatically. I have generated a log about the problem and i think i have found the problem, i have tried to google about it for a while but found nothing of help. I will attach the data i find suspicious here but feel free to request anything else you may need. NOTE: the calendar does sync if i add an event in it, it connects, adds the event and resyncs. But this is the only way it does so far. I may provide a log if requested. Will also attach an screenshot of what i mean just in case it is not clear. Edit: i forgot to add that i have kdepim and all its components installed, i do not know what does that error means. Screenshot of the above: Screenshot_20201220_181302

The modified(since this is a public post i changed data i thought could be sensitive, ask for anything you need ;)) log:

Dec 20 18:32:34 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] isExpanded true
Dec 20 18:32:34 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] setToday Sun Dec 20 18:32:34 2020 GMT+0100
Dec 20 18:32:34 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] currentTime Sun Dec 20 18:32:34 2020 GMT+0100
Dec 20 18:32:35 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] update
Dec 20 18:32:35 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] updateData
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] EventModel_QMLTYPE_294(0x5638291206d0) fetchAllEvents Tue Nov 24 00:00:00 2020 GMT+0100 Thu Jan 7 00:00:00 2021 GMT+0100
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] EventModel_QMLTYPE_294(0x5638291206d0) clear()
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] GoogleCalendarManager_QMLTYPE_288(0x563829143360) fetchAllEvents Tue Nov 24 00:00:00 2020 GMT+0100 Thu Jan 7 00:00:00 2021 GMT+0100
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] GoogleCalendarManager_QMLTYPE_288(0x563829143360) clear()
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] checkAccessToken
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] fetchGoogleAccountEvents_run [false_user_name@gmail.com]
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] fetchGoogleCalendarEvents false_user_name@gmail.com
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] fetchGCalEvents false_user_name@gmail.com
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] fetchGCalEventsPage false_user_name@gmail.com
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] GoogleTasksManager_QMLTYPE_286(0x563828960460) fetchAllEvents Tue Nov 24 00:00:00 2020 GMT+0100 Thu Jan 7 00:00:00 2021 GMT+0100
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] GoogleTasksManager_QMLTYPE_286(0x563828960460) clear()
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] checkAccessToken
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] fetchGoogleAccountTasks_run [I_DONT_KNOW_IF_THIS_IS_SENSITIVE]
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] fetchGoogleTasks I_DONT_KNOW_IF_THIS_IS_SENSITIVE
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] fetchGCalTasks I_DONT_KNOW_IF_THIS_IS_SENSITIVE
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] fetchGCalTasksPage I_DONT_KNOW_IF_THIS_IS_SENSITIVE
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] PlasmaCalendarManager_QMLTYPE_293(0x5638287ce440) fetchAllEvents Tue Nov 24 00:00:00 2020 GMT+0100 Thu Jan 7 00:00:00 2021 GMT+0100
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] PlasmaCalendarManager_QMLTYPE_293(0x5638287ce440) clear()
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] KDEPIM Not installed as PimCalendarsModel import failed. undefined
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] KDEPIM Not installed as PimCalendarsModel import failed. undefined
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] onCalendarFetched
Dec 20 18:32:36 False-PC_Name plasmashell[776]: file:///usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/AgendaListItem.qml:191:15: QML AgendaEventItem: Binding loop detected for property "implicitHeight"
Dec 20 18:32:36 False-PC_Name plasmashell[776]: file:///usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/AgendaListItem.qml:191:15: QML AgendaEventItem: Binding loop detected for property "implicitHeight"
Dec 20 18:32:36 False-PC_Name plasmashell[776]: file:///usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/AgendaListItem.qml:191:15: QML AgendaEventItem: Binding loop detected for property "implicitHeight"
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] fetchGCalEventsPage.response false_user_name@gmail.com null [object Object] 200
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] fetchGCalEventsPageResponse [object Object] function() { [native code] } null null [object Object] [object Object]
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] fetchGCalEventsPageResponse.finished allData.items.length 1
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] onCalendarFetched false_user_name@gmail.com
Dec 20 18:32:36 False-PC_Name plasmashell[776]: file:///usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/AgendaListItem.qml:191:15: QML AgendaEventItem: Binding loop detected for property "implicitHeight"
Dec 20 18:32:36 False-PC_Name plasmashell[776]: file:///usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/AgendaListItem.qml:191:15: QML AgendaEventItem: Binding loop detected for property "implicitHeight"
Dec 20 18:32:36 False-PC_Name plasmashell[776]: file:///usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/AgendaListItem.qml:191:15: QML AgendaEventItem: Binding loop detected for property "implicitHeight"
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] fetchGCalTasksPage.response I_DONT_KNOW_IF_THIS_IS_SENSITIVE null [object Object] 200
Dec 20 18:32:36 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] fetchGCalTasksPageResponse [object Object] function() { [native code] } null null [object Object] [object Object]
Dec 20 18:32:36 False-PC_Name plasmashell[776]: file:///usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/calendars/GoogleTasksManager.qml:288: TypeError: Cannot read property 'length' of undefined
Dec 20 18:32:38 False-PC_Name plasmashell[776]: qml: [eventcalendar:debug] isExpanded false
Zren commented 3 years ago
file:///usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/calendars/GoogleTasksManager.qml:288: TypeError: Cannot read property 'length' of undefined

So it's an error when fetching the task list. If you uncheck the tasks it'll probably work. I remember seeing this error before, but it was usually when I knew it should error and didn't bother fixing it. Thanks for focusing on it though as I should be checking if the list is undefined before checking it's length.

IlabSentuser commented 3 years ago

Perfect then! I was not sure if it was that the error since i did not check the source code, just found some lines suspicious. I disabled the task and it is working now. I have a question though, after disabling task and proceeding to analyze the log in debug mode i noticed it works, but also noticed that it not only queries about the account i configured but rather all my gmail accounts. I assume it does it because of PIM Events plugin that i had activated for some test purposes before, and i have configured all my accounts there. The plugin is disabled and i had rebooted the system in case it was needed to stop using the plugin. But i still see event calendar trying to get my data from those accounts. I was wondering if there is a way to make it forget about those accounts since i already disabled the plugin. Thanks for the blazing fast reply! And sorry for the new question.

Zren commented 3 years ago

Enable Debugging > Advanced Tab > Edit calendarIdList?

IlabSentuser commented 3 years ago

There is only one. The one i configured. I do not know from where he is getting the others now.

Zren commented 3 years ago

Oh that's right, the Plasma plugins store the "selected calendars" in their own files.

Zren commented 3 years ago

Wait, is it complaining about one of the following?

/usr/lib/x86_64-linux-gnu/qt5/plugins/plasmacalendarplugins/holidaysevents.so
/usr/lib/qt/plugins/plasmacalendarplugins/holidaysevents.so

If it's complaining about x86_64-linux-gnu that's because that's the Ubuntu path to the holidays plugin. The /usr/lib/qt/plugins/ path is for Arch. I put both in the default enabledCalendarPlugins (Advanced tab) since I want holidays to show up by default unlike DigitalClock.

IlabSentuser commented 3 years ago

No, it is not complaining about those. The thing is that i activated once the PIM Events plugin. I have configured in there all my accounts. I have deactivated the PIM Events plugin already but Event Calendar does still try to get the accounts i have configured there. I checked: enabledCalendarPlugins and the values of the field there do change when i activate/deactivate the plugin, but when checking the journalctl logs i still see it trying to get the data from those. Should i open another thread, since the intial problem for this has already been treated?