Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hledger can't parse valid Ledger file #1524

Closed
In-line opened this issue Apr 10, 2021 · 3 comments
Closed

Hledger can't parse valid Ledger file #1524

In-line opened this issue Apr 10, 2021 · 3 comments
Labels
A-WISH Some kind of improvement request, hare-brained proposal, or plea. docs Documentation-related. journal The journal file format, and its features. ledger-compat

Comments

@In-line
Copy link

In-line commented Apr 10, 2021

hledger: /main.ledger:3501:51:
     |
3501 |     Equity:Opening Balances             (-0.0001 PRV + 0.002 PRV)
     |                                                   ^
unexpected 'P'
expecting ';', '=', end of input, ledger-style lot date, ledger-style lot price, newline, or transaction price

hledger 1.21
Ledger 3.2.1-20200518, the command-line accounting tool

@In-line In-line added the A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. label Apr 10, 2021
@simonmichael
Copy link
Owner

simonmichael commented Apr 10, 2021

Thanks for the report. It's not actually a bug; we don't support 100% of ledger syntax and features, such as parenthesised value expressions. (doc)

@simonmichael simonmichael removed the A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. label Apr 11, 2021
@simonmichael simonmichael added journal The journal file format, and its features. ledger-compat docs Documentation-related. labels Apr 11, 2021
@In-line
Copy link
Author

In-line commented Apr 12, 2021

@simonmichael if it isn't supported currently, why don't plan to add it in the future?

@simonmichael simonmichael added the A-WISH Some kind of improvement request, hare-brained proposal, or plea. label Apr 12, 2021
@simonmichael
Copy link
Owner

@In-line we could discuss that. Basically: it's a difficult feature to implement well, we will never reach 100% compatibility with Ledger's implementation of it, no-one has done the work, and above all in the big picture I doubt this feature brings enough benefit to justify the cost.

However someone did make a start on it which could be revived: #934.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-WISH Some kind of improvement request, hare-brained proposal, or plea. docs Documentation-related. journal The journal file format, and its features. ledger-compat
Projects
None yet
Development

No branches or pull requests

2 participants