Re: Potential bug with period expressions

2014-09-01 Thread John Wiegley
 Andrew Schwartzmeyer and...@schwartzmeyer.com writes:

 Error: Unexpected date period token ‘until'

This is certainly a bug.  You can see how Ledger parses any period expression
using the period subcommand:

ledger period from jun to sep

Strangely, if you say from jun 2010 to sep, it works just fine, so it sounds
like it's just a deficiency of the current parser.

Can you please enter this as a high priority bug at bugs.ledger-cli.org?  I'm
at ICFP right now and am a bit distracted.

Thanks!
  John

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Potential bug with period expressions

2014-09-01 Thread Andrew Schwartzmeyer

On Sep 1, 2014, at 5:07 AM, John Wiegley jo...@newartisans.com wrote:

 Andrew Schwartzmeyer and...@schwartzmeyer.com writes:
 
 Error: Unexpected date period token ‘until'
 
 This is certainly a bug.  You can see how Ledger parses any period expression
 using the period subcommand:
 
ledger period from jun to sep
 
 Strangely, if you say from jun 2010 to sep, it works just fine, so it sounds
 like it's just a deficiency of the current parser.

Quite strange indeed, but good enough workaround for me right now, thanks!
 
 Can you please enter this as a high priority bug at bugs.ledger-cli.org?

And done!

 I’m at ICFP right now and am a bit distracted.

I am definitely incredibly jealous. You’ll have to let me know how it is :D
 
 Thanks!
  John
 
 -- 
 
 --- 
 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 ledger-cli+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Potential bug with period expressions

2014-08-31 Thread Andrew Schwartzmeyer
Let me preface this with the fact that I may be using period expressions 
completely wrong and this isn’t a bug at all.

I’ve read through section 8.4 of the 3.0 docs on Period Expressions 
(http://www.ledger-cli.org/3.0/doc/ledger3.html#Period-Expressions). My long 
goal is to display my budgeted transactions monthly for this month, last month, 
and next month (July, August, September). I would think that a ledger command 
like this:

ledger --period from jul to sep” reg

Would at least display my register “from jul” [BEGIN] “to sep” [END], which may 
both be specified. The range is also sensible, so I feel like this should be 
accepted by the grammar. However, this expression causes ledger to return:

Error: Unexpected date period token ‘until'

This is true for ledger vesions Ledger 3.0.2-20140507 (home brew stable 
install) and 3.0.3-20140608 (home brew —from-HEAD install, so the master branch 
I’m assuming).

Am I totally missing something or is this a bug in the parser?


signature.asc
Description: Message signed with OpenPGP using GPGMail