You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a config file, the output will be wrong...pointing to an incorrect config file. The exception is for config files that also happen to be the last one specified in the self.configs list.
To reproduce this issue, create a config file at one of either the first two "known" locations:
self.configs= [
# Create a config here".rich-codex.yml",
# ...or here...".github/rich-codex.yml",
# ...but not here"docs/img/rich-codex.yml"
]
For example, this config file, at .rich-codex.yml:
❯ rich-codex -v --skip-git-checks
INFO rich-codex ⚡️📖⚡️ version 1.2.4
DEBUG Popen(['git', 'diff', '--cached', '--abbrev=40', '--full-index', '--raw'], cwd=/Users/maxrake/dev/delme/rich-codex, universal_newlines=False, shell=None,
istream=None)
DEBUG Popen(['git', 'diff', '--abbrev=40', '--full-index', '--raw'], cwd=/Users/maxrake/dev/delme/rich-codex, universal_newlines=False, shell=None, istream=None)
DEBUG Popen(['git', 'diff', '--abbrev=40', '--full-index', '-M', '--raw', '-z', '--no-color'], cwd=/Users/maxrake/dev/delme/rich-codex, universal_newlines=False,
shell=None, istream=None)
DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/Users/maxrake/dev/delme/rich-codex, universal_newlines=False, shell=None, istream=<valid stream>)
DEBUG Popen(['git', 'status', '--porcelain', '--untracked-files'], cwd=/Users/maxrake/dev/delme/rich-codex, universal_newlines=False, shell=None, istream=None)
DEBUG Git status check: Found uncommitted changes: ['README.md', 'docs/config/colours.md', 'docs/config/command_setup.md', 'docs/config/ignoring_changes.md',
'docs/config/tweaks.md', 'docs/index.md', 'docs/inputs/markdown.md', 'docs/troubleshooting.md', 'docs/usage/cli.md', 'src/rich_codex/codex_search.py',
'.rich-codex.yml', 'docs/img/main_header.svg', 'docs/img/pip_list.svg'] (skip_git_checks: True)
DEBUG Trimming terminal output down to a minimum of 80
DEBUG Appending contents of .gitignore to 'SEARCH_EXCLUDE'
DEBUG Found config '.rich-codex.yml'
DEBUG Couldn't find '.github/rich-codex.yml'
DEBUG Couldn't find 'docs/img/rich-codex.yml'
INFO Found 1 config file
DEBUG Found valid output in 'docs/img/rich-codex.yml': {'command': 'python -m pip list', 'fake_command': 'pip list', 'title': 'Installed Packages', 'img_paths':
['docs/img/pip_list.svg']}
INFO Searching 21 files
---TRIMMED---
DEBUG Collapsing 1 image requests to 1 deduplicated
╭────────────────────┬─────────────────────────╮
│ Commands to run: │ Source │
├────────────────────┼─────────────────────────┤
│ python -m pip list │ docs/img/rich-codex.yml │
╰────────────────────┴─────────────────────────╯
Notice that the correct config (.rich-codex.yml) was found and identified, but then the incorrect config (docs/img/rich-codex.yml) was referenced after that.
The text was updated successfully, but these errors were encountered:
When using a config file, the output will be wrong...pointing to an incorrect config file. The exception is for config files that also happen to be the last one specified in the
self.configs
list.To reproduce this issue, create a config file at one of either the first two "known" locations:
For example, this config file, at
.rich-codex.yml
:results in output like this:
Notice that the correct config (
.rich-codex.yml
) was found and identified, but then the incorrect config (docs/img/rich-codex.yml
) was referenced after that.The text was updated successfully, but these errors were encountered: