Discussion:
ANN: hledger 1.9.1 released
Simon Michael
2018-04-30 20:44:15 UTC
Permalink
G'day all. I'm pleased to announce the release of hledger-* 1.9.1 (and hledger-web 1.9.2).

Although a minor release, this brings significant improvements to the budgeting feature, which I would now call production-ready. The budget report was broken in 1.9 (mis-ordered columns, etc.) - my apologies.

Some other fixes have arrived as well. Thanks to release contributors Everett Hildenbrandt and Dmitry Astapov.

hledger's changelog:

# 1.9.1 (2018/4/30)

* use hledger-lib 1.9.1

* budget (balance --budget): monthly columns are displayed in the proper order.
This fixes a regression in 1.9.

* budget: budgets can be built from periodic
transactions with different intervals again. In 1.9, budgets were
restricted to a single interval, but this was a mistake. This
restores the 1.5 behaviour.

* budget: budget reports are more intuitive and much less likely to
produce no output.

* budget: when no report interval is specified, a budget report for
the whole journal period is shown.

* budget: periodic transactions and the requested report period can
each have their own start/end dates, and the resulting report will
span the union of those periods, showing zeroes where data is
missing.

* budget: total row and total/average columns are now calculated correctly

* budget: actual, percentage, and goal amounts are now aligned in
columns for better readability (usually, unless numbers get huge).

* budget: combining --budget and --sort-amount is not yet supported
and now gives an error.

* csv: handle "-%amount" in a rule when the CSV amount is parenthesised (#736)

* journal: automated postings are now generated early, before journal finalisation,
so they are present for amount inference, transaction balancing, and balance assertions
(#729)

* cli: command-line account aliases are now applied early, before journal finalisation,
so they are equivalent to alias directives in the journal (#730)

* journal: inferred amounts now have the appropriate standard amount style applied
(setting the precision correctly, eg). (#737)

* journal: when checking for balanced transactions, amount styles declared with
commodity directives are also used (previously only inferred amount styles were).
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Robert Nielsen
2018-05-14 11:51:41 UTC
Permalink
Great news about the new version!

What would be a recommended way to upgrade from 1.9? I tried the folllowing commands (i.e., the ones that installed 1.9 successfully for me, in case they would also work for 1.9):

$ 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)

However, version 1.9.1 did not seem to install as when I check the version, it's still reporting 1.9.

I did receive the following output from the last command:

System info:
Darwin 17.5.0 Darwin Kernel Version 17.5.0: Fri Apr 13 19:32:32 PDT 2018; root:xnu-4570.51.2~1/RELEASE_X86_64
Install status:
hledger 1.9 is installed at /Users/robert/.local/bin/hledger
hledger-ui 1.9 is installed at /Users/robert/.local/bin/hledger-ui
hledger-web 1.9 is installed at /Users/robert/.local/bin/hledger-web
hledger-api 1.9 is installed at /Users/robert/.local/bin/hledger-api
hledger-diff 0.2.0.13 is installed at /Users/robert/.local/bin/hledger-diff
hledger-iadd 1.3.2 is installed at /Users/robert/.local/bin/hledger-iadd
hledger-interest 1.5.1 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
----------
----------
hledger 1.9 is installed at /Users/robert/.local/bin/hledger
hledger-ui 1.9 is installed at /Users/robert/.local/bin/hledger-ui
hledger-web 1.9 is installed at /Users/robert/.local/bin/hledger-web
hledger-api 1.9 is installed at /Users/robert/.local/bin/hledger-api
hledger-diff 0.2.0.13 is installed at /Users/robert/.local/bin/hledger-diff
hledger-iadd 1.3.2 is installed at /Users/robert/.local/bin/hledger-iadd
hledger-interest 1.5.1 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

Please let me know if you need any additional details from me.

Thank you.

Rob Nielsen
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Simon Michael
2018-05-14 16:11:19 UTC
Permalink
You did right, but a report of installer breakage just came in: https://github.com/simonmichael/hledger/issues/770 (Not finding the stack binary. I don't know if it's a temporary outage or something we need to fix, debugging help welcome.)

Perhaps you're seeing this ? If not sure, please send the full output from bash -x hledger-instal.sh.
Post by Robert Nielsen
Great news about the new version!
$ 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)
However, version 1.9.1 did not seem to install as when I check the version, it's still reporting 1.9.
Darwin 17.5.0 Darwin Kernel Version 17.5.0: Fri Apr 13 19:32:32 PDT 2018; root:xnu-4570.51.2~1/RELEASE_X86_64
hledger 1.9 is installed at /Users/robert/.local/bin/hledger
hledger-ui 1.9 is installed at /Users/robert/.local/bin/hledger-ui
hledger-web 1.9 is installed at /Users/robert/.local/bin/hledger-web
hledger-api 1.9 is installed at /Users/robert/.local/bin/hledger-api
hledger-diff 0.2.0.13 is installed at /Users/robert/.local/bin/hledger-diff
hledger-iadd 1.3.2 is installed at /Users/robert/.local/bin/hledger-iadd
hledger-interest 1.5.1 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
----------
----------
hledger 1.9 is installed at /Users/robert/.local/bin/hledger
hledger-ui 1.9 is installed at /Users/robert/.local/bin/hledger-ui
hledger-web 1.9 is installed at /Users/robert/.local/bin/hledger-web
hledger-api 1.9 is installed at /Users/robert/.local/bin/hledger-api
hledger-diff 0.2.0.13 is installed at /Users/robert/.local/bin/hledger-diff
hledger-iadd 1.3.2 is installed at /Users/robert/.local/bin/hledger-iadd
hledger-interest 1.5.1 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
Please let me know if you need any additional details from me.
Thank you.
Rob Nielsen
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Simon Michael
2018-05-14 16:39:15 UTC
Permalink
Robert: or, just retry it, I have updated the installer.
Post by Simon Michael
You did right, but a report of installer breakage just came in: https://github.com/simonmichael/hledger/issues/770 (Not finding the stack binary. I don't know if it's a temporary outage or something we need to fix, debugging help welcome.)
Perhaps you're seeing this ? If not sure, please send the full output from bash -x hledger-instal.sh.
Post by Robert Nielsen
Great news about the new version!
$ 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)
However, version 1.9.1 did not seem to install as when I check the version, it's still reporting 1.9.
Darwin 17.5.0 Darwin Kernel Version 17.5.0: Fri Apr 13 19:32:32 PDT 2018; root:xnu-4570.51.2~1/RELEASE_X86_64
hledger 1.9 is installed at /Users/robert/.local/bin/hledger
hledger-ui 1.9 is installed at /Users/robert/.local/bin/hledger-ui
hledger-web 1.9 is installed at /Users/robert/.local/bin/hledger-web
hledger-api 1.9 is installed at /Users/robert/.local/bin/hledger-api
hledger-diff 0.2.0.13 is installed at /Users/robert/.local/bin/hledger-diff
hledger-iadd 1.3.2 is installed at /Users/robert/.local/bin/hledger-iadd
hledger-interest 1.5.1 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
----------
----------
hledger 1.9 is installed at /Users/robert/.local/bin/hledger
hledger-ui 1.9 is installed at /Users/robert/.local/bin/hledger-ui
hledger-web 1.9 is installed at /Users/robert/.local/bin/hledger-web
hledger-api 1.9 is installed at /Users/robert/.local/bin/hledger-api
hledger-diff 0.2.0.13 is installed at /Users/robert/.local/bin/hledger-diff
hledger-iadd 1.3.2 is installed at /Users/robert/.local/bin/hledger-iadd
hledger-interest 1.5.1 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
Please let me know if you need any additional details from me.
Thank you.
Rob Nielsen
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Robert Nielsen
2018-05-14 22:19:53 UTC
Permalink
Thank you. I retried the commands, and this time it was much more successful.

I did see one error message, though. Specifically, the following. Any idea if not doing anything additional will cause a problem? That is, if I ignore the error, will I regret it later?

Installing hledger-interest
using stack Version 1.6.5 x86_64 hpack-0.20.0
Trying stack install --install-ghc --resolver=lts hledger-interest-1.5.2 --verbosity=info
Selected resolver: lts-11.9

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

In the dependencies for hledger-interest-1.5.2:
hledger-lib-1.5.1 from stack configuration does not match >=1.9.1 (latest matching version is 1.9.1)
needed since hledger-interest 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:

- hledger-lib-1.9.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-interest-1.5.2
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Simon Michael
2018-05-15 00:46:11 UTC
Permalink
Robert, thanks for the testing, and catching another bug. I have pushed an update which should fix that.

Ignoring errors from hledger-install is fine; it's designed to install whatever hledger packages it can. If some fail, it'll try those again next time you run it.
Post by Robert Nielsen
Thank you. I retried the commands, and this time it was much more successful.
I did see one error message, though. Specifically, the following. Any idea if not doing anything additional will cause a problem? That is, if I ignore the error, will I regret it later?
Installing hledger-interest
using stack Version 1.6.5 x86_64 hpack-0.20.0
Trying stack install --install-ghc --resolver=lts hledger-interest-1.5.2 --verbosity=info
Selected resolver: lts-11.9
hledger-lib-1.5.1 from stack configuration does not match >=1.9.1 (latest matching version is 1.9.1)
needed since hledger-interest is a build target.
- hledger-lib-1.9.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-interest-1.5.2
--
You received this message because you are subscribed to the Google Groups "hledger" group.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Robert Nielsen
2018-05-15 01:44:06 UTC
Permalink
It seemed to work perfectly this time, installing hledger-interest without
any kind of error message. And just as you mentioned, the install program
was intelligent enough to realize it needed to install only this one thing,
since everything else installed correctly last time.

Thank you for taking care of that, and so quickly! I get a lot of good use
out of hledger, and I am very glad to have the latest version running.

Rob
Post by Simon Michael
Robert, thanks for the testing, and catching another bug. I have pushed an
update which should fix that.
Ignoring errors from hledger-install is fine; it's designed to install
whatever hledger packages it can. If some fail, it'll try those again next
time you run it.
Post by Robert Nielsen
Thank you. I retried the commands, and this time it was much more
successful.
Post by Robert Nielsen
I did see one error message, though. Specifically, the following. Any
idea if not doing anything additional will cause a problem? That is, if I
ignore the error, will I regret it later?
Post by Robert Nielsen
Installing hledger-interest
using stack Version 1.6.5 x86_64 hpack-0.20.0
Trying stack install --install-ghc --resolver=lts hledger-interest-1.5.2
--verbosity=info
Post by Robert Nielsen
Selected resolver: lts-11.9
Error: While constructing the build plan, the following exceptions were
hledger-lib-1.5.1 from stack configuration does not match >=1.9.1
(latest matching version is 1.9.1)
Post by Robert Nielsen
needed since hledger-interest is a build target.
* Recommended action: try adding the following to your extra-deps in
- hledger-lib-1.9.1
* Set 'allow-newer: true' to ignore all version constraints and build
anyway.
Post by Robert Nielsen
* You may also want to try using the 'stack solver' command.
Plan construction failed.
Failed to install hledger-interest-1.5.2
--
You received this message because you are subscribed to the Google
Groups "hledger" group.
Post by Robert Nielsen
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...