Skip to content

Wrong location of pointer in error message #1927

Closed

Description

@DamienCassou

Given this journal in foo.hledger:

2022/01/27 foo
    asset:current                                  3
    ; some comment
    asset:receivables                             -3 = -3

2022/08/27 foo
    asset:current                                 -3
    asset:receivables                              3

I get this error message:

$ hledger -f foo.hledger check recentassertions
hledger: Error: /tmp/foo.hledger:4:54:
  | 2022-01-27 foo
  |     asset:current                   3
3 |     ; some comment
  |                                       ^^^^
  |     asset:receivables              -3 = -3

The recentassertions check is enabled, ...

Note the position of the ^^^^ which seems wrong.

  • hledger --version: 1.27
  • What platform you're on: GNU/Linux

Activity

  1. added
    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.
    on Sep 2, 2022
  2. simonmichael commented on Sep 2, 2022

    @simonmichael
    Member

    Thanks for the report.

  3. added
    cliCommand line parsing, options, arguments and suchlike.
    on Sep 2, 2022
  4. added a commit that references this issue on Apr 27, 2023
    f5c3bbc
  5. simonmichael commented on Apr 27, 2023

    @simonmichael
    Member

    Fixed by f5c3bbc.

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.cliCommand line parsing, options, arguments and suchlike.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions