Closed peterhoeg closed 1 year ago
Hi, thanks for reporting the issue. The bean-check
command passing or not has nothing to do beancount-black would work or not. Since the whole beancount-black project is based on top of a standalone beancount file parser we developed and open-sourced:
https://github.com/LaunchPlatform/beancount-parser
So it doesn't not rely on the original beancount code, and it does not validate anything at all. It assumes the beancount file is correct, then just parse it and reformat.
The sample code you provided seems like a legit one. This looks more like a bug in beancount-black itself. I will look into this issue tomorrow.
Using the following sample file:
Error message:
Removing the last comment makes it OK.
bean-check
is fine with and without the last comment.