Skip to content

Random file corruption (possibly related to shell prompt integration) #2070

@ulope

Description

@ulope

I've integrated TW into my shell prompt. The commands that are run for each prompt are the following:

  • task _get rc.context
  • task +READY count
  • task +READY +DUE count
  • task +READY due.before:today count

Since about two weeks ago or so I get random TW data file corruptions every few days.
For example:

Unrecognized Taskwarrior file format or blank line in data. in /Users/ulo/.task/pending.data at line 1

The only significant change has been that I upgraded to macOS 10.14.

My wild and totally unsubstantiated guess is that those commands are run concurrently and somehow don't properly lock files before modifying them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions