Description
Hello everyone, I currently use hledger to track my finances, I normally do Strick checks to my files once every month to make sure that everything is ok. With the release of 1.40 I notice that check accounts and check tags send some errors with my information (not present on 1.34 or lower).
This is the MRE I can come up with:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Start of Minimal, Reproducible Example (MRE).
; Commodities
commodity "CD200130"
format 1,000.00000000 "CD200130"
commodity MXN
format 1,000.00 MXN
; Accounts
account Assets:Investing:Bonds:CetesDirecto:Invested:Cetes
account Assets:Investing:Bonds:CetesDirecto:Wallet
2024/01/01 * Test transaction
Assets:Investing:Bonds:CetesDirecto:Invested:Cetes 100 "CD200130" @ 9.94392220 MXN
Assets:Investing:Bonds:CetesDirecto:Wallet
; End of MRE.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
I run on Windows 11. Under hledger 1.34-g7a83578ec-20240601, windows-x86_64 if I go with ".\bin\hledger.exe -f test.journal check -s" nothing comes out, i. e. everyting is OK.
If I change to hledger 1.40-g0f31974c5-20240909, windows-x86_64 still under Windows 11 and I run the same command I got the following error:
hledger.exe: Error: C:\Temp\test.journal:17:
17 | 2024-01-01 * Test transaction
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Assets:Investing:Bonds:CetesDirecto:Invested:Cetes 100 "CD200130" @ 9.94392220 MXN
| Assets:Investing:Bonds:CetesDirecto:Wallet -994.39222000 MXNStrict account checking is enabled, and
account "equity:conversion:CD200130-MXN:CD200130" has not been declared.
Consider adding an account directive. Examples:account equity:conversion:CD200130-MXN:CD200130
account equity:conversion:CD200130-MXN:CD200130 ; type:A ; (L,E,R,X,C,V)
When trying to troubleshoot, going by each strick test I see that .\bin\hledger.exe -f test.journal check accounts is sending that error.
Also, if I try .\bin\hledger.exe -f test.journal check tags I have another error:
hledger.exe: Error: C:\Temp\test.journal:17:
17 | 2024-01-01 * Test transaction
| Assets:Investing:Bonds:CetesDirecto:Invested:Cetes 100 "CD200130" @ 9.94392220 MXN
| equity:conversion:CD200130-MXN:CD200130 -100 "CD200130"
| equity:conversion:CD200130-MXN:MXN 994.39222000 MXN
| Assets:Investing:Bonds:CetesDirecto:Wallet -994.39222000 MXNStrict tag checking is enabled, and
tag "_price-matched" has not been declared.
Consider adding a tag directive. Examples:tag _price-matched
I hope this information is enough for you to replicate the behavior, if not please let me know. Keep up with this great project!