itchyny / calendar.vim

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

Entered event with wrong syntax - now lots of errors; path to file containg all events? #46

Closed SuperFluffy closed 10 years ago

SuperFluffy commented 10 years ago

I entered an event using 15:00 - 16:00 instead of 15:00-16:00. Now everytime I start :Calendar I get the following errors:

Error detected while processing function calendar#new..29..31..36..82..113..150..319..318..185..183..192:
line   12:
E704: Funcref variable name must start with a capital: date
line   14:
E704: Funcref variable name must start with a capital: enddate

The problem is that the event is not displayed in the calendar; hence I can't delete it and vim.calendar tries parsing the faulty event every time I load the calendar.

Where can I find the file containing all events so I can delete the bad event manually?

itchyny commented 10 years ago

The file is found at ~/.cache/calendar.vim/local/event. I want to know the date entry in the bad event.

SuperFluffy commented 10 years ago

Here are the entries for start and end:

'end': {'dateTime': '2014-7-9T13:00:00', 'date': function('calendar#webapi#null')}, 'start': {'dateTime': '2014-7-9T12:00:00', 'date': function('calendar#webapi#null')}

Note: I am not using google tasks/calendar. I am using calendar.vim entirely offline.

itchyny commented 10 years ago

I fixed the problem.