Package: taskwarrior
Version: 2.6.1+dfsg-1

I was "task edit"ing a task, but I got distracted, "task add"ed another task, went back to the editor, saved and exited. Taskwarrior modified the task I was editing, as expected, but it also lost the other task I added. :-(

Here's how to reproduce it:

   $ task add foo
   Created task 1.

   $ EDITOR="sleep 1000; sed -i -e s/foo/FOO/" task edit foo &
   [1] 681
   Launching 'sleep 1000; sed -i -e s/foo/FOO/ "task.efd5dc74.task"' now...

   $ task add bar
   Created task 2.

   $ task

   ID Age   Description Urg
    1 12s   foo            0
    2  1s   bar            0
2 tasks

   $ pkill sleep && fg
   Terminated
   EDITOR="sleep 1000; sed -i -e s/foo/FOO/" task edit foo
   Editing complete.
   Edits were detected.
   Description modified.
$ task ID Age Description Urg
    1 19s   FOO            0
1 task
   Recently upgraded to 2.6.0. Please run 'task news' to read higlights about 
the new release.

Note that the "bar" task has disappeared.


-- System Information:
Architecture: i386

Versions of packages taskwarrior depends on:
ii  libc6        2.32-4
ii  libgcc-s1    11.2.0-10
ii  libgnutls30  3.7.2-2
ii  libstdc++6   11.2.0-10
ii  libuuid1     2.37.2-4

--
Jakub Wilk

Reply via email to