vim-orgmode icon indicating copy to clipboard operation
vim-orgmode copied to clipboard

Agenda error

Open rgc69 opened this issue 8 years ago • 2 comments

Hi Jan, the weekly/daily agenda command <LocalLeader>caa return this error:

Traceback (most recent call last): File "", line 1, in File "~/.vim/ftplugin/orgmode/plugins/Agenda.py", line 152, in list_next_week last_date = raw_agenda[0].active_date IndexError: list index out of range

The global TODO list command <LocalLeader>cat it's ok. Any idea? Thank you!

EDIT: Got it! When I insert the date with sa it's allright. The problem arise with pa (don't know why)

rgc69 avatar Nov 05 '16 11:11 rgc69

Hi, thanks for reporting the issue. Would you investigate the issue a little more and provide a pull request?

jceb avatar Nov 12 '16 07:11 jceb

Reproduced with an org file that has a single timestamped item

* Foo <2020-09-01 Tue>

Having headers before this does not affect the error. Having a non-timestamped entry after it gets rid of it.

Edit: Hmm actually this seems to have more to do with some org files not being opened in buffers. I get no errors if all org files are open.

JaniM avatar Sep 01 '20 15:09 JaniM