itchyny / calendar.vim

A calendar application for Vim
MIT License
1.95k stars 72 forks source link

Cannot Sync With Google Calendar #153

Closed jacobseiler closed 4 years ago

jacobseiler commented 4 years ago

I'm trying to get Calendar to work with my new Macbook Pro. Unfortunately, I cannot sync it with my Google Calendar. I have (repeatedly) tried deleting the ~/.cache/calendar.vim/ directory to no avail.

I get the following error

[calendar] Fail in authorization to Google
Error detected while processing function calendar#new[19]..297[3]..299[2]..304[4]..351[27]..382[1]..423[1]..586[8]..585[21]..449[8]..447[1]..457[16]..calendar
#google#calendar#getEvents[3]..calendar#google#calendar#getColors[3]..calendar#google#client#get_async[1]..<SNR>114_request_async[1]..calendar#google#client#a
ccess_token:
line   16:
E121: Undefined variable: content
Error detected while processing function calendar#new[19]..297[3]..299[2]..304[4]..351[27]..382[1]..423[1]..586[8]..585[21]..449[8]..447[1]..457[16]..calendar
#google#calendar#getEvents:
line    3:
E896: Argument of get() must be a List, Dictionary or Blob

My .vimrc correctly includes

let g:calendar_google_calendar = 1                                                                                            
let g:calendar_google_task = 1           

and both wget and curl are available. I am using Vim version 8.1.

Any help or insight would be appreciated.

itchyny commented 4 years ago

This should be fixed for now.