ANN: hledger-1.10

68 views
Skip to first unread message

Simon Michael

unread,
Jun 30, 2018, 5:33:20 PM6/30/18
to hledger, haskell-cafe
hledger (http://hledger.org) is a friendly, robust, cross-platform
program for tracking money, time or other commodities, using
double-entry accounting, simple plain text file formats, and
command-line, curses or web UIs.

I'm very pleased to announce hledger 1.10, including work by release
contributors:

Alex Chen,
Everett Hildenbrandt,
Jakub Zárybnický,
Nolan Darilek,
Dmitry Astapov,
Jacob Weisz,
Peter Simons,
Stephen Morgan,
Pavlo Kerestey,
Trevor Riles,
Léo Gaspard,
Mykola Orliuk,
Wad,
Nana Amfo.

You'll note this is not 2.0 as previously planned - we will spend a
bit more time on that. The next major release is expected to be on
2018/09/30.

Please see http://hledger.org/release-notes#hledger-1.10 for the changes
(as soon as I can get to those; until then, the package changelogs):

http://hackage.haskell.org/package/hledger-1.10/changelog
http://hackage.haskell.org/package/hledger-ui-1.10/changelog
http://hackage.haskell.org/package/hledger-web-1.10/changelog
http://hackage.haskell.org/package/hledger-api-1.10/changelog
http://hackage.haskell.org/package/hledger-lib-1.10/changelog



How to get started:
-------------------

See http://hledger.org/download for all install methods.

One of the easiest is the hledger-install script, which requires only
bash and will build and install the hledger tools in $HOME/.local/bin/:

$ curl -O https://raw.githubusercontent.com/simonmichael/hledger/master/hledger-install/hledger-install.sh
$ less hledger-install.sh # (do security review)
$ bash hledger-install.sh # (add -v for more detail; use bash -x to show commands being run)

or (insecure):

$ curl https://raw.githubusercontent.com/simonmichael/hledger/master/hledger-install/hledger-install.sh | bash

After installation, ensure $HOME/.local/bin is in your $PATH, and try some commands:

$ hledger -h # quick help
$ hledger help # list built-in manuals
$ hledger add # record some transactions
$ hledger # list available commands

Next, I encourage you to at least skim the tutorials and docs at
http://hledger.org.

Say hello and ask questions in the #hledger IRC channel on Freenode:
http://irc.hledger.org.

New users and contributors are always welcome! Give feedback, report
bugs, send pull requests, write, evangelise, donate.


Best!
-Simon

Robert Nielsen

unread,
Jul 1, 2018, 5:47:02 PM7/1/18
to hledger
Simon,

Very excited to hear about the new version. I was not successful in upgrading to 1.10 on my Mac. I would very much appreciate your (or anyone else's) assistance, and am including the pertinent details.

Thank you!

The first command resulted as follows:

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 26634 100 26634 0 0 163k 0 --:--:-- --:--:-- --:--:-- 164k


And the third command ($ bash hledger-install.sh) included, but was not limited to, the following output:

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for hledger-lib-1.10:
base-compat-batteries must match >=0.10.1 && <0.11, but the stack configuration has no specified version (latest matching version is 0.10.1)
needed since hledger-lib is a build target.

Some potential ways to resolve this:

* Recommended action: try adding the following to your extra-deps in /Users/robert/.stack/global-project/stack.yaml:

- base-compat-batteries-0.10.1

* Set 'allow-newer: true' to ignore all version constraints and build anyway.

* You may also want to try using the 'stack solver' command.

Plan construction failed.
Failed to install hledger-irr-0.1.1.14 hledger-lib-1.10

----------
hledger 1.9.1 is installed at /Users/robert/.local/bin/hledger
hledger-ui 1.9.1 is installed at /Users/robert/.local/bin/hledger-ui
hledger-web 1.9.2 is installed at /Users/robert/.local/bin/hledger-web
hledger-api 1.9.1 is installed at /Users/robert/.local/bin/hledger-api
hledger-diff 0.2.0.14 is installed at /Users/robert/.local/bin/hledger-diff
hledger-iadd 1.3.5 is installed at /Users/robert/.local/bin/hledger-iadd
hledger-interest 1.5.2 is installed at /Users/robert/.local/bin/hledger-interest
hledger-irr 0.1.1.13 is installed at /Users/robert/.local/bin/hledger-irr
hledger-install.sh not found

Simon Michael

unread,
Jul 2, 2018, 12:23:35 AM7/2/18
to hledger, Joachim Breitner
Thanks for the report Robert. Sorry about that. Could you confirm that it works now ? Except for the hledger-irr bounds failure, which should be reported to its maintainer (cc'd).

https://github.com/simonmichael/hledger/issues/831
> --
> You received this message because you are subscribed to the Google Groups "hledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to hledger+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Joachim Breitner

unread,
Jul 2, 2018, 11:19:10 AM7/2/18
to Simon Michael, hledger
Hi,

new version of hledger-irr uploaded.

Cheers,
Joachim
--
Joachim Breitner
ma...@joachim-breitner.de
http://www.joachim-breitner.de/
signature.asc

Simon Michael

unread,
Jul 2, 2018, 3:55:05 PM7/2/18
to hledger, haskell-cafe
FYI, there were errors in both the hledger-install.sh script and in the stack install instructions on the download page. I believe all are now fixed.

Robert Nielsen

unread,
Jul 2, 2018, 6:20:30 PM7/2/18
to hledger
hledger is now reporting that version 1.10 is installed. However, I need to run the install again (long story -- I started the install this morning, before leaving for work and before the hledger-irr was fixed, so now that I am home again, I will re-install to see if the hledger-irr will install correctly). I will let you know what happens!

Rob

Robert Nielsen

unread,
Jul 2, 2018, 6:29:21 PM7/2/18
to hledger
Well, that didn't take long. And, success! The installation program says that hledger-irr is installed now.

Thank you!!

Alyn Lunt

unread,
Jul 28, 2018, 3:28:00 PM7/28/18
to hledger
Good afternoon all, 

I had to rebuild my system and I am getting the following error when trying to use stack install:

stack install hledger-lib-1.10 hledger-1.10 hledger-ui-1.10.1 hledger-web-1.10
Run from outside a project, using implicit global project config
Using resolver: lts-12.2 from implicit global project's config file: /home/alyn/.stack/global-project/stack.yaml
Downloaded lts-12.2 build plan.    
AesonException "Invalid flag name: \"bytestring--lt-0_10_4\""

when using the install script I get the following error:

System info:
Linux 4.15.0-29-generic #31~16.04.1-Ubuntu SMP Wed Jul 18 08:54:04 UTC 2018
Distributor ID: LinuxMint
Description: Linux Mint 18.3 Sylvia
Release: 18.3
Codename: sylvia
Install status:
hledger 1.10 is installed at /home/alyn/.cabal/bin/hledger
hledger-ui not found
hledger-web not found
hledger-api not found
hledger-diff not found
hledger-iadd not found
hledger-interest not found
hledger-irr not found
hledger-install.sh not found
----------
Installing hledger-ui
using stack Version 0.1.10.0 x86_64
Trying stack install --install-ghc --resolver=lts-12 hledger-ui-1.10.1 hledger-1.10 hledger-lib-1.10 fsnotify-0.3.0.1 --verbosity=info
Run from outside a project, using implicit global project config
Using resolver: lts-12 specified on command line
Selected resolver: lts-12.2
Downloaded lts-12.2 build plan.    
AesonException "Invalid flag name: \"bytestring--lt-0_10_4\""
Failed to install hledger-ui-1.10.1 hledger-1.10 hledger-lib-1.10 fsnotify-0.3.0.1

Installing hledger-web
using stack Version 0.1.10.0 x86_64
Trying stack install --install-ghc --resolver=lts-12 hledger-web-1.10 hledger-1.10 hledger-lib-1.10 --verbosity=info
Run from outside a project, using implicit global project config
Using resolver: lts-12 specified on command line
Selected resolver: lts-12.2
Downloaded lts-12.2 build plan.    
AesonException "Invalid flag name: \"bytestring--lt-0_10_4\""
Failed to install hledger-web-1.10 hledger-1.10 hledger-lib-1.10

Installing hledger-api
using stack Version 0.1.10.0 x86_64
Trying stack install --install-ghc --resolver=lts-12 hledger-api-1.10 hledger-1.10 hledger-lib-1.10 --verbosity=info
Run from outside a project, using implicit global project config
Using resolver: lts-12 specified on command line
Selected resolver: lts-12.2
Downloaded lts-12.2 build plan.    
AesonException "Invalid flag name: \"bytestring--lt-0_10_4\""
Failed to install hledger-api-1.10 hledger-1.10 hledger-lib-1.10

Installing hledger-diff
using stack Version 0.1.10.0 x86_64
Trying stack install --install-ghc --resolver=lts-12 hledger-diff-0.2.0.14 hledger-lib-1.10 --verbosity=info
Run from outside a project, using implicit global project config
Using resolver: lts-12 specified on command line
Selected resolver: lts-12.2
Downloaded lts-12.2 build plan.    
AesonException "Invalid flag name: \"bytestring--lt-0_10_4\""
Failed to install hledger-diff-0.2.0.14 hledger-lib-1.10

Installing hledger-iadd
using stack Version 0.1.10.0 x86_64
Trying stack install --install-ghc --resolver=lts-12 hledger-iadd-1.3.5 hledger-lib-1.10 --verbosity=info
Run from outside a project, using implicit global project config
Using resolver: lts-12 specified on command line
Selected resolver: lts-12.2
Downloaded lts-12.2 build plan.    
AesonException "Invalid flag name: \"bytestring--lt-0_10_4\""
Failed to install hledger-iadd-1.3.5 hledger-lib-1.10

Installing hledger-interest
using stack Version 0.1.10.0 x86_64
Trying stack install --install-ghc --resolver=lts-12 hledger-interest-1.5.2 hledger-lib-1.10 --verbosity=info
Run from outside a project, using implicit global project config
Using resolver: lts-12 specified on command line
Selected resolver: lts-12.2
Downloaded lts-12.2 build plan.    
AesonException "Invalid flag name: \"bytestring--lt-0_10_4\""
Failed to install hledger-interest-1.5.2 hledger-lib-1.10

Installing hledger-irr
using stack Version 0.1.10.0 x86_64
Trying stack install --install-ghc --resolver=lts-12 hledger-irr-0.1.1.15 hledger-lib-1.10 --verbosity=info
Run from outside a project, using implicit global project config
Using resolver: lts-12 specified on command line
Selected resolver: lts-12.2
Downloaded lts-12.2 build plan.    
AesonException "Invalid flag name: \"bytestring--lt-0_10_4\""
Failed to install hledger-irr-0.1.1.15 hledger-lib-1.10

----------
hledger 1.10 is installed at /home/alyn/.cabal/bin/hledger
hledger-ui not found
hledger-web not found
hledger-api not found
hledger-diff not found
hledger-iadd not found
hledger-interest not found
hledger-irr not found
hledger-install.sh not found

Many thanks all.

Alyn

Simon Michael

unread,
Jul 29, 2018, 3:16:30 AM7/29/18
to hledger
Thanks for the report Alyn. You need a (much) newer version of stack. I guess hledger-install.sh needs to check this. One way to get it: follow the "stack" link at http://hledger.org/download.html#b2.-with-stack .

Best,
-Simon

Simon Michael

unread,
Jul 29, 2018, 3:34:44 AM7/29/18
to hledger

Simon Michael

unread,
Jul 29, 2018, 3:38:35 AM7/29/18
to hledger
Another way: just delete or rename the old "stack" executable in your $PATH and try hledger-install again.


On Jul 29, 2018, at 8:19 AM, Simon Michael <si...@joyful.com> wrote:

Alyn Lunt

unread,
Jul 29, 2018, 12:25:51 PM7/29/18
to hledger
Thanks Simon, 

I will give this a try. 
Reply all
Reply to author
Forward
0 new messages