Skip to content
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 does not 'see' _manual_ year subdirectory if there is no corresponding 1-in subdirectory #103

Open
lestephane opened this issue Aug 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@lestephane
Copy link

lestephane commented Aug 22, 2021

Describe the bug
image

Version and Runtime Information

Please mention the version number of hledger-flow you are using:

$ $HLEDGER_FLOW_EXECUTABLE --version
hledger-flow 0.15.0 linux x86_64 ghc 9.0 2b025fee477538a493cb7b5eaf163fd959aaec42

Is this the latest version?

Yes

Also include the runtime options of the command you ran, e.g:

/home/lestephane/.local/bin/hledger-flow-0.15.0 +RTS -N10 -RTS --show-options --batch-size 200 import
RuntimeOptions {baseDir = "/home/lestephane/Vault/Finance/", importRunDir = "import/personal/SCRUBBED/fondspolice/", importStartYear = Nothing, onlyNewFiles = False, hfVersion = "hledger-flow 0.15.0 linux x86_64 ghc 9.0 2b025fee477538a493cb7b5eaf163fd959aaec42", hledgerInfo = HledgerInfo {hlPath = "/home/lestephane/Vault/Finance/hledger", hlVersion = "hledger 5895a46, linux-x86_64"}, sysInfo = SystemInfo {os = "linux", arch = "x86_64", compilerName = "ghc", compilerVersion = Version {versionBranch = [9,0], versionTags = []}, cores = 12, availableCores = 10}, verbose = False, showOptions = True, sequential = False, batchSize = 200}
Collecting input files from /home/lestephane/Vault/Finance/import/personal/SCRUBBED/fondspolice/
Found 1 input files in 0.000833711s. Proceeding with import...
Wrote include files for 1 journals in 0.002329759s
Imported 1/1 journals in 0.039248629s

To Reproduce

  • Import a directory for which
    • There is a 1-in journal for year YYYY
    • There is no 1-in journal for year YYYY+1 << -- this part I'm not sure about
    • There is a _manual_/YYYY+2/post-import.journal

Expected behavior

  • There should be a YYYY+2-include.journal
  • The YYYY+2-include.journal should be included in all-years.journal

Desktop (please complete the following information):
N/A

Additional context
N/A

@lestephane lestephane added the bug Something isn't working label Aug 22, 2021
@lestephane
Copy link
Author

A possible workaround is to create an empty .journal in 1-in/YYYY+1 and 1-in/YYYY+2.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant