GothenburgBitFactory / GothenburgBitFactory/task-timewarrior-hook

Hook Error: Expected 1 JSON task(s), found 0, in hook script: on-modify.timewarrior, if a task description are large

Open
#15 1 comment 2 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
7
Forks
3
PR merge metrics
No merged PRs in 30d

Description

on-modify.timewarrior hook are fault on large (10kB+) task description (redminedescription in my case, but I think it does not matter).
Adding a flush option to the output of the task fixes the problem:

`print(json.dumps(new), flush=True)`

Versions:
timewarrior - 1.4.2
OS - Debian 11
python - 3.9.1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.