Stephen Morgan
e233f001c5
fix!: utf-8: Use with-utf8 to ensure all files are read and written with utf8 encoding. ( #1619 )
...
May also fix #1154 , #1033 , #708 , #536 , #73 : testing is needed.
This aims to solve all problems where misconfigured locales lead to
parsers failing on utf8-encoded data. This should hopefully avoid
encoding issues, but since it fundamentally alters how encoding is dealt
with it may lead to unexpected outcomes. Widespread testing on a number
of different platforms would be useful.
2022-05-22 13:12:19 +10:00
Stephen Morgan
15a5d5d38b
Merge pull request #1814 from Xitian9/csverror
...
imp: csv: Give an error if unable to substitute csv templates. (#1803 )
2022-05-22 11:35:39 +10:00
Simon Michael
db26456e1c
imp: consolidate ordereddates check under Hledger.Read.Checks too
...
And remove the last vestiges of older more complex behaviour.
ordereddates now always checks all transactions in each file,
unaffected by a query. (But still affected by --date2).
2022-05-09 00:05:39 -10:00
Simon Michael
810a868c88
ref: consolidate most checks under Hledger.Read.Checks
...
and error message helpers in Hledger.Read.Error.
2022-05-09 00:04:33 -10:00
Simon Michael
211680da86
;ci: main: doc
2022-05-08 20:43:28 -10:00
Simon Michael
de70e0d3ea
;doc: make siteall: rebuild the site and all manual versions
2022-05-06 01:11:53 -10:00
Simon Michael
74da8b80b8
;doc: hledger manual: fix help example
2022-05-05 22:59:44 -10:00
Simon Michael
ab62e44c5d
;doc: hledger manual: fix save frequently used options link
2022-05-05 22:42:16 -10:00
Simon Michael
d9d8a298ed
;dev: tests: errors: readme
2022-05-01 10:14:55 -10:00
Simon Michael
8086d848e3
Merge pull request #1861 from simonmichael/simon
...
more consistent error messages, per #1436
2022-04-27 08:47:40 -10:00
Simon Michael
6f4a5830b2
dev: tests: errors: add missing test journal ( #1436 )
2022-04-25 02:56:59 -10:00
Simon Michael
2f8f922256
dev: fix doctests after "Error: " addition ( #1436 )
2022-04-25 02:56:59 -10:00
Simon Michael
a1c9aa4114
dev: tests: errors: update tests/readme ( #1436 )
2022-04-25 02:56:59 -10:00
Simon Michael
45981832a6
dev: tests: errors: generate more robust tests more robustly ( #1436 )
2022-04-25 02:56:59 -10:00
Simon Michael
1a08baccc4
doc: update errors status ( #1436 )
2022-04-25 02:56:59 -10:00
Simon Michael
a00dc04e0d
imp: check: uniqueleafnames: use the standard error format ( #1436 )
...
Hledger.Read.Common:
export makePostingErrorExcerpt
2022-04-25 02:56:59 -10:00
Simon Michael
7e45ab338f
imp: check: show column ranges properly ( #1436 )
2022-04-25 02:56:59 -10:00
Simon Michael
66d0beea5e
imp: check: ordereddates: use the standard error format ( #1436 )
...
Hledger.Read.Common:
export makeTransactionErrorExcerpt
2022-04-25 02:56:59 -10:00
Simon Michael
1ff0f76524
cli: generate/update tests and readme from error test journals
2022-04-25 02:56:59 -10:00
Simon Michael
1130ad1abd
doc: errors: update status ( #1436 )
2022-04-25 02:56:59 -10:00
Simon Michael
792434ca7d
imp: check: payees: use the standard error format ( #1436 )
2022-04-25 02:56:59 -10:00
Simon Michael
c7e8f58c33
imp: check: mark all error columns when that's preferable ( #1436 )
...
Undeclared commodity errors now mark the whole amount and assertion
region, since locating the exact position of commodity symbols is
difficult.
2022-04-25 02:56:59 -10:00
Simon Michael
8f4405e628
dev: check: refactor error messages ( #1436 )
2022-04-25 02:56:59 -10:00
Simon Michael
6ec0e05c42
imp: check: commodities: use the standard error format ( #1436 )
2022-04-25 02:56:59 -10:00
Simon Michael
cec1e8e3f1
doc: errors status update ( #1436 )
2022-04-25 02:56:59 -10:00
Simon Michael
4b3644d780
imp: check: accounts: print a standardised error message like megaparsec's ( #1436 )
...
added:
formatExcerptLikeMegaparsec
2022-04-25 02:56:59 -10:00
Simon Michael
f47d423a67
lib: error' now adds an Error: prefix
2022-04-25 02:56:59 -10:00
Simon Michael
0d232ed673
imp: check: exit with error' for consistent output
2022-04-25 02:56:59 -10:00
Simon Michael
5ab7b9f643
ref: HledgerParseErrors type alias
2022-04-25 02:56:59 -10:00
Simon Michael
2f28e1b0a7
ref: rename CustomErr -> HledgerParseErrorData
...
Verbose, but use every chance to clarify the complicated parse error
situation.
2022-04-25 02:56:59 -10:00
Simon Michael
07502bd41c
ci: main: build haddocks --fast, in case that works
2022-04-25 01:48:14 -10:00
Simon Michael
81ad760e49
test: disable doctest for all but GHC 9.2
2022-04-25 01:36:14 -10:00
Simon Michael
353312e045
lib: enable doctests with GHC 9.2+ ( #1503 )
...
https://github.com/sol/doctest/issues/301 /
https://github.com/sol/doctest/issues/327
seem to be specific to GHC 9.0.
2022-04-25 00:33:07 -10:00
Simon Michael
75f87439e2
ci: replace push, pull workflows with main
2022-04-25 00:33:07 -10:00
Simon Michael
c2bc7dfb83
ci: push: also run for simon2 branch
2022-04-24 23:43:47 -10:00
Simon Michael
2bf18540c2
;bin: drop old tests
2022-04-21 21:33:28 -10:00
Simon Michael
db28b6b9ee
;ci: pull: another fix like push
2022-04-21 21:32:44 -10:00
Simon Michael
e30634e6ad
bin: readme: cleanup
2022-04-20 23:36:58 -10:00
Simon Michael
c783ebcee6
bin: hledger-simplebal.sh -> hledger-simplebal
2022-04-20 23:36:43 -10:00
Simon Michael
a7d4c3ad1e
bin: hledger-git, hledger-pijul
2022-04-20 23:23:36 -10:00
Simon Michael
b03bbc9184
ci: push, pull: debug logging
2022-04-20 23:04:30 -10:00
Simon Michael
0023982560
ci: push, pull: debug logging
2022-04-20 23:00:57 -10:00
Simon Michael
64ae4c25fa
ci: push, pull: debug logging
2022-04-20 22:58:18 -10:00
Simon Michael
5e46044eb6
ci: push, pull: debug logging
2022-04-20 22:51:32 -10:00
Simon Michael
ef5aafd11c
ci: push, pull: debug logging
2022-04-20 22:37:45 -10:00
Simon Michael
54c758bbdb
ci: push, pull: debug logging
2022-04-20 22:33:43 -10:00
Simon Michael
aafb6d21cf
ci: push, pull: debug logging
2022-04-20 22:25:23 -10:00
Simon Michael
5261ecabe0
ci: push, pull: debug logging for commit range
2022-04-20 22:21:11 -10:00
Simon Michael
7440075903
;bin: hledger-number.sh -> hledger-simplebal.sh
2022-04-20 18:58:38 -10:00
Jakob Schöttl
ae21ee5e00
Update bash completions
2022-04-17 14:48:09 -10:00