fix: modify_config_code twice with keyword values#332
Merged
zachdaniel merged 2 commits intoash-project:mainfrom Sep 25, 2025
Merged
fix: modify_config_code twice with keyword values#332zachdaniel merged 2 commits intoash-project:mainfrom
modify_config_code twice with keyword values#332zachdaniel merged 2 commits intoash-project:mainfrom
Conversation
modify_config_code twice with keyword values
modify_config_code twice with keyword valuesmodify_config_code twice with keyword values (failing)
Contributor
Author
|
It seems that setting diff --git a/lib/igniter/code/keyword.ex b/lib/igniter/code/keyword.ex
index 57e7a2f..7448017 100644
--- a/lib/igniter/code/keyword.ex
+++ b/lib/igniter/code/keyword.ex
@@ -167,11 +167,8 @@ defmodule Igniter.Code.Keyword do
{{:__block__, [], [key]}, {:__block__, [], [nil]}}
end
- [] ->
- {{:__block__, [format: :keyword], [key]}, {:__block__, [], [nil]}}
-
_current_node ->
- {{:__block__, [], [key]}, {:__block__, [], [nil]}}
+ {{:__block__, [format: :keyword], [key]}, {:__block__, [], [nil]}}
end
{:ok, zipper} =but honestly not sure this is the correct way to go nor if it has any unintended consequences. |
Contributor
|
If making that change fixes this test and doesn't break anything else, then I'm all for it ❤️ |
Contributor
|
Would you want to include that fix here? |
modify_config_code twice with keyword values (failing)modify_config_code twice with keyword values
Contributor
Author
|
Thanks for the feedback. Included extra commit with that change. Running Workflow here awaiting approval to run. We'll see 🙂 |
Contributor
|
🚀 Thank you for your contribution! 🚀 |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributor checklist
Leave anything that you believe does not apply unchecked.
Hey @zachdaniel 👋
I spotted this issue while working on mimiquate/tower#168.
And I was able to reproduce it here with this test case. But to be honest I am not sure I am calling the right functions and with the correct expectations.
I debugged a bit and the failure lead me to a few changes around Aug 2024...
Thanks in advance!