Open jakec-dev opened 3 years ago
Nothing strikes me as wrong in this setup. Perhaps add a debugging print to ~/Documents/Sync/.task/hooks/on-modify.timewarrior
, which is just a Python script, in order to determine whether its actually being run?
I'm not very experienced with Python. Do you happen to know what I should add to the script to be able to debug what the issue is?
I just noticed that if I run timew summary
it shows that the integration appears to be working, however it seems to automatically start a task at midnight and doesn't stop it until I manually start a different task myself.
E.g, here's the output for today:
~ > timew summary
Wk Date Day Tags Start End Time Total
W32 2021-08-09 Mon Clear task inbox, next 0:00:00 9:15:28 9:15:28
create systemd service and timer for arch-rss auto-task, inbox 9:15:28 9:28:26 0:12:58
@call, @phone, Call Medicare on 132 011 about new card, next 9:41:51 10:21:19 0:39:28 10:09:02
10:09:02
My computer was turned off until approx 8am this morning so I have no idea how the 'Clear task inbox' task is automatically starting at midnight each day. I did start that task today however it was at approximately 8:15am, not midnight.
It almost seems as if Timewarrior is using the scheduled
attribute (which is midnight every day for the 'clear task inbox' task) as the start time rather than the actual time I start the task, and this is causing the other issues I experienced.
Looks like the on-modify hook does not get call on task stop <id>
anymore.
To report a bug...
cp /usr/share/doc/timew/ext/on-modify.timewarrior ~/Documents/Sync/.task/hooks/on-modify.timewarrior
task diagnostics
This returns (in the hooks section):
task add test task
task +LATEST start
This returns:
task _get $(task +LATEST uuids).start
This returns the current timestamp.
timew
This returns:
There is no active time tracking
Timewarrior and Taskwarrior integration.
No integration.
task diag
command.Output of
timew diagnostics
:Output of
env | grep -e TASK -e TIMEWARRIOR
: