Hi Martin,
I just quickly cat'ed your example to a file on my machine and ran
bean-check on it, and I get this:

blais-macbookair:~/tmp$ bean-check andersen.beancount



/Users/blais/tmp/andersen.beancount:0:       Document root
'/Users/blais/tmp/Dokumenter' does not exist


/Users/blais/tmp/andersen.beancount:20:      Unused account
'Kapital:OpstartsBalance'


   1984-01-01 open Kapital:OpstartsBalance



Which is exactly what I'd expect.

Which platform are you on?

Which version are you running?

Can you try updating to the tip of the default branch, run "make build" and
let me know if it works?


Note: unicode is yet untested (I'm using old GNU tools from way back for
parsing), but it might work.


P.S. Ledgerians: I'll be creating a mailing-list dedicated to Beancount
soon, so Beancount-specific questions can be moved there eventually.




On Wed, Sep 3, 2014 at 3:15 PM, Martin Andreas Andersen <
[email protected]> wrote:

> I have the following (beginnings of) a ledger:
>
> ; Indstillinger
> option "title" "Bogføring for familien andersen-jensen"
>
> option "name_assets"                    "Aktiver"
> option "name_liabilities"               "Passiver"
> option "name_equity"                    "Kapital"
> option "name_income"                    "Indtægter"
> option "name_expenses"                  "Udgifter"
>
> option "account_previous_balances"      "Kapital:OpstartsBalance"
> option "account_previous_earnings"      "Indtjening:Tidligere"
> option "account_previous_conversions"   "Væksling:Nuværende"
> option "account_current_earnings"       "Indtjening:Nuværende"
> option "account_current_conversions"    "Væksling:Tidligere"
> option "conversion_currency"            "INTET"
> option "operating_currency"             "DKK"
> option "documents"                      "./Dokumenter/"
>
> ; Definer konti
> 1984-01-01 open Kapital:OpstartsBalance
>
> (I have mapped accounts to equivalent danish names in these settings - the
> error below still occurs)
>
> bean-check gives the following error:
>
> /home/martin/Dropbox/Documents/Finances/Budget/test.beancount:19:
> syntax error, unexpected ERROR, expecting ACCOUNT
>
> /home/martin/Dropbox/Documents/Finances/Budget/test.beancount:19:
> Lexer error; erroneous token: 'Kapital:OpstartsBalance'
>
> I've tried removing all settings, copying examples over from the docs,
> retyping directives.. still get errors. I even thought the occasional
> danish character ('æ-ø-å') might give issues... but removing those did not
> help either.
>
> I can bean-check the examples from the source just fine, with no errors.
>
> Any suggestions? I'm rather stumped at the moment.
>
> - Martin
>
>
>
>
>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to