hledger-flow icon indicating copy to clipboard operation
hledger-flow copied to clipboard

hledger-flow does not 'see' _manual_ year subdirectory if there is no corresponding 1-in subdirectory

Open lestephane opened this issue 2 years ago • 1 comments

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 avatar Aug 22 '21 09:08 lestephane

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

image

lestephane avatar Aug 22 '21 10:08 lestephane