jceb / vim-orgmode

Text outlining and task management for Vim based on Emacs' Org-Mode
http://www.vim.org/scripts/script.php?script_id=3642
Other
3.12k stars 267 forks source link

TODO list mapping throws error #267

Open stsievert opened 7 years ago

stsievert commented 7 years ago

In an org file with neovim, <localleader>cat should show the TODO list. Instead,

Error detected while processing function provider#python3#Call:
line   18:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/scott/.config/nvim/plugged/vim-orgmode/ftplugin/orgmode/plugins/Agenda.py", line 226, in list_all_todos
    loaded_agendafiles = cls._get_agendadocuments()
  File "/Users/scott/.config/nvim/plugged/vim-orgmode/ftplugin/orgmode/plugins/Agenda.py", line 79, in _get_agendadocuments
    u"No org_agenda_files defined. Use :let "
  File "/Users/scott/.config/nvim/plugged/vim-orgmode/ftplugin/orgmode/_vim.py", line 119, in echoe
    vim.command(u_encode(u':echoerr "%s"' % m))
  File "/Users/scott/anaconda/lib/python3.5/site-packages/neovim/api/nvim.py", line 218, in command
    return self.request('nvim_command', string, **kwargs)
  File "/Users/scott/anaconda/lib/python3.5/site-packages/neovim/api/nvim.py", line 131, in request
    res = self._session.request(name, *args, **kwargs)
  File "/Users/scott/anaconda/lib/python3.5/site-packages/neovim/msgpack_rpc/session.py", line 98, in request
    raise self.error_wrapper(e
hrafeiro commented 7 years ago

Same issue here. Both in MacOSX and Lubuntu I've the same error. Anyone can help?

sotte commented 7 years ago

@hrafeiro @stsievert The errors is kinda hidden. No org_agenda_files defined.

Use :let org_agenda_files = ['~/org/file_for_agenda.org'] and try again.

I guess org should fail gracefully.

Edit: fix typo.

timjstewart commented 7 years ago

Slight edit: s/fiels/files/