Skip to content

Tasks being overwritten on save #318

@folofjc

Description

@folofjc

First, thanks for the great plugin! I am just starting, but I think it will be very useful for me.

I am sure this is a problem with my setup, but I do not know how to debug or see any output from the plugin, so I apologize for making an issue.

I have a non-standard data location for taskwarrior. I set it by setting $TASKDATA to something. I then create a task in my wiki and it shows up in the data correctly. However, when I try to do anything to this task, like start it or complete it, when I save the wiki file, it reverts. I can look in the task (task # info from the cli) and sure enough, as soon as I save it undoes whatever I did. Here are some examples (most of them are 1s apart where I immediately saved. Sometimes I waited 10 seconds):

2021-01-13 18:08:05 Start set to '2021-01-13 18:08:05'.                                                                                                                                           
2021-01-13 18:08:07 Start deleted (duration: PT2S).                                                                                                                                               
2021-01-13 18:08:14 Start set to '2021-01-13 18:08:14'.                                                                                                                                           
2021-01-13 18:08:20 Start deleted (duration: PT6S).                                                                                                                                               
2021-01-13 18:09:28 Due changed from '2021-01-13 00:00:00' to '2021-01-14 00:00:00'.                                                                                                              
2021-01-13 18:09:30 Due changed from '2021-01-14 00:00:00' to '2021-01-13 00:00:00'.                                                                                                              
2021-01-13 18:10:42 Start set to '2021-01-13 18:10:42'.                                                                                                                                           
2021-01-13 18:10:43 Start deleted (duration: PT1S).                                                                                                                                               
2021-01-13 18:12:09 Start set to '2021-01-13 18:12:09'.                                                                                                                                           
2021-01-13 18:12:11 Start deleted (duration: PT2S).                                                                                                                                               
2021-01-13 18:12:14 Start set to '2021-01-13 18:12:14'.                                                                                                                                           
2021-01-13 18:12:19 Start deleted (duration: PT5S).                                                                                                                                               
2021-01-13 18:12:35 Start set to '2021-01-13 18:12:35'.                                                                                                                                           
2021-01-13 18:12:54 Start deleted (duration: PT19S).                                                                                                                                              
2021-01-13 18:12:57 Start set to '2021-01-13 18:12:57'.

It also reverts when I do :TaskWikiBufferSave.

This behavior occurs independent of whether I set g:taskwiki_data_location or not.

My VIM version is 8.2, I am using taskwiki commit b280e28ac8076a82d084a0b0be96c4edf6592636, and taskwarrior version 2.5.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions