Closed cmdln closed 2 years ago
@cmdln Thanks for the bug report! Any chance running :messages
after this error shows up would display the last line? It looks like the actual error message is being overshadowed by vim's message about writing the file.
Also, just to make sure I have the correct environment when reproducing this - what is the task --version
and tasklib
version?
:messages
outputs the same text in the screenshot, there does not appear to be more to the error.
task is 2.5.3 tasklib is 2.4.3
The viewport in question uses modified:
, I have sections in my diary entries to help show what was changed on a given day. I think that is the problem, I was adding a task in that viewport and saving. I think the error is write, taskwiki cannot update modified, it is read only. If I add a task to a viewport with the same filters except modified, it continues to work fine. I think my upgrade was a coincidence not the cause.
I am OK with closing this bug or if you want to change it to be about a better error message, trying to save a task to a viewport that uses an unmodifiable field; either way!
Thanks for the very fast response, by the way!
I see, this all makes a lot of sense. Thanks for the clarification. So what's happenning under the hood is indeed that with the following viewport:
### All the tasks modified today | modified:today
taskwiki uses modified:today
both as the filter and default modifications for newly added tasks. However, the good news is that you can actually separate the filter from modifications if you provide two sections, like this:
### Tasks modified today where I can add tasks | modified:today |
In this case the default modifications are empty, and the filter is modified:today. As a bonus, this works fine, because a newly added task does indeed match modified:today
filter :slightly_smiling_face:
Hope this helps!
Ah, right! I remember that from the docs. I am still learning, I only started using taskwiki a few months ago. Nearly every day I keep finding new ways to use it in vimwiki.
By the way, taskwiki is fantastic! I've been using vimwiki and taskwarrior for years. A few months back I started feeling like there was something missing--taskwiki was it!
Upgraded to Pop_OS! 21.10. Using the nvim.appimage from the NeoVim official releases. NeoVim is version 0.5.0.
Python 3.9.7
Vimwiki is current head of dev branch