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

Ledger / Editor doesn't 'include' relative to subfolder #329

Open
pitpalme opened this issue Mar 3, 2025 · 0 comments
Open

Ledger / Editor doesn't 'include' relative to subfolder #329

pitpalme opened this issue Mar 3, 2025 · 0 comments

Comments

@pitpalme
Copy link

pitpalme commented Mar 3, 2025

Describe your Environment
OS: Mac Sequoia (silicon)
Paisa Version: 0.7.3
App Variant: Desktop

Describe the bug
'include' in included file is resolved from top level, instead relative to file containing 'include'.
Idea is, so split journal files by year and additionally by sub account.
Some sub account have quite a few transactions, so to keep things clearly arranged, I'd decided to split at this level as well, grouping by bank name.
Calculation is done right, but editor does not take file location containing 'include' into account, but always starts at Paisa top level directory.

To Reproduce
Steps to reproduce the behavior:

  1. use 'include journals//.hledger' in 'main.hledger'
  2. use 'include bank_name/*.hledger' in 'journals/2025/bank_name.hledger'
  3. open Ledger / Editor
  4. inspect 'main.hledger'
  5. switch to 'journals/2025/bank_name.hledger'
  6. inspect line with 'include bank_name/*.hledger'

Expected behavior
'include' should be accepts, without 'No existing files match pattern: bank_name/*.hledger'.
hledger reads all files correctly, Paise "Ledger / Transactions" and "Ledger / Postings" shows all transactions, so "include" seems to be resolved correctly in other locations than "Ledger / Editor".

Journal
main.hledger

include journals/*/*.hledger

journals/2025/bank_name.hledger

include bank_name/*.hledger

journals/2025/bank_name/subacct01.hledger

2025-01-01 Foobar
    Assets:Bank:Name:Acct01  -100
    Expenses:Something
; ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant