-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
hledger-flow refuses to process statements in the year 2011 #27
Comments
I usually remove all the generated include files first: Then I may also want to remove the preprocessed files and the generated journals: This should be safe if all your files are committed to version control |
I'm looking at your current directory in the prompt, and it seems that you've changed to a subdirectory.
So you probably don't need to remove any files, just cd back to the basedir. I can see this is probably surprising behaviour, we should consider being smarter at detecting the basedir. It will also help to have an option that can print out with which options |
So just after I wrote the above I tried it out on the example data, and it seems that I'm wrong, it does work when running it in a deeper dir, I have just never tried it before. I think the issue is related to the year 2011. Specifically, it looks for input files with this find function: We also won't support 2021, 2001, 1991 and any year ending with a 1.
|
interesting. I did manage to run the command once (after cleaning), but never twice. This explains it. |
@lestephane Can you test if the latest release solves the 2001 issue? https://github.com/apauley/hledger-flow/releases/tag/v0.11.1.1-beta |
Looks fine now, I'm able to run the import command more than once without errors. |
I've issued many
hledger-flow import
commands yesterday, and it could well be that one of them created include files where it shouldn't have. Now i'm unable to import.I don't think it's worth it to figure out (just yet) how I got there.
But my question is: how do I safely remove all the include files generated by previous
hledger-flow import
runs, so that I may start fresh, from a known good state? Is the command below a good first approximation?The text was updated successfully, but these errors were encountered: