Re: Let me know if this group gets too noisy

2008-07-18 Thread John Wiegley
On Jul 18, 2008, at 2:10 PM, Simon Michael wrote: It is noisy enough to discourage conversation a little, but the notifications are also useful, probably won't be this active all the time, and two lists seems overkill, so keep going... Let me disable the Trac notifications, then. I'll

Re: If anyone has spare CPU cycles...

2008-07-21 Thread John Wiegley
On Jul 21, 2008, at 11:53 AM, Mehul Sanghvi wrote: What are the requirements for a buildbot ? I might be able to offer debian-ppc. 1. Be able to build Ledger on your system. 2. Install buildbot-0.7.7 or newer. 3. I'll send you a username and password. 4. You run this command:

Re: compile issue on osx: missing libgmp

2008-08-26 Thread John Wiegley
On Aug 26, 2008, at 3:13 AM, fsiefken wrote: But the ledger configure still fails with Could not find gmp library (set CPPFLAGS and LDFLAGS?) Any OSX user in here? There are a few of us, in fact. :) You'll have to run configure like this: ./configure CPPFLAGS=-I/opt/local/include

Re: ledger input format

2008-08-29 Thread John Wiegley
On Aug 29, 2008, at 4:46 AM, fsiefken wrote: I meant the import format (QIF or ledger's native format), use of the output format works ok (but still remains 1970 There is --input-date-format. In the source folder I found csv.cc, does this mean ledger can read/ import or export csv files?

Re: billing

2008-09-17 Thread John Wiegley
On Sep 17, 2008, at 11:39 AM, Mike Eggleston wrote: I've been reading the manual for ledger and my compliments to the developer(s). Is there a way to use ledger for billing? I spend some time helping veterinarian and they pay me for my time and knowledge. I want some way to record the time

Re: ledger.el Bug

2008-09-18 Thread John Wiegley
On Sep 18, 2008, at 10:06 PM, Russell Adams wrote: I just discovered that ledger.el and reconcile don't to work with accounts that span files. My ledger uses a static Main file which contains links to all the other accounts, some of which cross-reference. Thus the output of 'register' and

Re: what should filtered balance report total be ?

2008-10-10 Thread John Wiegley
On Oct 10, 2008, at 4:16 AM, Simon Michael wrote: Thanks John, that's very helpful. When you provide an account pattern to balance, should it be doing limit, only or display ? For strict balancing, it must be limit, and use --basis. John

Re: bugs or features ?

2008-10-15 Thread John Wiegley
On Oct 15, 2008, at 3:06 AM, Simon Michael wrote: While working on hledger, I found a few more ledger 2.6 quirks. I wonder if these are accurate/intended ? - in register report, account patterns always match against the full account name That's correct. /foo/ matches against the full

Re: Rounding problem

2008-10-21 Thread John Wiegley
On Oct 21, 2008, at 3:56 AM, Tony Edgecombe wrote: I seem to have a rounding problem when I use the -B option This is a very serious bug, Tony, and is entered as bug 5FBF2ED8- EEAA-440E-AED5-67401B107E44. This goes to the top of the list. John

Re: manual cleanup

2008-11-23 Thread John Wiegley
On Nov 23, 2008, at 8:36 AM, Simon Michael wrote: git repo (I think this works ?): http://joyful.com/repos/ledger In order for me to access it via HTTP, you have to run git update- server-info in that repository. You should then also run it in the post-update hook. John

Choose the right syntax for option-based value reporting

2009-01-19 Thread John Wiegley
Ok, I could use people's input on how to decide the syntax for a new feature. In brief, Ledger 2.0-2.6 supported the concept of market value reports, where things like stocks and commodities were reported in terms of their current prices. The feature was consistent internally, but

Re: %2.2X format string doesn't work.

2009-01-20 Thread John Wiegley
On Jan 20, 2009, at 4:44 AM, David Brown wrote: If I use %2.2X in a format string, I would expect to either get the string ! , the string * or , but for the non-cleared case, it doesn't print any spaces, and the columns don't line up. Other optional formatting (such as %C) seem to work

Re: %2.2X format string doesn't work.

2009-01-20 Thread John Wiegley
On Jan 20, 2009, at 4:44 AM, David Brown wrote: If I use %2.2X in a format string, I would expect to either get the string ! , the string * or , but for the non-cleared case, it doesn't print any spaces, and the columns don't line up. This is now fixed in v2.6.2b. John

Re: Command-line options do not override ledgerrc

2009-01-21 Thread John Wiegley
On Jan 13, 2009, at 11:43 PM, dhn wrote: I usually want to see commodities at market value, so I set the -- market option in ~/.ledgerrc. This works fine, overriding the default behavior (displaying quantities). However, when I do want to the quantities, the -O (--quantity) option on the

Re: Beginning and ending dates

2009-01-21 Thread John Wiegley
On Dec 30, 2008, at 1:08 PM, wsharri...@gmail.com wrote: I take the -b part to say that entries on or after the specified date will be included, but the Only entries on or after that date will be calculated is a bit confusing: I presume you mean that you'll report the entries for that date,

Re: enabling libofx support

2009-01-21 Thread John Wiegley
On Dec 25, 2008, at 9:39 PM, Vinod Kurup wrote: config.log tells me that libofx.h is not found. It is located in /usr/ include/libofx/libofx.h on Ubuntu, so I had to change configure.in. I don't know if this is a Ubuntu-specifc thing or not, but thought I'd mention it. Usually what you do

Re: request for review: ledger-entries.el

2009-01-21 Thread John Wiegley
On Dec 17, 2008, at 5:43 PM, Michal Wallace wrote: It *is* possible to deal with entries one at a time in lisp now, but you have to either loop through the entire file from the start, or rely on ledger's emacs output to tell you where the entries are. This is interesting, but you'll find

Re: another parsing bug

2009-01-23 Thread John Wiegley
On Jan 23, 2009, at 7:51 PM, Simon Michael wrote: The key (in my mind) to the foolproofness is verifying both the initial and final balances, which leaves very little probability of error. I tried to carry that through from the beginning of last year.. reaching a point of agreement,

Re: Command-line options do not override ledgerrc

2009-01-24 Thread John Wiegley
On Jan 24, 2009, at 4:44 AM, David Brown wrote: BTW, have you figured out what's causing the caching problem? I haven't been able to reproduce it, but if I don't disable the cache, I've occasionally had entries show up with the wrong sign. My data isn't anywhere big enough to need the cache

Re: multiple null amount transactions per entry

2009-01-30 Thread John Wiegley
On Jan 30, 2009, at 1:35 PM, Alexander wrote: I have a loan that I represent in the following way. ; transaction codes ; (2) predicted transaction ; opening balance 2009/01/29 * Opening balances Liabilities:Loan $1 ; loan downpayment 2009/01/15 (2) Loan agency Expenses:Loan $2000

Re: Ledger build failure on Debian Sid

2009-02-02 Thread John Wiegley
On Feb 2, 2009, at 3:20 PM, Manish wrote: With latest git checkout (b182143 Mon Feb 2 00:28:12 2009) on Debian Unstable, compilation fails complaining of missing irrXML.h and CXMLReaderImpl.h. acprep and configure finished without any errors. You need to run: git submodule init git

Re: Ledger build failure on Debian Sid

2009-02-02 Thread John Wiegley
On Feb 2, 2009, at 4:44 PM, Manish wrote: , | master% gcc --version | gcc (Debian 4.3.2-1) 4.3.2 | Copyright (C) 2008 Free Software Foundation, Inc. | This is free software; see the source for copying conditions. There is NO | warranty; not even for MERCHANTABILITY or FITNESS FOR A

Re: Ledger build failure on Debian Sid

2009-02-02 Thread John Wiegley
On Feb 2, 2009, at 5:09 PM, Manish wrote: | src/option.h:54: error: multiple parameters named �name� Fixed and pushed. And I'm building gcc-4.3.4 as we speak. John

Re: New metadata/note syntax

2009-02-02 Thread John Wiegley
On Feb 2, 2009, at 3:16 PM, Manish wrote: How do I get 3.0? Latest pull from git://github.com/jwiegley/ ledger.git does not seem to show it. Just follow the master branch, that's 3.0pre. John

Re: Ledger build failure on Debian Sid

2009-02-02 Thread John Wiegley
On Feb 3, 2009, at 12:21 AM, Manish wrote: , ledger::value_t const, boost::gregorian::date const)]+0 | x3c): undefined reference to `vtable for ledger::reconcile_xacts' I only wish my build system was as thorough. Fixed and pushed. John

Re: Ledger build failure on Debian Sid

2009-02-02 Thread John Wiegley
On Feb 3, 2009, at 12:56 AM, Manish wrote: | ./tools/fullcheck: line 15: exec: /data/desktop/johnw/ledger/util_tests: cannot execute: No such file or directory Aha, fullcheck will only work if cppunit is installed. Just checked in a fix for that. John

Re: Mileage

2009-02-09 Thread John Wiegley
On Feb 9, 2009, at 6:01 AM, Russell Adams wrote: On Mon, Jul 28, 2008 at 01:16:29PM -0500, Russell Adams wrote: -Prices.dat- ; From IRS: ; http://www.irs.gov/taxpros/article/0,,id=156624,00.html P 2008/07/01 00:00:00 miles $0.585 P 2008/01/01 00:00:00 miles $0.505 P 2007/01/01

Re: Mileage

2009-02-09 Thread John Wiegley
On Feb 9, 2009, at 6:17 AM, Russell Adams wrote: Not in bal? Thats what I was looking at and all the values were off. I didn't check reg. The balance report uses the end date for all values shown. You may be confusing -V (current market value) for -B (basis cost). - B will report things

Re: 3.0 - Bus error on Mac OS X

2009-02-09 Thread John Wiegley
On Feb 9, 2009, at 8:54 AM, phil wrote: [ledger (master)]$ /usr/local/bin/ledger -v Bus error Could you run this: $ gdb ledger (gdb) run -v wait for bus error (gdb) bt And show me the output that results? Thanks! John

Re: 3.0 - Bus error on Mac OS X

2009-02-10 Thread John Wiegley
On Feb 10, 2009, at 5:14 AM, phil wrote: Does this help anymore? I've checked in a change that may fix this. John

Re: 3.0 - Bus error on Mac OS X

2009-02-10 Thread John Wiegley
On Feb 10, 2009, at 6:23 AM, phil wrote: Brilliant, it compiles and runs now. Thanks. There are a couple of failures when running make check though. make check-TESTS . OK (1) PASS: RegressionTests /bin/sh: line 1: 95771 Segmentation fault ${dir}$tst FAIL: util_tests /bin/sh: line 1:

Re: 3.0 - Bus error on Mac OS X

2009-02-11 Thread John Wiegley
On Feb 11, 2009, at 9:20 AM, phil wrote: Sorry for the late reply Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x12141970 0x9677f95f in __gnu_debug::_Safe_iterator_base::_M_detach () Ah, I know this error. It means you're

Re: Ledger 3.0 Bug Reports

2009-02-15 Thread John Wiegley
On Feb 14, 2009, at 9:10 PM, Travis B. Hartwell wrote: To get a list of all of the subaccounts, I use this query (for example): ledger -F %A\n -d l=2 bal Assets I'll have to get -F working again, but the reason why neither is working for you is because value expression and format

New balance reporting algorithm

2009-02-17 Thread John Wiegley
Simon, Since you've been re-implementing the balance report in Haskell, I thought I'd share with you in pseudocode how I rewrote it for Ledger 3.0, since the old method never stopped with the bugs. The new scheme uses a 5 stage algorithm, with each stage gathering information for the

Re: Prices question

2009-02-22 Thread John Wiegley
On Feb 21, 2009, at 10:25 PM, Eugene Morozov wrote: What command should I use to get output in a single currency? I've added a new reporting option to 3.0: -x. You could use -x RUR to report in terms of RUR. In the near future, -x will accept a comma-separated list of commodities, using

Re: simple ledger data entry question

2009-02-22 Thread John Wiegley
On Feb 22, 2009, at 1:47 PM, dwebman wrote: I'm new to Ledger but have read the manual and installed it on by FreeBSD system. I've made some entries and have queried the .dat file with success. My question is: How do I enter invoice numbers, check numbers and other reference numbers to paper

Change in core terminology

2009-02-23 Thread John Wiegley
Martin Blais pointed out to me a while back that some of Ledger's naming choices are at odds with standard accounting terminology, most pointedly my use of the word transaction. Therefore, today I checked in the following global name change in 3.0: To better follow naming standards used

Re: Some thoughts about (h)ledger

2009-02-24 Thread John Wiegley
On Feb 24, 2009, at 9:00 AM, Mark Carter wrote: I have played around with various accounting packages, including my home-brewed effort. I am currently using MS Money 2004 on Parallels on OS X. I am rethinking my approach. I haven't been able to get ledger or hledger to compile on OS X. I

Re: Change in core terminology

2009-02-24 Thread John Wiegley
On Feb 24, 2009, at 12:29 PM, Vinod Kurup wrote: I think it's good to standardize terminology. I, however, am clueless about standard terminology and ledger terminology. (Ledger has been so easy to use that I haven't read the manual in a long time). Is this the correct *new* terminology?

Re: Prices question

2009-02-24 Thread John Wiegley
On Feb 25, 2009, at 12:14 AM, Eugene Morozov wrote: Well, since git updates didn't help me, I alleviated the compile problem by using explicit type casting in three places (in account.cc and post.cc). Can you send me a patch? Ledger compiled (BTW, I'm using gcc 4.3.2 on Ubuntu 8.10), but

More metadata goodness!

2009-02-26 Thread John Wiegley
Just added a new feature to better improve 3.0's use of metadata: There are now tag/pop directives, to apply metadata to a range of transactions (and their postings). For example, if you wanted a conceptual page of transactions relating to business trip to Chicago, you could do this:

Re: Zeroing out an account

2009-02-26 Thread John Wiegley
On Feb 26, 2009, at 6:31 PM, Stephen Hicks wrote: First, is there any way to do this? Is this even a good thing to be able to do, or would this kind of automation be a Bad Idea? There is no way to do it in 2.x, but in 3.0 I intend to allow transactions to have access to current account

Re: Withholding question

2009-02-28 Thread John Wiegley
On Feb 27, 2009, at 5:11 PM, Stephen Hicks wrote: I was getting ready to prepare my taxes and a question occurred to me of how such should be entered into a ledger. In particular, my income account currently just gets the income I get in my paychecks *after* withholding. Would it be better

Re: Viewing full transaction details

2009-02-28 Thread John Wiegley
On Feb 28, 2009, at 6:39 PM, knack wrote: So I can see my position in shares, but not what I actually paid for them. Actually, -B is what you should be using for this, not -r. It'd be nice if I could get some kind of combined output You could achieve this with formatting strings. Since

Re: Another question about multicurrency transactions

2009-03-01 Thread John Wiegley
On Mar 1, 2009, at 5:56 AM, Eugene Morozov wrote: What if instead of keeping prices db, I'd use two currencies in a single transaction? Like: 2009/03/01 * ATM Assets:Cash 360 RUR Assets:Bank:Debit card -$10 Looks like Ledger 3.0 understands this, but I want to

Re: Closing accounting periods and other questions

2009-03-01 Thread John Wiegley
On Mar 1, 2009, at 6:09 AM, AK wrote: I think a very flexible way of closing the books would be to be able to specify any report as an assertion. Thus if some external reporting is recorded as a pair (ledger command, textual output), then for the accounts to be in sync with my external

New feature today: Fixated commodity prices

2009-03-02 Thread John Wiegley
As an extension of lot pricing, you can now fixate the per-unit price of a commodity. For example, say you buy 10 gallons of gas at $1.20. In future value reports, you don't want these gallons reported in terms of today's price, but rather the price when you bought it. At the same

New algorithm for the balance report

2009-03-11 Thread John Wiegley
Well, I had to rewrite the balance reporting code yet again, because it wouldn't work with --depth correctly. Here's the new algorithm. STEP 1: Walk all postings, looking for those that match the user's query. As a match is found, mark its account VISITED. STEP 2: Do a traversal

Re: Viewing full transaction details

2009-03-16 Thread John Wiegley
On Mar 16, 2009, at 3:23 AM, knack wrote: So basically, you can see each transaction in terms of the numbers of shares transacted and the actual cost basis side-by-side. This can be done now with format strings, though I've yet to document how they work in the new 3.0 codebase. My use

For OS X users wanting to try out 3.0

2009-03-18 Thread John Wiegley
I discovered the tool install_name_tool today, which lets me edit an executable file's shared library dependency paths. Long story short, I think I can now make Ledger interim builds for OS X that don't require any installation! The disk image is here:

Re: Viewing full transaction details

2009-03-21 Thread John Wiegley
On Mar 21, 2009, at 1:29 PM, knack wrote: In general, for transactions involving multiple currencies, it would be nice to be able to explicitly specify which currency to use as the basis. This has been implemented for 3.0. It required a rewrite of the commodity pricing logic, so there is

Re: For OS X users wanting to try out 3.0

2009-03-23 Thread John Wiegley
On Mar 23, 2009, at 9:58 AM, Vladimir Weinstein wrote: Do I have to set some environment variables? I get weiv-mac:~$ /Volumes/ledger-3.0a/ledger --version dyld: Library not loaded: /opt/local/lib/libgmp.3.dylib Referenced from: /Volumes/ledger-3.0a/libmpfr.1.dylib Reason: image not found

Re: For OS X users wanting to try out 3.0

2009-03-23 Thread John Wiegley
On Mar 23, 2009, at 4:04 PM, Vladimir Weinstein wrote: Any news on gnucash file format support in 3.0? I am dropping Gnucash support from within Ledger. What we can do is port the old C++ code to Python, so it can be run as a filter, piped into Ledger. John

HLedger haskell port now being mirrored on GitHub

2009-03-24 Thread John Wiegley
I finally got git-darcs-import to build, so there is now a Git mirror of Simon Michael's Haskell port of ledger on GitHub: http://github.com/jwiegley/hledger Also, I've added a Ports page to the Wiki, to show the 5 different Ledger derivates I currently know about. John

Re: HLedger haskell port now being mirrored on GitHub

2009-03-24 Thread John Wiegley
On Mar 24, 2009, at 2:10 PM, Simon Michael wrote: Cool, thanks John. On what schedule does the git mirror update ? Also http://joyful.com/repos/darcs-export-git is an easier to build version of git-darcs-import, in case you ever need to do this again. If my computer is hooked up, it

Re: For OS X users wanting to try out 3.0

2009-03-24 Thread John Wiegley
On Mar 24, 2009, at 5:20 PM, Mark Carter wrote: src/filters.cc:756: error: expected `)' before string constant Thanks, I've fixed it and will push in about 10 mins. John

