afh (owner)

Revisions

gist: 228620 Download_button fork
public
Public Clone URL: git://gist.github.com/228620.git
Embed All Files: show embed
Ledger next-0-g3f00f83 issue #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
% ./build/ledger/debug/ledger --version | head -1
Ledger next-0-g3f00f83, the command-line accounting tool
% ./build/ledger/debug/ledger -f doc/sample.dat reg
While parsing file "doc/sample.dat", line 3:
While parsing value expression:
  account =~ /^Expenses:Books/
             ^^^^^^^^^^^^^^^^^
While parsing periodic transaction:
> = account =~ /^Expenses:Books/
Error: std::bad_cast
kei% tail +10 doc/sample.dat|./build/ledger/debug/ledger -f - reg
2004/05/01 Checking balance Assets:Bank:Checking $1,000.00 $1,000.00
                               Equity:Opening Balances $-1,000.00 0
2004/05/03 Investment balance Assets:Brokerage 50 AAPL 50 AAPL
                               Equity:Opening Balances $-1,500.00 $-1,500.00
                                                                         50 AAPL
2004/05/14 Páy dày Assets:Bank:Checking 500.00€ $-1,500.00
                                                                         50 AAPL
                                                                         500.00€
                               Income:Salary -500.00€ $-1,500.00
                                                                         50 AAPL
2004/05/14 Another dày in whi.. As:Bá:Ch:As:Bá:Chécking $500.00 $-1,000.00
                                                                         50 AAPL
                               Income:Salary $-500.00 $-1,500.00
                                                                         50 AAPL
2004/05/14 Another dày in whi.. Ру:Ру:Ру:Русский язык $1,000.00 $-500.00
                                                                         50 AAPL
                               Income:Salary $-1,000.00 $-1,500.00
                                                                         50 AAPL
2004/05/27 Book Store Expenses:Books $20.00 $-1,480.00
                                                                         50 AAPL
                               Expenses:Cards $40.00 $-1,440.00
                                                                         50 AAPL
                               Expenses:Docs $30.00 $-1,410.00
                                                                         50 AAPL
                               Liabilities:MasterCard $-90.00 $-1,500.00
                                                                         50 AAPL
2004/05/27 Credit card company Liabilities:MasterCard $20.00 $-1,480.00
                                                                         50 AAPL
                               Assets:Bank:Checking $-20.00 $-1,500.00
                                                                         50 AAPL
% tail +10 doc/sample.dat|./build/ledger/debug/ledger -f - reg income
Error: std::bad_cast
% tail +10 doc/sample.dat|./build/ledger/debug/ledger -f - bal income
Error: std::bad_cast
Resolved: Ledger next-0-g3f00f83 issue #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
% ./build/ledger/debug/ledger --version | head -1
Ledger next-0-g01255bd, the command-line accounting tool
% port installed boost
The following ports are currently installed:
  boost @1.40.0_1+debug+python26+st (active)
  boost @1.40.0_1+python26
% ./build/ledger/debug/ledger -f doc/sample.dat reg
While parsing file "doc/sample.dat", line 3:
While parsing value expression:
  account =~ /^Expenses:Books/
             ^^^^^^^^^^^^^^^^^
While parsing periodic transaction:
> = account =~ /^Expenses:Books/
Error: std::bad_cast
% tail +10 doc/sample.dat|./build/ledger/debug/ledger -f - reg
2004/05/01 Checking balance Assets:Bank:Checking $1,000.00 $1,000.00
                                 Eq:Opening Balances $-1,000.00 0
2004/05/03 Investment balance Assets:Brokerage 50 AAPL 50 AAPL
                                 Eq:Opening Balances $-1,500.00 $-1,500.00
                                                                         50 AAPL
2004/05/14 Páy dày Assets:Bank:Checking 500.00€ $-1,500.00
                                                                         50 AAPL
                                                                         500.00€
                                 Income:Salary -500.00€ $-1,500.00
                                                                         50 AAPL
2004/05/14 Another dày in whic.. ..á:Ch:As:Bá:Chécking $500.00 $-1,000.00
                                                                         50 AAPL
                                 Income:Salary $-500.00 $-1,500.00
                                                                         50 AAPL
2004/05/14 Another dày in whic.. Ру:Ак:Ру:Русский язык $1,000.00 $-500.00
                                                                         50 AAPL
                                 Income:Salary $-1,000.00 $-1,500.00
                                                                         50 AAPL
2004/05/27 Book Store Expenses:Books $20.00 $-1,480.00
                                                                         50 AAPL
                                 Expenses:Cards $40.00 $-1,440.00
                                                                         50 AAPL
                                 Expenses:Docs $30.00 $-1,410.00
% tail +10 doc/sample.dat|./build/ledger/debug/ledger -f - reg in
Error: std::bad_cast
% sudo port deactivate boost @1.40.0_1+debug+python26+st
---> Deactivating boost @1.40.0_1+debug+python26+st
% sudo port activate boost @1.40.0_1+python26
---> Activating boost @1.40.0_1+python26
% port installed boost
The following ports are currently installed:
  boost @1.40.0_1+debug+python26+st
  boost @1.40.0_1+python26 (active)
% ./build/ledger/debug/ledger -f doc/sample.dat reg
2004/05/01 Checking balance Assets:Bank:Checking $1,000.00 $1,000.00
                                 Eq:Opening Balances $-1,000.00 0
2004/05/03 Investment balance Assets:Brokerage 50 AAPL 50 AAPL
                                 Eq:Opening Balances $-1,500.00 $-1,500.00
                                                                         50 AAPL
2004/05/14 Páy dày Assets:Bank:Checking 500.00€ $-1,500.00
                                                                         50 AAPL
                                                                         500.00€
                                 Income:Salary -500.00€ $-1,500.00
                                                                         50 AAPL
2004/05/14 Another dày in whic.. ..á:Ch:As:Bá:Chécking $500.00 $-1,000.00
                                                                         50 AAPL
                                 Income:Salary $-500.00 $-1,500.00
                                                                         50 AAPL
2004/05/14 Another dày in whic.. Ру:Ак:Ру:Русский язык $1,000.00 $-500.00
                                                                         50 AAPL
                                 Income:Salary $-1,000.00 $-1,500.00
                                                                         50 AAPL
2004/05/27 Book Store Expenses:Books $20.00 $-1,480.00
                                                                         50 AAPL
                                 Expenses:Cards $40.00 $-1,440.00
                                                                         50 AAPL
                                 Expenses:Docs $30.00 $-1,410.00
% ./build/ledger/debug/ledger -f doc/sample.dat reg in
2004/05/01 Checking balance Assets:Bank:Checking $1,000.00 $1,000.00
                                 Eq:Opening Balances $-1,000.00 0
2004/05/03 Investment balance Eq:Opening Balances $-1,500.00 $-1,500.00
2004/05/14 Páy dày Assets:Bank:Checking 500.00€ $-1,500.00
                                                                         500.00€
                                 Income:Salary -500.00€ $-1,500.00
2004/05/14 Another dày in whic.. ..á:Ch:As:Bá:Chécking $500.00 $-1,000.00
                                 Income:Salary $-500.00 $-1,500.00
2004/05/14 Another dày in whic.. Income:Salary $-1,000.00 $-2,500.00
2004/05/27 Credit card company Assets:Bank:Checking $-20.00 $-2,520.00