Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split and timew #3

Open
rafaeluriarte opened this issue May 3, 2019 · 2 comments
Open

Split and timew #3

rafaeluriarte opened this issue May 3, 2019 · 2 comments

Comments

@rafaeluriarte
Copy link

Thank you for your work. I am trying to make it work but after installing it (yes the scripts and hooks are in the right places) the command task still treats "split" and "timew" options as if they did not exists:

"task 8 split 'test'
No matches."
"task 8 timew start pomodoro
No matches."

Any idea?

Thank you

@cf020031308
Copy link
Owner

I am not very sure since I have looked around but have found nothing.

But once I met something similar when using timewarrior that without permission to execute those extensions they were treated as if they did not exist.

So maybe you should check your permissions like:

  1. Are those hooks and extensions executable?
  2. Does the user who execute task or timew has the permission to reach those scripts?

@rafaeluriarte
Copy link
Author

Thank you for the ideas. Actually I just noticed that the scripts start with /usr/bin/local/python, which is not correct in arch linux. I changed them to #!/usr/bin/python2 (I believe they use python2 not python3, correct?). Yet, taskwarrior still treats the extensions as if they did not exists. When I execute the on-exit.py from command line it shows:

Traceback (most recent call last):
File "./on-exit.py", line 52, in
main()
File "./on-exit.py", line 13, in main
inputs = utils.format_inputs()
File "/home/rafael/tmp/pomo_warriors/pomodoro-warriors/taskwarrior/hooks/utils.py", line 39, in format_inputs
assert inputs['api'] == '2', 'API: %s is not supported' % inputs['api']
KeyError: 'api'

Ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants