Commit Graph

10740 Commits

Author SHA1 Message Date
Simon Michael
5ed6c94260 fix: web: don't add link URLs when printing 2022-05-29 08:28:16 -10:00
Simon Michael
1085a2a777 ;doc: update changelogs 2022-05-29 08:05:33 -10:00
Simon Michael
2bce910904 ;doc: update manuals 2022-05-25 11:35:47 -10:00
Simon Michael
6b174ae8a5 ;doc: csv: update link 2022-05-25 11:35:33 -10:00
Simon Michael
2d581d7d4d ;doc: update CLI usage texts 2022-05-23 05:42:27 -10:00
Simon Michael
52210cd114 ;doc: clarify 1.25 changelog about cash account detection 2022-05-23 05:40:01 -10:00
Simon Michael
43c0ca06c5 doc: cf: update cash account inference description for 1.25 2022-05-23 05:28:27 -10:00
Simon Michael
05d5b7860b ;ci: more renames 2022-05-21 23:59:20 -10:00
Simon Michael
05a6940728 ;ci: strip binaries on mac, and try on windows too 2022-05-21 23:46:57 -10:00
Simon Michael
15728bff05 ;ci: mac, windows: consistent naming, add -x64 2022-05-21 23:41:56 -10:00
Simon Michael
f6db2ac855 ci: main: also upload binaries as an artifact 2022-05-21 23:37:59 -10:00
Simon Michael
96c2ed7a2d ;ci: linux-x64: bump to ghc 9.2.2 2022-05-21 23:21:20 -10:00
Simon Michael
a9779b2377 ref: move journal checking/pretty errors down further, to Hledger.Data
now at Hledger.Data.JournalChecks*, Hledger.Data.Errors
2022-05-21 18:29:13 -10:00
Simon Michael
307f723b0a lib: simpler, more consistent names for check functions
API changes:
journalCheckAccountsDeclared
journalCheckCommoditiesDeclared
journalCheckPayeesDeclared
->
journalCheckAccounts
journalCheckCommodities
journalCheckPayees
2022-05-21 18:29:13 -10:00
Simon Michael
65e913b7c5
Merge pull request #1834 from Xitian9/utf8
Use with-utf8 and don't use Data.Text.IO.
2022-05-21 17:50:59 -10:00
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