Skip to content

1.32: import --catchup no longer writes .latest files #2156

Description

@ishmaelavila

When I attempt to import a CSV from my bank and I specify the --catchup option, the command runs successfully, however, the .latest.sample.csv state file is not written. The existence of the file and it's content do not seem to have an impact on whether the command updates/creates the file.

I've been able to reproduce this issue reliably on versions above 1.31. The issue seems to have been introduced in 1.32 and I think it may be a regression as I couldn't find anything in the release notes suggesting it was an intentional change.

Please let me know if you need anything else to reproduce or if this is a problem on my end. Thanks!

$ hledger --version
hledger 1.32.2, linux-x86_64

Steps To Reproduce

Note, the commands assume you have the LEDGER_FILE environmental variable specified.

  1. Install hledger >=1.32
  2. Create a CSV that contains valid transactions for importing
  3. Run hledger import --catchup sample.csv
  4. Observe that the command runs succesfully
  5. Look for .latest.sample.csv to see if it was created or updated
  6. Run the import again and observe it continues to say the CSV was marked as caught up rather than saying no new transactions found in CSV

Expected Result

The command finishes successfully, prints the number of transactions skipped, and updated the .latest.sample.csv file with the latest dates.

Notes

When I run the import command without --catchup, the journal file is updated and the .latest.sample.csv file is created/updated correctly. The --catchup option works for me in version1.31 so I'll continue using that for now.

Activity

  1. added
    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.
    on Jan 18, 2024
  2. added
    csvThe csv file format, csv output format, or generally CSV-related.
    regressionA backwards step, indicating a weakness in our QA. We don't like these.
    on Jan 18, 2024
  3. changed the title [-]`.latest.*.csv` files are not being written when importing CSVs using the `--catchup` option[/-] [+]1.32: import --catchup no longer writes .latest files[/+] on Jan 18, 2024
  4. simonmichael commented on Jan 18, 2024

    @simonmichael
    Member

    Confirmed, thanks for the report!

    Claim your https://hledger.org/REGRESSIONS.html#regression-bounty when convenient. Per new policy, it's $50 to the finder and (if someone other than me fixes it) $50 to the fixer.

  5. added
    annoyance2-minorMinor to moderate usability/doc bug, reasonably easy to avoid or tolerate.
    affects3-fewAffects just a few users.
    annoyance4-majorMajor usability/doc bug, or any regression or crash.
    and removed
    annoyance2-minorMinor to moderate usability/doc bug, reasonably easy to avoid or tolerate.
    on Jan 18, 2024
  6. pinned this issue on Jan 18, 2024
  7. added
    bountyThar's some kind o' loot on offer..
    needs-releaseThis should probably be shipped in a release soon.
    on Jan 19, 2024
  8. simonmichael commented on Jan 22, 2024

    @simonmichael
    Member

    Fixed in master.

  9. unpinned this issue on Jan 28, 2024
  10. simonmichael commented on Oct 9, 2024

    @simonmichael
    Member

    Hi @ishmaelavila, I encourage you to claim your $50 regression finder's bounty within the next 7 days! If not, it will be recorded as a project donation.
    https://hledger.org/REGRESSIONS.html#regression-bounty

  11. added a commit that references this issue on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.affects3-fewAffects just a few users.annoyance4-majorMajor usability/doc bug, or any regression or crash.bountyThar's some kind o' loot on offer..csvThe csv file format, csv output format, or generally CSV-related.regressionA backwards step, indicating a weakness in our QA. We don't like these.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions