Skip to content

1.43: timeclock no longer accepts overlapping sessions with same account name #2417

Open
@Gellardo

Description

@Gellardo

After upgrading to hledger version 1.43.2 (mac-aarch64) from 1.42.2, my existing timeclock file no longer works due to what appears to be an unintended breaking change. This differs from the documented breaking change in the release notes regarding the significance of o entry suffixes.

Example test.timeclock file:

i 2024-04-10 13:00:00 test  test desc
o 2024-04-10 14:30:00
i 2024-04-10 14:30:00 test  new desc
o 2024-04-10 15:00:00

Expected / was:

$ hledger -f test.timeclock balance --timeclock-old
               2.00h  test
--------------------
               2.00h

Actual: an error occurs

$ hledger -f test.timeclock balance
hledger: Error: /Users/frank/test.timeclock:3:1:
3 | i 2024-04-10 14:30:00 test  new desc
  | ^

Encountered clockin entry for session "test" that is already active.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.affects4-manyAffects potentially a significant number of users.annoyance4-majorMajor usability/doc bug, or any regression or crash.bountyThar's some kind o' loot on offer..docsDocumentation-related.regressionA backwards step, indicating a weakness in our QA. We don't like these.timeclockThe timeclock file format.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions