Comments (6)
Looks fine now, I'm able to run the import command more than once without errors.
from hledger-flow.
I usually remove all the generated include files first:
$ grep -rl 'Generated by hledger-.*DO NOT EDIT' . | xargs rm
Then I may also want to remove the preprocessed files and the generated journals:
$ find . -type f -path '*2-preprocessed*' -or -type f -path '*3-journal*'|xargs rm
This should be safe if all your files are committed to version control
from hledger-flow.
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.~/Finance/import/personal/somebank$ hledger-flow import --sequential
I'm looking at your current directory in the prompt, and it seems that you've changed to a subdirectory.
hledger-flow
assumes the basedir is your current dir, unless you've specified the basedir on the command-line.
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 hledger-flow
is running (issue #11).
from hledger-flow.
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.
Yes, hledger-flow
doesn't support 2011, sorry. Not a fan of that year :-)
Specifically, it looks for input files with this find function: find (has (suffix "1-in"))
.
And this unfortunately also matches an include file instead of only input files: 2011-include.journal
We also won't support 2021, 2001, 1991 and any year ending with a 1.
from hledger-flow.
interesting. I did manage to run the command once (after cleaning), but never twice. This explains it.
from hledger-flow.
@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
from hledger-flow.
Related Issues (20)
- File-specific rules HOT 5
- hledger-flow does not 'see' _manual_ year subdirectory if there is no corresponding 1-in subdirectory HOT 1
- QUESTION: how to break up a transaction/payment? HOT 12
- If I delete a file in a `1-in` directory, re-running `hledger-flow import` does not remove the corresponding files in the `2-preprocessed` and `3-journal` directories HOT 4
- Missing version bound on turtle breaks build HOT 3
- Have a way to use `--cost` option for income-expense reports HOT 1
- Documentation on workflow HOT 8
- `hledger-flow` reports empty for user sub-accounts (due to missing `directives.journal` at lower levels) HOT 3
- (docs) unclear what to do if starting balance is not 0 HOT 6
- Where to put account declarations and prices?
- Support for Apple Silicon (aarch64-darwin) HOT 3
- hackage doesn't have the 0.15 release
- Windows: the preprocess and construct scripts are not executed HOT 1
- QUESTION: tags, reports, multiple contributors, virtual accounts, how to do it simply? HOT 2
- when preprocess is called with a $1 that has a .timeclock extension, $2 has a .csv extension HOT 3
- 3-journal/ files not ending in ".journal" extension are added to yearly include files HOT 6
- Make it possible to configure the number of cores being used (the default is to use all cores, which slows down the machine) HOT 18
- hledger-flow does not 'see' hledger despite it being present in the PATH as a symlinked executable HOT 3
- cabal install error: Not in scope: type constructor 'Rel' HOT 2
- Question: where to include "meta" statements (`account...`, `commodity format` & `alias`) & prices? HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hledger-flow.