Re: Git branches

2009-03-25 Thread John Wiegley
On Mar 25, 2009, at 5:40 AM, Mark Carter wrote: Git is something of a strange and mysterious beast to me, so forgive me if I've got things confused. At you page http://github.com/jwiegley/ledger/tree/master# you recommend that we do git checkout -b maint origin/maint I'm thinking that such a

Re: Prices download deactivated?

2009-03-25 Thread John Wiegley
On Mar 25, 2009, at 10:28 AM, Mark Carter wrote: Would I be right in thinking that it is no longer possible to download prices using ledger? I tried both ledger -Q and ledger --download but neither seemed to work. On the plus side, I've managed to get ledger to compile on OS X :) It

Re: Leopard build

2009-03-26 Thread John Wiegley
On Mar 26, 2009, at 4:55 PM, Mark Carter wrote: So, at the moment, I can only offer you some hints. Try doing ./configure CPPFLAGS=-I/opt/local/include followed by ./acprep update ./configure make Just running ./acprep update does all of these steps. John

Re: Leopard build

2009-03-28 Thread John Wiegley
On Mar 28, 2009, at 1:58 PM, Mark Carter wrote: I don't think it's necessary to install a compiler from MacPorts (contrary to a previous posting by me). However, the Apple-supplied gcc does seem to create problems (Apple seems to have a knack of using b0rked implementations. It's times like

Re: Enabling debugging

2009-03-29 Thread John Wiegley
On Mar 29, 2009, at 11:10 AM, Mark Carter wrote: How do I enable debugging so that I see the DEBUG statements work? If you build with acprep, it will be enabled for you. Otherwise, you need to pass --enable-debug to configure. John

Re: command help request

2009-03-29 Thread John Wiegley
On Mar 29, 2009, at 2:43 PM, dwebman wrote: Is it possible to view only the debit or credit items in an account? You can use the -l flag to limit to only subtractive or additive postings: ledger -l 'a0' reg ledger -l 'a0' reg John

Re: Any Brits here (UTF-8 fun)

2009-03-29 Thread John Wiegley
On Mar 29, 2009, at 5:39 AM, Karen Cooke wrote: I am British - and I did have issues with this too, but as I don't use different currencies I get around it by not using the £ sign at all. No too much help.. In 3.0, the £ sign will not cause problems, provided your file is encoded with

Re: For OS X users wanting to try out 3.0

2009-03-31 Thread John Wiegley
On Mar 27, 2009, at 3:06 PM, Nils wrote: Perhaps I'm doing something wrong, but I can't seem to download it. Safari complains that it can’t load any data from this location and Cyberduck also fails. Please try again. My script was deleting the file after uploading it! John

Re: RFE: @@ - allow negative costs

2009-04-01 Thread John Wiegley
On Mar 28, 2009, at 10:03 AM, Mark Carter wrote: I am quite keen on the @@ syntax, as I like to deal with commodities on a net basis. However, there is a bit of an inconsistency between @@ and @. Entered as bug 4F81E261. John

Re: Discussion/bug about end/current dates

2009-04-01 Thread John Wiegley
On Mar 29, 2009, at 3:43 AM, Mark Carter wrote: My argument is that if I specify an end date, then I want ledger to assume that the current date is the end date I specify, and perform all reports and calculations on that basis. After all, if you stick with the current implementation, it could

Re: RFE: @@ - allow negative costs

2009-04-01 Thread John Wiegley
On Apr 1, 2009, at 7:15 PM, Silumesii Maboshe wrote: What bug/issue tracking system do you use? There is a planning branch in the Ledger project on GitHub. If you checkout this branch there is a TODO file. Every item has a UUID associated with it. John

Re: Another rounding issue

2009-04-11 Thread John Wiegley
On Apr 11, 2009, at 8:06 AM, Brian Downing wrote: On current master (ca42f2b9a), Ubuntu Intrepid (with libmpfr build from the Jaunty package to get 2.4): $ cat rounding.dat EOF 2009/01/01 Sample assets 134.123 FOO @ $8.88 assets 100 BAR @ $8.88 equity EOF Better to use 'EOF'

Re: ledger.el error..

2009-04-14 Thread John Wiegley
On Apr 14, 2009, at 1:37 PM, mac_wooster wrote: I don't understand lisp much. I just started on ledger, trying to setup with emacs. It means there was an error from the entry command. I've fixed the problem in the 3.0 codebase now. Meanwhile, could you try running ledger entry ARGS

Re: Updates to Ledger on Mac..?

2009-04-16 Thread John Wiegley
On Apr 16, 2009, at 10:44 AM, mac_wooster wrote: Will this be the latest of Mac OS X binaries for version 3? http://ftp.newartisans.com/pub/ledger/ledger-3.0a.dmg Actually, it's now here: ftp://ftp.newartisans.com/pub/ledger/ledger-current.dmg.zip John

Re: Transaction date order

2009-05-03 Thread John Wiegley
On May 2, 2009, at 10:06 AM, Derek Mahar wrote: Does ledger care about the date order in which enter transactions? Does it sort transactions internally by date? What tools exist to sort the transactions in a ledger data file by date? It does not care. -S d and -S -d will sort by date,

Re: Tracking fuel and milage

2009-06-16 Thread John Wiegley
On May 27, 2009, at 4:21 AM, talisein wrote: 04/04 CS Club Sign ... omitted entries ... Expenses:School:CS Club:Home Depot:4 Brush 2 @ $3.97 Liabilities:Mastercard $-53.90 Used to work fine, but returned 'Error: Cannot annotate an amount with no commodity'. I fixed it

Re: XML output - cost and amount

2009-06-25 Thread John Wiegley
On Jun 24, 2009, at 3:17 PM, sims wrote: The problem is, not all entries have a tr.cost when output via XML. In the console it's output. So I am assuming that there is no harm to do so in XML as well. It would make showing balances a lot easier. AFAIK, right now there is no way to sum up all

Re: sample ledgers and anonymising

2009-06-26 Thread John Wiegley
On Jun 26, 2009, at 10:15 PM, Simon Michael wrote: Using his time machine, I believe John already added this to ledger. Can someone tell us more about this feature ? The --anon flag basically just generates an SHA1 hash of the account name and the payee name. That way everything still

Re: ledger 3.0 bugs

2009-07-02 Thread John Wiegley
On Jul 1, 2009, at 2:18 AM, Nguyen Thai Ngoc Duy wrote: Thanks. I did not know that. The manual still uses the old symbols :-( The manual has hardly been touched for the 3.0 rewrite. Also, I think I'm going to add deprecated compatability symbols, so that stuff like T will still work.

Re: ledger 3.0 bugs

2009-07-02 Thread John Wiegley
On Jul 1, 2009, at 2:18 AM, Nguyen Thai Ngoc Duy wrote: ledger b shows me -50 AUD Assets:Cash 30 AUD Expenses:Electronics:Phone 0 This was very recently fixed. It should be in the 'master' branch now. John

Re: Problem compiling 2.6.2 with gcc 4.4.0

2009-07-03 Thread John Wiegley
On Jul 3, 2009, at 2:49 AM, Matt Lundin wrote: When recently attempting to build ledger 2.6.2, I received the following error: , | option.cc: In function ‘void ledger::unnamed::parse_price_setting (const char*)’: | option.cc:895: error: invalid conversion from ‘const char*’ to ‘char*’ |

Re: Some regression tests are failing

2009-07-05 Thread John Wiegley
On Jul 5, 2009, at 10:38 AM, Felix wrote: Just trying out ledger from git on an Archlinux system and the build fails due to some regression tests. The relevant output follows this post. Sorry if this is the wrong list. It's the right list, and this problem is being worked on currently. John

Re: A posting's cost must be of a different commodity than its amount

2009-07-31 Thread John Wiegley
On Jul 31, 2009, at 1:50 AM, Ben Alexander wrote: I use three letter currency codes for all my currencies (alas, the list include USD, EUR, GBP, and RON). Sometimes I add a whole bunch of transactions to my ledger and notice that I've forgotten to include the currency. Is there a way

Re: Master and emacs

2009-09-14 Thread John Wiegley
On Sep 12, 2009, at 3:56 PM, Cooke Karen wrote: Pressing space bar on items on the reconcile window did nothing. I've reverted back to 2.6.1 (the last working version), but I can reinstall master easily enough to diagnose. I haven't really tested this in 3.x yet, so I would recommend

Re: Latest git version, -s flag now defaulted by bal command

2009-09-16 Thread John Wiegley
On Sep 16, 2009, at 5:52 AM, ed wrote: Is this a change in behaviour or a bug? Just don't trust the docs quite yet... :) John

Re: Latest git version, -s flag now defaulted by bal command

2009-09-17 Thread John Wiegley
On Sep 17, 2009, at 6:08 AM, ed wrote: Is there a list of the principal differences between 2.6 and 3.0? No, since there are just too many to bother with a complete list. I'll note out some of the major ones in the NEWS file, when I get to writing the new manual. As I have no legacy

Re: Balance report formatting in 3.0

2009-09-25 Thread John Wiegley
On Sep 25, 2009, at 7:17 AM, Christopher Suckling wrote: I've built from the 'next' branch and so have managed to use --format %20(scrub(amount)) \n to obtain left padding, but have been unable to figure out how to achieve proper indentation of account names or reduce the number of zeros.

Re: Precision error in latest master

2009-10-25 Thread John Wiegley
Hi Andy, If you could send your data to jwieg...@gmail.com, I'd be happy to fix this for you now. I wasn't able to reproduce it using just the snippet below. Thanks, John On Sep 20, 2009, at 3:45 PM, Andrew Potter wrote: Hi, My ledger version is master-0-gd0c47b1. I have D $1,000.00

Re: [Ledger-discuss] Unexpected exclamation marks on some ledger lines.

2009-10-25 Thread John Wiegley
The ! exclamation mark indicates a posting which is in the pending state. I imagine this is happening because you were in the midst of doing a reconciliation with these transactions? Jhon On Sep 20, 2009, at 4:59 PM, Karl Fogel wrote: I just started using Ledger (2.6.2, as packaged in

Re: Precision error in latest master

2009-10-25 Thread John Wiegley
Ok, this is actually expected behavior. Because you used $2.899 in a preceding transaction, Ledger now thinks that all dollar values must be precise within 3 decimal places. Then later you have 14.32 gallons * $3.259, which is $46.669. But your balancing amount is $46.67, which is off

A quick poll: XML support

2009-10-27 Thread John Wiegley
Hello ledger users, I'm working on getting a release candidate for 3.0 ready in the next few weeks, and one of the pieces not yet written is the XML export/ import support. I'm wondering how important this is to the people on the list, and how many of you would not upgrade if it were

Re: All known bugs and features for 3.0 implemented

2009-10-31 Thread John Wiegley
On Oct 31, 2009, at 6:30 AM, ed wrote: What is the approved way to get the latest version? ./acprep pull give me checking build system type... Invalid configuration `pull': machine `pull' not recognized I've been using git pull but don't know if this works well with acprep The best way to

Re: All known bugs and features for 3.0 implemented

2009-10-31 Thread John Wiegley
On Oct 31, 2009, at 4:10 PM, Vinod Kurup wrote: I'm not sure if this is a bug or a lack of a feature, but I would love to see the period flag (-p) accept /MM. The sample file only has entries from 'May 2004', but using -p to request entries from 'April 2004' still shows the ones from May.

Re: All known bugs and features for 3.0 implemented

2009-11-01 Thread John Wiegley
On Nov 1, 2009, at 4:21 AM, Juergen Daubert wrote: Would be nice to have more meaningful error message like 'corrupted cache file' or maybe a warning that the file is for 2.6 and cannot be used by 3.0 here. Ok, this has been fixed. I'm afraid the caching feature needs a lot more testing.

Re: Build failure latest git

2009-11-01 Thread John Wiegley
On Nov 1, 2009, at 10:47 AM, ed wrote: I discovered that ledger seems to have acquired a dependency on Boost.IOStreams since I last built from git so I remade boost from clean and repeated the acprep update after running acprep clean, now it grinds for a while and finishes with: Hi Ed,

Re: Build failure latest git

2009-11-05 Thread John Wiegley
, John Wiegley jwieg...@gmail.com wrote: On Nov 2, 2009, at 4:11 PM, ed wrote: The command nm ./.libs/libledger_data.a | grep basic_path returns 689 lines of output, is that what you meant? I meant nm ./.libs/libledger_data.a | grep should_load John

Using the Python support on OS X

2009-11-05 Thread John Wiegley
If you're a Ledger user who's on Mac OS X and you want to build and install the ledger module for Python, you'll need to install Boost with Python support: sudo port install -f boost +debug+python26+st Then run ./acprep clean update to wipe your current version and update to the

Re: A quick poll: XML support

2009-11-09 Thread John Wiegley
Note also that the XML output has no formatting anymore. I recommend this: ledger xml | tidy -q -indent -xml -utf8 Provided you have the tidy command installed on your system. John

Re: Automated expressions and ledger 3.0

2009-11-09 Thread John Wiegley
Hi Gabriel, I'm able to reproduce your bug here and will have it fixed shortly. Also, I'm thinking of allowing an alternate syntax for automated expression, that allows you to use the same report query syntax as the command line. That way you could just say: == Bank:Visa I would either

Re: Just cloned and acprep doesn't work

2009-11-11 Thread John Wiegley
On Nov 11, 2009, at 12:48 AM, Peter Keen wrote: I'm wondering if maybe there's something wrong with my system. I recently upgraded to snow leopard and now things just don't seem to work right anymore. *sigh* Anyway. Here's the output from ./acprep update: I'm running Snow Leopard too. Can

Re: Build failure latest git

2009-11-11 Thread John Wiegley
Ed, are you still seeing this link failure? John On Nov 10, 2009, at 1:56 PM, ed wrote: Mac OS X 10.5.8 PowerPC CXX ledger-global.o LD ledger /usr/bin/g++-4.2 -fpch-deps -Wconversion -g -pipe -g -o ledger ledger- main.o ledger-global.o /usr/lib/libiconv.dylib -Wl,-framework -

Re: Just cloned and acprep doesn't work

2009-11-11 Thread John Wiegley
On Nov 11, 2009, at 11:46 AM, Peter Keen wrote: This time it's because somehow I don't have libtool installed (!?). Libtool has an unfortunately long list of dependencies and I have to go to work, but I'll let it compile while I'm there and try again later. Hmm... I use libtool from

Python support must be postponed

2009-11-12 Thread John Wiegley
unices (Alexis) on IRC had a great idea for the Ledger Python support today. He suggested adding a method to Journal objects which would allows you to get back a collection of the postings related to a report query. The code would look a lot like this: import sys from ledger import

Light at the end of the Python tunnel?

2009-11-14 Thread John Wiegley
Consider this Python expression: x = a.b.c If a and b are expressions, Python will destroy the objects after the value of c is obtained. This is what kills me with Ledger, because the code looks like this: for post in ledger.Journal(sample.dat).collect(-M assets): But I need the

  1   2   3   4   5   6   7   8   9   10   >