Closed vonpupp closed 8 years ago
Hey there @vonpupp -- looking at the above, you don't mention adding it to your taskwarrior hooks? Did you do that?
Hello @coddingtonbear.
Thanks for your answer! You mean ln -s
which taskwarrior_time_tracking_hook~/.task/hooks/on-modify.timetracking
, right? Sorry, I forgot to mention that. Yes I did that also:
[av:~/.task/hooks]$ ls -la
total 0
lrwxrwxrwx 1 av av 54 Nov 16 23:33 on-modify.timetracking -> /home/av/.venv/bin2/bin/taskwarrior_time_tracking_hook
What surprises me the most is that the ipdb breakpoint is not working, so I cannot figure what is happening.
If it isn't hitting your ipdb
, it sounds like Taskwarrior might not be running the hook. If I were you, I'd double-check with the friendly folks in the #taskwarrior channel on Freenode -- they might have some ideas!
Incidentally -- thanks for the very-detailed report above; it's really pretty fantastic :-)
Thanks for your help @coddingtonbear. I will try to get help on IRC =). Does your package run fine on both Python 2 and 3?
Oh, it definitely runs on Python 2, and (after briefly glancing) probably runs on Python 3. I haven't personally used this hook in a year or so, so I can't say with any real certainty.
Dear @coddingtonbear
I found the problem with the help of the #taskwarrior folks. My data.location is not standard (data.location=~/.task/data
on the .taskrc file), so I just had to symlink to ~/.task/data/hooks/on-modify.timetracking
instead of ~/.task/hooks/on-modify.timetracking
as it is on the documentation. My bad, sorry.
An interesting tip from the #taskwarrior guys that helped to figure that out was the task diagnostics
command. When the path was wrong it couldn't find the hook. This worth noticing just for the sake of knowledge :)
Thanks again for your help.
Hello,
I'm using taskwarrior 2.5 and python 2.7.10. I just installed your package via pip2 on archlinux as:
It installed just fine:
I created the UDAs as on the readme:
I added a test task (ID=38) and when I query for the estimate it works fine:
I created a simple report with real vs estimated time as:
When I
task _get 38.totalactivetime
I get no value (blank), I don't get an error though. And when Itask estimatedone
, I don't get the totalactivetime column. I started the task 38 for about 2 min several timesI tried to place an ipdb breakpoint after line 21, on
/home/av/.venv/bin2/lib/python2.7/site-packages/taskwarrior_time_tracking_hook
(my python2 virtualenv) however it doesn't show any console.Is this package made for python2 or python3? Any idea what am I doing wrong?
Thanks you very much!