-
-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import can't check account names / account declarations not affecting sibling files #2113
Comments
I believe this is related:
Ie, account directives are not affecting a sibling file. This is odd because https://hledger.org/dev/hledger.html#directive-effects says |
And, |
We'd like to be able to do strict account name checking on the generated transactions before proceeding with an import. Eg because we want to know
|
Strict checks now run only once, at end of the high level read operation, and not for each individual file; this fixes some spurious --strict failures, like account declarations not affecting a sibling file as they should. And .latest file writing now happens as the last step, after passing strict checks. This is mainly for the import command, but it also means that hledger print --new now does not update .latest files if strict checks are failing. The file reading API has been improved and documented in more detail.
Reported in chat:
hledger import -s
does not seem to see account declarations in the main journal, and will wrongly complain that account names are not declared. Current workaround: don't use -s with import, eg you could do this instead:hledger import ... && hledger check -s
The text was updated successfully, but these errors were encountered: