Skip to content

stdlib: edlin_expand should not crash when trying to complete a map #9896

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

Conversation

frazze-jobb
Copy link
Contributor

What this code does is that it filters out all the keys that we are not able to autocomplete, leaving a list of atoms that we are able to autocomplete.
In the future we will support more key types other than atoms.

Closes #9837

if you have a map that does not have atom keys, shell should not
crash when you try to expand.
@frazze-jobb frazze-jobb self-assigned this Jun 2, 2025
@frazze-jobb frazze-jobb added team:VM Assigned to OTP team VM fix labels Jun 2, 2025
Copy link
Contributor

github-actions bot commented Jun 2, 2025

CT Test Results

    2 files     97 suites   1h 5m 31s ⏱️
2 206 tests 2 155 ✅ 51 💤 0 ❌
2 585 runs  2 529 ✅ 56 💤 0 ❌

Results for commit 5d33735.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

garazdawi
garazdawi previously approved these changes Jun 3, 2025
Copy link
Contributor

@garazdawi garazdawi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testcase?

@frazze-jobb frazze-jobb merged commit c792067 into erlang:master Jun 12, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix team:VM Assigned to OTP team VM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

edlin_expand crashes for maps with tuple keys
2 participants