Skip to content

Fix IEx completion crash on maps with non-atom keys#15612

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
AlexGx:ag-iex_map_completion-fix
Jul 14, 2026
Merged

Fix IEx completion crash on maps with non-atom keys#15612
josevalim merged 1 commit into
elixir-lang:mainfrom
AlexGx:ag-iex_map_completion-fix

Conversation

@AlexGx

@AlexGx AlexGx commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Before

iex(1)> m = %{"hello" => "world", a: 1} # any map with non-atom key
iex(2)> %{m | # press <TAB> after |<SPACE>

20:04:54.883 [error] :gen_statem #PID<0.70.0> terminating
** (ArgumentError) errors were found at the given arguments:

  * 1st argument: not an atom
...
*** ERROR: Shell process terminated! (^G to start new job) ***

After

iex(1)> m = %{"hello" => "world", a: 1, ab: 2}
iex(2)> %{m | a # <TAB> works
a:     ab:

@josevalim josevalim merged commit 7e9c897 into elixir-lang:main Jul 14, 2026
15 checks passed
@josevalim

Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants