Skip to content

Fix: #7760 Use active overlays config value#10613

Closed
jakeswenson wants to merge 4 commits intonushell:mainfrom
jakeswenson:fix/7760/alternate-fix-for-engine-state-config
Closed

Fix: #7760 Use active overlays config value#10613
jakeswenson wants to merge 4 commits intonushell:mainfrom
jakeswenson:fix/7760/alternate-fix-for-engine-state-config

Conversation

@jakeswenson
Copy link
Copy Markdown

@jakeswenson jakeswenson commented Oct 5, 2023

Description

This PR fixes #7760 by modifying EngineState::merge_env to update the engine state config reference after merging the environment.

User-Facing Changes

  • None, this is a bug fix, overlays now can properly add hooks in to the config when setting up their environment

Tests + Formatting

I've added tests that fail without my fix, and succeed after. However getting tests to work involved adding substantial changes to the nu_repl test bin to:

  1. Load config files
  2. Parse its args differently (we can't just skip two args anymore you must instead skip all the other args like --config...)

After Submitting

N/A - just a bug fix

fixes #7760

@jakeswenson jakeswenson marked this pull request as ready for review October 5, 2023 06:44
@jakeswenson jakeswenson marked this pull request as draft October 5, 2023 15:31
@jakeswenson
Copy link
Copy Markdown
Author

jakeswenson commented Oct 5, 2023

Moving this PR back to draft because when testing #10592 with this fix I noticed changes with cd completions

@WindSoilder
Copy link
Copy Markdown
Contributor

Thanks for proposing the PR. I think it's too old and still a draft PR. I'm going to close it. If you think the change is still necessary, feel free to resolve the conflict and open a new PR.

@jakeswenson jakeswenson deleted the fix/7760/alternate-fix-for-engine-state-config branch January 21, 2025 20:05
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

Successfully merging this pull request may close these issues.

Overlay hooks don't work unless another hook is registered from command line

2 participants