neorg icon indicating copy to clipboard operation
neorg copied to clipboard

Gtd capture errors out when placing time related tasks

Open danymat opened this issue 3 years ago • 0 comments

Basically:

* MDDP
  #time.due 2022-02-28
  #time.start 2022-02-27
  - [ ] pointer
  - [ ] Finish Task 2 and 3

Adding a task with a time.due in this project will cause this error:

E5108: Error executing lua ...r/start/nvim-treesitter/lua/nvim-treesitter/ts_utils.lua:266: attempt to index local 'node_or_range' (a nil value)
stack traceback:
        ...r/start/nvim-treesitter/lua/nvim-treesitter/ts_utils.lua:266: in function 'get_node_range'
        ...rt/neorg/lua/neorg/modules/core/gtd/queries/creators.lua:235: in function 'insert_tag'
        ...rt/neorg/lua/neorg/modules/core/gtd/queries/creators.lua:62: in function 'create'
        ...rt/neorg/lua/neorg/modules/core/gtd/ui/capture_popup.lua:508: in function <...rt/neorg/lua/neorg/modules/core/gtd/ui/capture_popup.lua:491>
        ...tart/neorg/lua/neorg/modules/core/ui/selection_popup.lua:343: in function <...tart/neorg/lua/neorg/modules/core/ui/selection_popup.lua:329>
        ...tart/neorg/lua/neorg/modules/core/ui/selection_popup.lua:22: in function 'invoke_key_in_selection'
        [string ":lua"]:1: in main chunk

danymat avatar Feb 27 '22 17:02 danymat