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

Using major account name options is not supported, they are marked as errors #51

Open
ChristopherA opened this issue Mar 23, 2021 · 3 comments

Comments

@ChristopherA
Copy link

I use capital letters for my 5 major account types, to make them more obvious. Beancount supports with the following options:

option "name_assets" "ASSETS"
option "name_liabilities" "LIABILITIES"
option "name_equity" "EQUITY"
option "name_income" "INCOME"
option "name_expenses" "EXPENSES"

The formatter does not use these and marks all of my major account types as an error in RED.

@Lencerf
Copy link
Owner

Lencerf commented Mar 26, 2021

Hello, did you place these options at the beginning of your file? According to bean-doctor list-options:

You should place these options at the beginning of your file, because they affect how the parser recognizes account names.

Also, as I tested, if you split your beancount file to multiple ones and used include, you need to add these directives at the beginning of every file.

@voidmain02
Copy link

voidmain02 commented Aug 23, 2021

I also faced this problem. It looks like these options are not taken into account.

UPD: I've just found that the issue is relevant only for different languages. So if I specify custom root accounts names in english everything works well.

@sunopako
Copy link

I keep my ledger mostly in Ukrainian. But i'm forced to use english in the names of the 5 main accounts. I really like the extension, but this constant language switching while i'm posting to the ledger - it's definitely not as optimized as i wanted it to be. Maybe there is some workaround? Or it should be a specific update that adds such functionality to the extension?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants