Skip to content

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

Open
@Erraen

Description

@Erraen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions