huantrinh1802 / m_taskwarrior_d.nvim

Simple utility plugin for taskwarrior in Neovim
MIT License
47 stars 9 forks source link

Running :TWQueryTasks returns an error "Attempt to decode a blank string" #79

Open raphaelfloresca opened 3 months ago

raphaelfloresca commented 3 months ago

Thank you again for your work with dealing with my last two issues! This plugin has become an important part of my own workflow :)

One last thing I found recently, when I run :TWQueryTasks, I get an "Attempt to decode a blank string" error.

Here is the error in more detail.

Error executing Lua callback: Vim:E474: Attempt to decode a blank string
stack traceback:
    [C]: in function 'json_decode'
    ...m/lazy/m_taskwarrior_d.nvim/lua/m_taskwarrior_d/init.lua:560: in function 'query_tasks'
    ...m/lazy/m_taskwarrior_d.nvim/lua/m_taskwarrior_d/init.lua:741: in function <...m/lazy/m_taskwarrior_d.nvim/lua/m_taskwarrior_d/init.lua:737>

Thank you again for this plugin!

huantrinh1802 commented 3 months ago

Hey @raphaelfloresca, could you share your config and how are you using the TWQueryTasks? I am not able to reproduce

My markdown looks like this


## Test query without comment string $query{status:pending project:Personal}

## Test query with comment string <!-- $query{status:pending project:Personal} -->